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
|
# -*- mode: python -*-
Import("env")
env = env.Clone()
env.Library(
target="query_ce",
source=[
'array_histogram.cpp',
'ce_histogram.cpp',
'ce_sampling.cpp',
'collection_statistics.cpp',
'histogram_estimation.cpp',
'scalar_histogram.cpp',
'stats_cache.cpp',
'stats_cache_loader_impl.cpp',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/db/exec/sbe/query_sbe_abt',
'$BUILD_DIR/mongo/db/query/optimizer/optimizer',
],
)
env.Library(
target="ce_test_utils",
source=[
'ce_test_utils.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/exec/sbe/query_sbe_values',
'$BUILD_DIR/mongo/db/exec/sbe/sbe_abt_test_util',
'$BUILD_DIR/mongo/db/query/optimizer/unit_test_utils',
"$BUILD_DIR/mongo/unittest/unittest",
'query_ce',
],
)
env.CppUnitTest(
target="ce_histogram_test",
source=[
"ce_histogram_test.cpp",
],
LIBDEPS=[
'ce_test_utils',
],
)
env.CppUnitTest(
target="ce_heuristic_test",
source=[
"ce_heuristic_test.cpp",
],
LIBDEPS=[
'ce_test_utils',
],
)
env.CppUnitTest(
target="stats_cache_loader_test",
source=[
"stats_cache_loader_test.cpp",
"stats_cache_loader_test_fixture.cpp",
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/auth/authmocks',
'$BUILD_DIR/mongo/db/catalog/collection_crud',
'$BUILD_DIR/mongo/db/commands/test_commands_enabled',
'$BUILD_DIR/mongo/db/concurrency/lock_manager',
'$BUILD_DIR/mongo/db/db_raii',
'$BUILD_DIR/mongo/db/index_builds_coordinator_mongod',
'$BUILD_DIR/mongo/db/matcher/expressions',
'$BUILD_DIR/mongo/db/multitenancy',
'$BUILD_DIR/mongo/db/namespace_string',
'$BUILD_DIR/mongo/db/op_observer/op_observer',
'$BUILD_DIR/mongo/db/op_observer/op_observer_impl',
'$BUILD_DIR/mongo/db/query/datetime/date_time_support',
'$BUILD_DIR/mongo/db/query/query_test_service_context',
'$BUILD_DIR/mongo/db/repl/drop_pending_collection_reaper',
'$BUILD_DIR/mongo/db/repl/oplog',
'$BUILD_DIR/mongo/db/repl/optime',
'$BUILD_DIR/mongo/db/repl/repl_coordinator_interface',
'$BUILD_DIR/mongo/db/repl/replmocks',
'$BUILD_DIR/mongo/db/repl/storage_interface_impl',
'$BUILD_DIR/mongo/db/service_context',
'$BUILD_DIR/mongo/db/service_context_d_test_fixture',
'$BUILD_DIR/mongo/db/service_context_test_fixture',
'$BUILD_DIR/mongo/db/storage/wiredtiger/storage_wiredtiger',
'$BUILD_DIR/mongo/db/timeseries/timeseries_options',
'$BUILD_DIR/mongo/unittest/unittest',
'$BUILD_DIR/mongo/util/clock_source_mock',
'$BUILD_DIR/mongo/util/fail_point',
'$BUILD_DIR/mongo/util/pcre_wrapper',
'query_ce',
],
)
env.CppUnitTest(
target="stats_cache_test",
source=[
"stats_cache_test.cpp",
"stats_cache_loader_mock.cpp",
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/service_context',
'ce_test_utils',
'query_ce',
],
)
|