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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
# -*- mode: python -*-
Import("env")
env = env.Clone()
env.Library(
target='update',
source=[
'modifier_add_to_set.cpp',
'modifier_bit.cpp',
'modifier_compare.cpp',
'modifier_current_date.cpp',
'modifier_inc.cpp',
'modifier_object_replace.cpp',
'modifier_pop.cpp',
'modifier_pull.cpp',
'modifier_pull_all.cpp',
'modifier_push.cpp',
'modifier_rename.cpp',
'modifier_set.cpp',
'modifier_unset.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/service_context',
'$BUILD_DIR/mongo/db/logical_clock',
'$BUILD_DIR/mongo/db/logical_time',
'$BUILD_DIR/mongo/db/bson/dotted_path_support',
'$BUILD_DIR/mongo/db/matcher/expressions',
'$BUILD_DIR/mongo/db/update/update_common',
],
)
env.CppUnitTest(
target='modifier_add_to_set_test',
source='modifier_add_to_set_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'update',
],
)
env.CppUnitTest(
target='modifier_bit_test',
source='modifier_bit_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'update',
],
)
env.CppUnitTest(
target='modifier_compare_test',
source='modifier_compare_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'update',
],
)
env.CppUnitTest(
target='modifier_current_date_test',
source='modifier_current_date_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'$BUILD_DIR/mongo/db/service_context_noop_init',
'$BUILD_DIR/mongo/db/logical_clock',
'update',
],
)
env.CppUnitTest(
target='modifier_inc_test',
source='modifier_inc_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'update',
],
)
env.CppUnitTest(
target='modifier_object_replace_test',
source='modifier_object_replace_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'$BUILD_DIR/mongo/db/service_context_noop_init',
'$BUILD_DIR/mongo/db/logical_clock',
'update',
],
)
env.CppUnitTest(
target='modifier_pop_test',
source='modifier_pop_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'update',
],
)
env.CppUnitTest(
target='modifier_push_sorter_test',
source='modifier_push_sorter_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/db/query/collation/collator_interface_mock',
'update',
],
)
env.CppUnitTest(
target='modifier_pull_all_test',
source='modifier_pull_all_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'update',
],
)
env.CppUnitTest(
target='modifier_pull_test',
source='modifier_pull_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'$BUILD_DIR/mongo/db/query/collation/collator_interface_mock',
'update',
],
)
env.CppUnitTest(
target='modifier_push_test',
source='modifier_push_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'update',
],
)
env.CppUnitTest(
target='modifier_rename_test',
source='modifier_rename_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'update',
],
)
env.CppUnitTest(
target='modifier_set_test',
source='modifier_set_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'update',
],
)
env.CppUnitTest(
target='modifier_unset_test',
source='modifier_unset_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'update',
],
)
env.Library(
target='write_ops_parsers',
source=[
'write_ops_parsers.cpp',
env.Idlc('write_ops.idl')[0],
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/dbmessage',
'$BUILD_DIR/mongo/idl/idl_parser',
],
)
env.Library(
target='write_ops_parsers_test_helpers',
source=[
'write_ops_parsers_test_helpers.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/dbmessage',
],
)
env.CppUnitTest(
target='write_ops_parsers_test',
source='write_ops_parsers_test.cpp',
LIBDEPS=[
'write_ops_parsers',
'write_ops_parsers_test_helpers',
'$BUILD_DIR/mongo/client/clientdriver',
],
)
env.CppIntegrationTest(
target='write_ops_document_stream_integration_test',
source='write_ops_document_stream_integration_test.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/client/clientdriver',
'$BUILD_DIR/mongo/util/version_impl',
],
)
|