summaryrefslogtreecommitdiff
path: root/src/mongo/logger/SConscript
blob: c0761bdac923f39c28b633df0161be1f20d8907c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- mode: python -*-

Import("env")

env = env.Clone()

env.Library('parse_log_component_settings',
            ['parse_log_component_settings.cpp'],
            LIBDEPS=['$BUILD_DIR/mongo/base',])

# writes multi-byte sequences to console
# to support manual testing of console stream  under Windows
# output should be visually verified under Command Prompt or Power Shell
env.Program(
    target='console_test',
    source=[
        'console_test.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        '$BUILD_DIR/mongo/unittest/unittest_main'
    ],
)

env.CppUnitTest(
    target='logger_test',
    source=[
        'log_component_settings_test.cpp',
        'log_function_test.cpp',
        'log_test.cpp',
        'parse_log_component_settings_test.cpp',
        'redaction_test.cpp',
        'rotatable_file_writer_test.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        'parse_log_component_settings',
    ],
)