]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # get_command_descriptions |
2 | add_executable(get_command_descriptions | |
3 | get_command_descriptions.cc | |
4 | $<TARGET_OBJECTS:common_texttable_obj> | |
5 | ) | |
6 | target_link_libraries(get_command_descriptions | |
7 | mon | |
8 | global | |
9 | ${LEVELDB_LIBRARIES} | |
10 | ${EXTRALIBS} | |
11 | ${BLKID_LIBRARIES} | |
12 | ${CMAKE_DL_LIBS} | |
13 | ) | |
14 | ||
11fdf7f2 TL |
15 | # Though FreeBSD has blkdev support, the unittests' mocks only work in Linux |
16 | if(HAVE_BLKID AND LINUX) | |
17 | # unittest_blkdev | |
18 | add_executable(unittest_blkdev | |
19 | test_blkdev.cc) | |
20 | add_ceph_unittest(unittest_blkdev ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_blkdev) | |
21 | target_link_libraries(unittest_blkdev global ${BLKID_LIBRARIES}) | |
22 | endif() | |
23 | ||
24 | # unittest_lockdep | |
25 | add_executable(unittest_lockdep | |
26 | test_lockdep.cc | |
7c673cae | 27 | ) |
11fdf7f2 TL |
28 | add_ceph_unittest(unittest_lockdep) |
29 | target_link_libraries(unittest_lockdep ceph-common global) | |
30 | ||
31 | # FreeBSD only has shims to support NUMA, no functional code. | |
32 | if(LINUX) | |
33 | # unittest_numa | |
34 | add_executable(unittest_numa | |
35 | test_numa.cc | |
36 | ) | |
37 | add_ceph_unittest(unittest_numa) | |
38 | target_link_libraries(unittest_numa ceph-common) | |
39 | endif() | |
7c673cae FG |
40 | |
41 | # unittest_bloom_filter | |
42 | add_executable(unittest_bloom_filter | |
43 | test_bloom_filter.cc | |
44 | ) | |
11fdf7f2 TL |
45 | add_ceph_unittest(unittest_bloom_filter) |
46 | target_link_libraries(unittest_bloom_filter ceph-common) | |
7c673cae FG |
47 | |
48 | # unittest_histogram | |
49 | add_executable(unittest_histogram | |
50 | histogram.cc | |
51 | ) | |
11fdf7f2 TL |
52 | add_ceph_unittest(unittest_histogram) |
53 | target_link_libraries(unittest_histogram ceph-common) | |
7c673cae FG |
54 | |
55 | # unittest_prioritized_queue | |
56 | add_executable(unittest_prioritized_queue | |
57 | test_prioritized_queue.cc | |
58 | ) | |
11fdf7f2 TL |
59 | target_link_libraries(unittest_prioritized_queue ceph-common) |
60 | add_ceph_unittest(unittest_prioritized_queue) | |
7c673cae | 61 | |
224ce89b | 62 | # unittest_mclock_priority_queue |
91327a77 | 63 | add_executable(unittest_mclock_priority_queue |
224ce89b WB |
64 | test_mclock_priority_queue.cc |
65 | ) | |
11fdf7f2 TL |
66 | add_ceph_unittest(unittest_mclock_priority_queue) |
67 | target_link_libraries(unittest_mclock_priority_queue | |
68 | ceph-common | |
69 | dmclock::dmclock) | |
224ce89b | 70 | |
7c673cae FG |
71 | # unittest_str_map |
72 | add_executable(unittest_str_map | |
73 | test_str_map.cc | |
74 | ) | |
11fdf7f2 TL |
75 | add_ceph_unittest(unittest_str_map) |
76 | target_link_libraries(unittest_str_map ceph-common) | |
77 | ||
78 | # unittest_json_formattable | |
79 | add_executable(unittest_json_formattable | |
80 | test_json_formattable.cc | |
81 | ) | |
82 | add_ceph_unittest(unittest_json_formattable ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_json_formattable) | |
83 | # add_dependencies(unittest_json_formattable ceph-common) | |
84 | target_link_libraries(unittest_json_formattable ceph-common global ${BLKID_LIBRARIES}) | |
85 | ||
86 | # unittest_json_formatter | |
87 | add_executable(unittest_json_formatter | |
88 | test_json_formatter.cc | |
89 | ) | |
90 | add_ceph_unittest(unittest_json_formatter ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_json_formatter) | |
91 | # add_dependencies(unittest_json_formatter ceph-common) | |
92 | target_link_libraries(unittest_json_formatter ceph-common global ${BLKID_LIBRARIES}) | |
7c673cae FG |
93 | |
94 | # unittest_sharedptr_registry | |
95 | add_executable(unittest_sharedptr_registry | |
96 | test_sharedptr_registry.cc | |
97 | $<TARGET_OBJECTS:unit-main> | |
98 | ) | |
11fdf7f2 TL |
99 | add_ceph_unittest(unittest_sharedptr_registry) |
100 | target_link_libraries(unittest_sharedptr_registry global) | |
7c673cae FG |
101 | |
102 | # unittest_shared_cache | |
103 | add_executable(unittest_shared_cache | |
104 | test_shared_cache.cc | |
105 | $<TARGET_OBJECTS:unit-main> | |
106 | ) | |
11fdf7f2 TL |
107 | add_ceph_unittest(unittest_shared_cache) |
108 | target_link_libraries(unittest_shared_cache global) | |
7c673cae FG |
109 | |
110 | # unittest_sloppy_crc_map | |
111 | add_executable(unittest_sloppy_crc_map | |
112 | test_sloppy_crc_map.cc | |
113 | ) | |
11fdf7f2 TL |
114 | add_ceph_unittest(unittest_sloppy_crc_map) |
115 | target_link_libraries(unittest_sloppy_crc_map global) | |
7c673cae FG |
116 | |
117 | # unittest_time | |
118 | add_executable(unittest_time | |
119 | test_time.cc | |
120 | ${CMAKE_SOURCE_DIR}/src/common/ceph_time.cc | |
121 | ) | |
11fdf7f2 TL |
122 | add_ceph_unittest(unittest_time) |
123 | target_link_libraries(unittest_time ceph-common) | |
7c673cae FG |
124 | |
125 | # unittest_util | |
126 | add_executable(unittest_util | |
127 | test_util.cc | |
128 | ${CMAKE_SOURCE_DIR}/src/common/util.cc | |
129 | ) | |
11fdf7f2 TL |
130 | add_ceph_unittest(unittest_util) |
131 | target_link_libraries(unittest_util global) | |
132 | ||
133 | # unittest_random | |
134 | add_executable(unittest_random | |
135 | test_random.cc | |
136 | ) | |
137 | add_ceph_unittest(unittest_random) | |
7c673cae FG |
138 | |
139 | # unittest_throttle | |
140 | add_executable(unittest_throttle | |
141 | Throttle.cc | |
142 | $<TARGET_OBJECTS:unit-main> | |
143 | ) | |
11fdf7f2 | 144 | add_ceph_unittest(unittest_throttle parallel) |
7c673cae FG |
145 | target_link_libraries(unittest_throttle global) |
146 | ||
147 | # unittest_lru | |
148 | add_executable(unittest_lru | |
149 | test_lru.cc | |
150 | ) | |
11fdf7f2 TL |
151 | add_ceph_unittest(unittest_lru) |
152 | target_link_libraries(unittest_lru ceph-common) | |
7c673cae FG |
153 | |
154 | # unittest_crc32c | |
155 | add_executable(unittest_crc32c | |
156 | test_crc32c.cc | |
157 | ) | |
11fdf7f2 TL |
158 | add_ceph_unittest(unittest_crc32c) |
159 | target_link_libraries(unittest_crc32c ceph-common) | |
7c673cae FG |
160 | |
161 | # unittest_config | |
162 | add_executable(unittest_config | |
163 | test_config.cc | |
164 | test_hostname.cc | |
165 | ) | |
11fdf7f2 TL |
166 | add_ceph_unittest(unittest_config) |
167 | target_link_libraries(unittest_config ceph-common) | |
7c673cae FG |
168 | |
169 | # unittest_context | |
170 | add_executable(unittest_context | |
171 | test_context.cc | |
172 | ) | |
11fdf7f2 TL |
173 | add_ceph_unittest(unittest_context) |
174 | target_link_libraries(unittest_context ceph-common) | |
7c673cae FG |
175 | |
176 | # unittest_safe_io | |
177 | add_executable(unittest_safe_io | |
178 | test_safe_io.cc | |
179 | ) | |
11fdf7f2 TL |
180 | add_ceph_unittest(unittest_safe_io) |
181 | target_link_libraries(unittest_safe_io ceph-common) | |
7c673cae FG |
182 | |
183 | # unittest_url_escape | |
184 | add_executable(unittest_url_escape | |
185 | test_url_escape.cc | |
186 | ) | |
11fdf7f2 | 187 | add_ceph_unittest(unittest_url_escape) |
7c673cae FG |
188 | target_link_libraries(unittest_url_escape ceph-common) |
189 | ||
190 | # unittest_readahead | |
191 | add_executable(unittest_readahead | |
192 | Readahead.cc | |
193 | ) | |
11fdf7f2 TL |
194 | add_ceph_unittest(unittest_readahead) |
195 | target_link_libraries(unittest_readahead ceph-common) | |
7c673cae FG |
196 | |
197 | # unittest_tableformatter | |
198 | add_executable(unittest_tableformatter | |
199 | test_tableformatter.cc | |
200 | ) | |
11fdf7f2 TL |
201 | add_ceph_unittest(unittest_tableformatter) |
202 | target_link_libraries(unittest_tableformatter ceph-common) | |
7c673cae FG |
203 | |
204 | add_executable(unittest_xmlformatter | |
205 | test_xmlformatter.cc | |
206 | ) | |
11fdf7f2 | 207 | add_ceph_unittest(unittest_xmlformatter) |
7c673cae FG |
208 | target_link_libraries(unittest_xmlformatter ceph-common) |
209 | ||
210 | # unittest_bit_vector | |
211 | add_executable(unittest_bit_vector | |
212 | test_bit_vector.cc | |
213 | ) | |
11fdf7f2 TL |
214 | add_ceph_unittest(unittest_bit_vector) |
215 | target_link_libraries(unittest_bit_vector ceph-common) | |
7c673cae FG |
216 | |
217 | # unittest_interval_map | |
218 | add_executable(unittest_interval_map | |
219 | test_interval_map.cc | |
220 | ) | |
11fdf7f2 TL |
221 | add_ceph_unittest(unittest_interval_map) |
222 | target_link_libraries(unittest_interval_map ceph-common) | |
7c673cae FG |
223 | |
224 | # unittest_interval_set | |
225 | add_executable(unittest_interval_set | |
226 | test_interval_set.cc | |
227 | ) | |
11fdf7f2 TL |
228 | add_ceph_unittest(unittest_interval_set) |
229 | target_link_libraries(unittest_interval_set ceph-common) | |
7c673cae FG |
230 | |
231 | # unittest_weighted_priority_queue | |
232 | add_executable(unittest_weighted_priority_queue | |
233 | test_weighted_priority_queue.cc | |
234 | ) | |
11fdf7f2 TL |
235 | target_link_libraries(unittest_weighted_priority_queue ceph-common) |
236 | add_ceph_unittest(unittest_weighted_priority_queue) | |
7c673cae FG |
237 | |
238 | # unittest_mutex_debug | |
239 | add_executable(unittest_mutex_debug | |
240 | test_mutex_debug.cc | |
241 | ) | |
11fdf7f2 TL |
242 | add_ceph_unittest(unittest_mutex_debug) |
243 | target_link_libraries(unittest_mutex_debug ceph-common) | |
7c673cae FG |
244 | |
245 | # unittest_mutex | |
246 | add_executable(unittest_mutex | |
247 | test_mutex.cc | |
248 | ) | |
11fdf7f2 TL |
249 | add_ceph_unittest(unittest_mutex) |
250 | target_link_libraries(unittest_mutex ceph-common) | |
7c673cae FG |
251 | |
252 | # unittest_shunique_lock | |
253 | add_executable(unittest_shunique_lock | |
254 | test_shunique_lock.cc | |
255 | ) | |
11fdf7f2 TL |
256 | add_ceph_unittest(unittest_shunique_lock) |
257 | target_link_libraries(unittest_shunique_lock ceph-common) | |
7c673cae FG |
258 | |
259 | # unittest_perf_histogram | |
260 | add_executable(unittest_perf_histogram | |
261 | test_perf_histogram.cc | |
262 | ) | |
11fdf7f2 TL |
263 | add_ceph_unittest(unittest_perf_histogram) |
264 | target_link_libraries(unittest_perf_histogram ceph-common) | |
7c673cae FG |
265 | |
266 | # unittest_global_doublefree | |
267 | if(WITH_CEPHFS) | |
268 | add_executable(unittest_global_doublefree | |
269 | test_global_doublefree.cc | |
270 | ) | |
11fdf7f2 | 271 | add_ceph_unittest(unittest_global_doublefree) |
7c673cae FG |
272 | target_link_libraries(unittest_global_doublefree cephfs librados) |
273 | endif(WITH_CEPHFS) | |
274 | ||
275 | add_executable(unittest_dns_resolve | |
276 | dns_resolve.cc | |
277 | $<TARGET_OBJECTS:unit-main>) | |
278 | target_link_libraries(unittest_dns_resolve global) | |
11fdf7f2 | 279 | add_ceph_unittest(unittest_dns_resolve) |
7c673cae FG |
280 | |
281 | add_executable(unittest_back_trace | |
282 | test_back_trace.cc) | |
283 | set_source_files_properties(test_back_trace.cc PROPERTIES | |
284 | COMPILE_FLAGS -fno-inline) | |
285 | target_link_libraries(unittest_back_trace ceph-common) | |
11fdf7f2 | 286 | add_ceph_unittest(unittest_back_trace) |
7c673cae FG |
287 | |
288 | add_executable(unittest_hostname | |
289 | test_hostname.cc) | |
290 | target_link_libraries(unittest_hostname ceph-common) | |
11fdf7f2 | 291 | add_ceph_unittest(unittest_hostname) |
31f18b77 FG |
292 | |
293 | add_executable(unittest_iso_8601 | |
294 | test_iso_8601.cc) | |
295 | target_link_libraries(unittest_iso_8601 ceph-common) | |
11fdf7f2 | 296 | add_ceph_unittest(unittest_iso_8601) |
d2e6a577 | 297 | |
11fdf7f2 TL |
298 | add_executable(unittest_convenience test_convenience.cc) |
299 | target_link_libraries(unittest_convenience ceph-common) | |
300 | add_ceph_unittest(unittest_convenience) | |
b32b8144 FG |
301 | |
302 | add_executable(unittest_bounded_key_counter | |
303 | test_bounded_key_counter.cc | |
304 | $<TARGET_OBJECTS:unit-main>) | |
305 | target_link_libraries(unittest_bounded_key_counter global) | |
11fdf7f2 TL |
306 | add_ceph_unittest(unittest_bounded_key_counter) |
307 | ||
308 | add_executable(unittest_static_ptr test_static_ptr.cc) | |
309 | add_ceph_unittest(unittest_static_ptr) | |
310 | ||
311 | add_executable(unittest_hobject test_hobject.cc | |
312 | $<TARGET_OBJECTS:unit-main>) | |
313 | target_link_libraries(unittest_hobject global ceph-common) | |
314 | add_ceph_unittest(unittest_hobject) | |
315 | ||
316 | add_executable(unittest_async_completion test_async_completion.cc) | |
317 | add_ceph_unittest(unittest_async_completion) | |
318 | target_link_libraries(unittest_async_completion Boost::system) | |
319 | ||
320 | add_executable(unittest_async_shared_mutex test_async_shared_mutex.cc) | |
321 | add_ceph_unittest(unittest_async_shared_mutex) | |
322 | target_link_libraries(unittest_async_shared_mutex ceph-common Boost::system) |