summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/SConscript
blob: ca58e8a4c4b40315c24f1c7e6c6b1d8d27784f7c (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# -*- mode: python; -*-

Import("env")

env = env.Clone()

env.Library(
    target="framework_options",
    source=[
        "framework_options.cpp",
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/storage/mmap_v1/storage_mmapv1',
        '$BUILD_DIR/mongo/db/storage/storage_options',
        '$BUILD_DIR/mongo/util/options_parser/options_parser_init',
        '$BUILD_DIR/mongo/unittest/unittest',
    ],
)

env.Library(
    target='testframework',
    source=[
        'framework.cpp',
        'framework_options_init.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/db/dbdirectclient',
        '$BUILD_DIR/mongo/db/op_observer',
        '$BUILD_DIR/mongo/db/service_context_d',
        '$BUILD_DIR/mongo/db/s/sharding',
        '$BUILD_DIR/mongo/s/coreshard',
        '$BUILD_DIR/mongo/scripting/scripting_common',
        '$BUILD_DIR/mongo/unittest/unittest',
        'framework_options',
    ],
)

env.Library(
    target='mocklib',
    source=[
        'mock/mock_conn_registry.cpp',
        'mock/mock_dbclient_connection.cpp',
        'mock/mock_dbclient_cursor.cpp',
        'mock/mock_remote_db_server.cpp',
        'mock/mock_replica_set.cpp'
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/client/clientdriver',
        '$BUILD_DIR/mongo/db/repl/replica_set_messages'
    ],
)

dbtest = env.Program(
    target="dbtest",
    source=[
        'basictests.cpp',
        'clienttests.cpp',
        'commandtests.cpp',
        'counttests.cpp',
        'dbhelper_tests.cpp',
        'dbtests.cpp',
        'deferred_writer.cpp',
        'directclienttests.cpp',
        'documentsourcetests.cpp',
        'executor_registry.cpp',
        'extensions_callback_real_test.cpp',
        'gle_test.cpp',
        'index_access_method_test.cpp',
        'indexcatalogtests.cpp',
        'indexupdatetests.cpp',
        'insert_test.cpp',
        'jsobjtests.cpp',
        'jsontests.cpp',
        'jstests.cpp',
        'logical_sessions_tests.cpp',
        'matchertests.cpp',
        'mmaptests.cpp',
        'mock_dbclient_conn_test.cpp',
        'mock_replica_set_test.cpp',
        'multikey_paths_test.cpp',
        'namespacetests.cpp',
        'oplogstarttests.cpp',
        'pdfiletests.cpp',
        'plan_ranking.cpp',
        'query_stage_multiplan.cpp',
        'query_plan_executor.cpp',
        'cursor_manager_test.cpp',
        'query_stage_and.cpp',
        'query_stage_cached_plan.cpp',
        'query_stage_collscan.cpp',
        'query_stage_count.cpp',
        'query_stage_count_scan.cpp',
        'query_stage_delete.cpp',
        'query_stage_distinct.cpp',
        'query_stage_ensure_sorted.cpp',
        'query_stage_fetch.cpp',
        'query_stage_ixscan.cpp',
        'query_stage_keep.cpp',
        'query_stage_limit_skip.cpp',
        'query_stage_merge_sort.cpp',
        'query_stage_near.cpp',
        'query_stage_sort.cpp',
        'query_stage_sort_key_generator.cpp',
        'query_stage_subplan.cpp',
        'query_stage_tests.cpp',
        'query_stage_update.cpp',
        'querytests.cpp',
        'replica_set_monitor_test.cpp',
        'replica_set_tests.cpp',
        'repltests.cpp',
        'rollbacktests.cpp',
        'socktests.cpp',
        'storage_timestamp_tests.cpp',
        'threadedtests.cpp',
        'updatetests.cpp',
        'validate_tests.cpp',
    ],
    LIBDEPS=[
        "$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils",
        "$BUILD_DIR/mongo/db/auth/authmocks",
        "$BUILD_DIR/mongo/db/bson/dotted_path_support",
        "$BUILD_DIR/mongo/db/concurrency/deferred_writer",
        "$BUILD_DIR/mongo/db/logical_clock",
        "$BUILD_DIR/mongo/db/logical_time_metadata_hook",
        "$BUILD_DIR/mongo/db/op_observer_d",
        "$BUILD_DIR/mongo/db/pipeline/document_value_test_util",
        "$BUILD_DIR/mongo/db/query/collation/collator_interface_mock",
        "$BUILD_DIR/mongo/db/query_exec",
        "$BUILD_DIR/mongo/db/query/query_planner_test_lib",
        "$BUILD_DIR/mongo/db/query/query_test_service_context",
        "$BUILD_DIR/mongo/db/repl/drop_pending_collection_reaper",
        "$BUILD_DIR/mongo/db/repl/repl_coordinator_interface",
        "$BUILD_DIR/mongo/db/repl/replication_consistency_markers_impl",
        "$BUILD_DIR/mongo/db/repl/replmocks",
        "$BUILD_DIR/mongo/db/repl/storage_interface_impl",
        "$BUILD_DIR/mongo/db/serveronly",
        "$BUILD_DIR/mongo/db/sessions_collection_standalone",
        "$BUILD_DIR/mongo/db/storage/mmap_v1/paths",
        "$BUILD_DIR/mongo/db/storage/kv/kv_engine_core",
        "$BUILD_DIR/mongo/util/clock_source_mock",
        "$BUILD_DIR/mongo/util/net/network",
        "$BUILD_DIR/mongo/util/progress_meter",
        "$BUILD_DIR/mongo/util/version_impl",
        "mocklib",
        "testframework",
    ],
)

env.Alias("dbtest", env.Install('#/', dbtest))