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
|
# -*- mode: python -*-
Import("env")
env.Library('repl_settings',
'repl_settings.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/base/base',
'$BUILD_DIR/mongo/server_parameters'
])
env.Library('rslog',
'rslog.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/logger/logger',
])
env.Library(
'network_interface_impl',
'network_interface_impl.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/base/base',
'$BUILD_DIR/mongo/clientdriver'
])
env.Library('replication_executor',
'replication_executor.cpp',
LIBDEPS=['$BUILD_DIR/mongo/foundation',
'$BUILD_DIR/mongo/hostandport'])
env.CppUnitTest('replication_executor_test',
'replication_executor_test.cpp',
LIBDEPS=['replication_executor',
'replmocks'])
env.Library('topology_coordinator',
[
'topology_coordinator.cpp',
],
LIBDEPS=[
'repl_coordinator_interface',
])
env.Library('topology_coordinator_impl',
[
'member_heartbeat_data.cpp',
'topology_coordinator_impl.cpp',
],
LIBDEPS=[
'replication_executor',
'repl_settings',
'rslog',
'topology_coordinator',
])
env.CppUnitTest('topology_coordinator_impl_test',
'topology_coordinator_impl_test.cpp',
LIBDEPS=['topology_coordinator_impl',
'replica_set_messages'])
env.Library('repl_coordinator_impl',
[
'check_quorum_for_config_change.cpp',
'elect_cmd_runner.cpp',
'freshness_checker.cpp',
'repl_coordinator_impl.cpp',
'repl_coordinator_impl_elect.cpp',
'repl_coordinator_impl_heartbeat.cpp',
'replica_set_config_checks.cpp',
],
LIBDEPS=['$BUILD_DIR/mongo/db/common',
'$BUILD_DIR/mongo/db/index/index_descriptor',
'$BUILD_DIR/mongo/fail_point',
'$BUILD_DIR/mongo/foundation',
'$BUILD_DIR/mongo/global_environment_experiment',
'$BUILD_DIR/mongo/server_options_core',
'repl_coordinator_interface',
'replica_set_messages',
'replication_executor',
'rslog',
])
env.CppUnitTest('repl_coordinator_impl_test',
[
'repl_coordinator_impl_test.cpp',
'repl_coordinator_test_fixture.cpp',
],
LIBDEPS=['repl_coordinator_impl',
'topology_coordinator_impl',
'replmocks'])
env.CppUnitTest('replica_set_config_checks_test',
'replica_set_config_checks_test.cpp',
LIBDEPS=[
'repl_coordinator_impl',
'replmocks'
])
env.CppUnitTest('check_quorum_for_config_change_test',
'check_quorum_for_config_change_test.cpp',
LIBDEPS=[
'repl_coordinator_impl',
'replication_executor',
'replmocks',
])
env.CppUnitTest('freshness_checker_test',
'freshness_checker_test.cpp',
LIBDEPS=['repl_coordinator_impl',
'replica_set_messages',
'replmocks'])
env.CppUnitTest('elect_cmd_runner_test',
'elect_cmd_runner_test.cpp',
LIBDEPS=['repl_coordinator_impl',
'replica_set_messages',
'replmocks'])
env.CppUnitTest('repl_coordinator_impl_elect_test',
'repl_coordinator_impl_elect_test.cpp',
LIBDEPS=['repl_coordinator_impl',
'topology_coordinator_impl',
'replmocks'])
env.Library('repl_coordinator_interface',
['repl_coordinator.cpp',
'repl_coordinator_external_state.cpp',
'repl_set_seed_list.cpp'],
LIBDEPS=[
'$BUILD_DIR/mongo/hostandport',
])
env.Library('repl_coordinator_global',
'repl_coordinator_global.cpp',
LIBDEPS=['repl_coordinator_interface'])
env.CppUnitTest('network_interface_mock_test',
'network_interface_mock_test.cpp',
LIBDEPS=['replmocks'])
env.Library('replmocks',
['repl_coordinator_mock.cpp',
'repl_coordinator_external_state_mock.cpp',
'network_interface_mock.cpp'],
LIBDEPS=[
'repl_coordinator_interface',
'replication_executor',
])
env.Library('replica_set_messages',
[
'handshake_args.cpp',
'member_config.cpp',
'repl_set_heartbeat_args.cpp',
'repl_set_heartbeat_response.cpp',
'replica_set_config.cpp',
'replica_set_tag.cpp',
'update_position_args.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/bson',
'$BUILD_DIR/mongo/hostandport',
'$BUILD_DIR/mongo/db/common',
])
env.CppUnitTest('replica_set_config_test',
[
'member_config_test.cpp',
'replica_set_config_test.cpp',
'replica_set_tag_test.cpp',
],
LIBDEPS=['replica_set_messages'])
env.CppUnitTest('isself_test',
[
'isself_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/serveronly',
'$BUILD_DIR/mongo/coreserver',
'$BUILD_DIR/mongo/coredb',
],
NO_CRUTCH = True)
|