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
150
151
152
153
154
155
156
157
158
159
160
|
# -*- mode: python -*-
Import("env")
env = env.Clone()
env.Library(
target='update_common',
source=[
'field_checker.cpp',
'log_builder.cpp',
'path_support.cpp',
'storage_validation.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/bson/mutable/mutable_bson',
'$BUILD_DIR/mongo/db/common',
'$BUILD_DIR/mongo/db/matcher/expressions',
],
)
env.CppUnitTest(
target='field_checker_test',
source=[
'field_checker_test.cpp',
],
LIBDEPS=[
'update_common',
],
)
env.CppUnitTest(
target='log_builder_test',
source=[
'log_builder_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'update_common',
],
)
env.CppUnitTest(
target='path_support_test',
source=[
'path_support_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'$BUILD_DIR/mongo/db/matcher/expressions',
'$BUILD_DIR/mongo/db/query/query_test_service_context',
'update_common',
],
)
env.CppUnitTest(
target='push_sorter_test',
source='push_sorter_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson',
'$BUILD_DIR/mongo/db/matcher/expressions',
'$BUILD_DIR/mongo/db/query/collation/collator_interface_mock',
],
)
env.Library(
target='update',
source=[
'addtoset_node.cpp',
'arithmetic_node.cpp',
'array_culling_node.cpp',
'bit_node.cpp',
'compare_node.cpp',
'current_date_node.cpp',
'modifier_node.cpp',
'modifier_table.cpp',
'object_replace_node.cpp',
'pop_node.cpp',
'pull_node.cpp',
'pullall_node.cpp',
'push_node.cpp',
'rename_node.cpp',
'set_node.cpp',
'unset_node.cpp',
'update_array_node.cpp',
'update_internal_node.cpp',
'update_leaf_node.cpp',
'update_node.cpp',
'update_object_node.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/logical_clock',
'$BUILD_DIR/mongo/db/update_index_data',
'update_common',
],
)
env.CppUnitTest(
target='update_nodes_test',
source=[
'addtoset_node_test.cpp',
'arithmetic_node_test.cpp',
'bit_node_test.cpp',
'compare_node_test.cpp',
'current_date_node_test.cpp',
'object_replace_node_test.cpp',
'pop_node_test.cpp',
'pull_node_test.cpp',
'pullall_node_test.cpp',
'push_node_test.cpp',
'rename_node_test.cpp',
'set_node_test.cpp',
'unset_node_test.cpp',
'update_array_node_test.cpp',
'update_object_node_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'$BUILD_DIR/mongo/db/service_context_test_fixture',
'$BUILD_DIR/mongo/db/logical_clock',
'$BUILD_DIR/mongo/db/query/collation/collator_interface_mock',
'$BUILD_DIR/mongo/db/query/query_test_service_context',
'update',
],
)
env.CppUnitTest(
target='modifier_table_test',
source='modifier_table_test.cpp',
LIBDEPS=[
'update',
],
)
env.Library(
target='update_driver',
source=[
'update_driver.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/common',
'$BUILD_DIR/mongo/db/server_options_core',
'$BUILD_DIR/mongo/db/query/query_planner',
'update',
],
)
env.CppUnitTest(
target='update_driver_test',
source='update_driver_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'$BUILD_DIR/mongo/db/query/query_planner',
'$BUILD_DIR/mongo/db/query/query_test_service_context',
'update_driver',
],
)
|