]>
Commit | Line | Data |
---|---|---|
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 | ||
15 | if(HAVE_BLKID) | |
16 | # unittest_blkdev | |
17 | add_executable(unittest_blkdev | |
18 | test_blkdev.cc | |
19 | ) | |
20 | add_ceph_unittest(unittest_blkdev ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_blkdev) | |
21 | target_link_libraries(unittest_blkdev global ${BLKID_LIBRARIES}) | |
22 | endif(HAVE_BLKID) | |
23 | ||
24 | # unittest_bloom_filter | |
25 | add_executable(unittest_bloom_filter | |
26 | test_bloom_filter.cc | |
27 | ) | |
28 | add_ceph_unittest(unittest_bloom_filter ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bloom_filter) | |
29 | target_link_libraries(unittest_bloom_filter global ${BLKID_LIBRARIES}) | |
30 | ||
31 | # unittest_histogram | |
32 | add_executable(unittest_histogram | |
33 | histogram.cc | |
34 | ) | |
35 | add_ceph_unittest(unittest_histogram ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_histogram) | |
36 | target_link_libraries(unittest_histogram global ${BLKID_LIBRARIES}) | |
37 | ||
38 | # unittest_prioritized_queue | |
39 | add_executable(unittest_prioritized_queue | |
40 | test_prioritized_queue.cc | |
41 | ) | |
42 | add_ceph_unittest(unittest_prioritized_queue ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_prioritized_queue) | |
43 | target_link_libraries(unittest_prioritized_queue global ${BLKID_LIBRARIES}) | |
44 | ||
45 | # unittest_mclock_priority_queue | |
46 | add_executable(unittest_mclock_priority_queue EXCLUDE_FROM_ALL | |
47 | test_mclock_priority_queue.cc | |
48 | ) | |
49 | add_ceph_unittest(unittest_mclock_priority_queue ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mclock_priority_queue) | |
50 | target_link_libraries(unittest_mclock_priority_queue global ${BLKID_LIBRARIES} dmclock) | |
51 | ||
52 | # unittest_str_map | |
53 | add_executable(unittest_str_map | |
54 | test_str_map.cc | |
55 | ) | |
56 | add_ceph_unittest(unittest_str_map ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_str_map) | |
57 | target_link_libraries(unittest_str_map ceph-common global ${BLKID_LIBRARIES}) | |
58 | ||
59 | # unittest_sharedptr_registry | |
60 | add_executable(unittest_sharedptr_registry | |
61 | test_sharedptr_registry.cc | |
62 | $<TARGET_OBJECTS:unit-main> | |
63 | ) | |
64 | add_ceph_unittest(unittest_sharedptr_registry ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_sharedptr_registry) | |
65 | target_link_libraries(unittest_sharedptr_registry global ${BLKID_LIBRARIES}) | |
66 | ||
67 | # unittest_shared_cache | |
68 | add_executable(unittest_shared_cache | |
69 | test_shared_cache.cc | |
70 | $<TARGET_OBJECTS:unit-main> | |
71 | ) | |
72 | add_ceph_unittest(unittest_shared_cache ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_shared_cache) | |
73 | target_link_libraries(unittest_shared_cache global ${BLKID_LIBRARIES}) | |
74 | ||
75 | # unittest_sloppy_crc_map | |
76 | add_executable(unittest_sloppy_crc_map | |
77 | test_sloppy_crc_map.cc | |
78 | ) | |
79 | add_ceph_unittest(unittest_sloppy_crc_map ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_sloppy_crc_map) | |
80 | target_link_libraries(unittest_sloppy_crc_map global ${BLKID_LIBRARIES}) | |
81 | ||
82 | # unittest_time | |
83 | add_executable(unittest_time | |
84 | test_time.cc | |
85 | ${CMAKE_SOURCE_DIR}/src/common/ceph_time.cc | |
86 | ) | |
87 | add_ceph_unittest(unittest_time ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_time) | |
88 | target_link_libraries(unittest_time global ${BLKID_LIBRARIES}) | |
89 | ||
90 | # unittest_util | |
91 | add_executable(unittest_util | |
92 | test_util.cc | |
93 | ${CMAKE_SOURCE_DIR}/src/common/util.cc | |
94 | ) | |
95 | add_ceph_unittest(unittest_util ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_util) | |
96 | target_link_libraries(unittest_util global ${BLKID_LIBRARIES}) | |
97 | ||
98 | # unittest_throttle | |
99 | add_executable(unittest_throttle | |
100 | Throttle.cc | |
101 | $<TARGET_OBJECTS:unit-main> | |
102 | ) | |
103 | add_ceph_unittest(unittest_throttle ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_throttle) | |
104 | target_link_libraries(unittest_throttle global) | |
105 | ||
106 | # unittest_lru | |
107 | add_executable(unittest_lru | |
108 | test_lru.cc | |
109 | ) | |
110 | add_ceph_unittest(unittest_lru ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_lru) | |
111 | target_link_libraries(unittest_lru global) | |
112 | ||
113 | # unittest_io_priority | |
114 | add_executable(unittest_io_priority | |
115 | test_io_priority.cc | |
116 | ) | |
117 | add_ceph_unittest(unittest_io_priority ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_io_priority) | |
118 | target_link_libraries(unittest_io_priority global) | |
119 | ||
120 | # unittest_crc32c | |
121 | add_executable(unittest_crc32c | |
122 | test_crc32c.cc | |
123 | ) | |
124 | add_ceph_unittest(unittest_crc32c ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_crc32c) | |
125 | target_link_libraries(unittest_crc32c global) | |
126 | ||
127 | # unittest_config | |
128 | add_executable(unittest_config | |
129 | test_config.cc | |
130 | test_hostname.cc | |
131 | ) | |
132 | add_ceph_unittest(unittest_config ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_config) | |
133 | target_link_libraries(unittest_config global) | |
134 | ||
135 | # unittest_context | |
136 | add_executable(unittest_context | |
137 | test_context.cc | |
138 | ) | |
139 | add_ceph_unittest(unittest_context ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_context) | |
140 | target_link_libraries(unittest_context global) | |
141 | ||
142 | # unittest_safe_io | |
143 | add_executable(unittest_safe_io | |
144 | test_safe_io.cc | |
145 | ) | |
146 | add_ceph_unittest(unittest_safe_io ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_safe_io) | |
147 | target_link_libraries(unittest_safe_io global) | |
148 | ||
149 | # unittest_url_escape | |
150 | add_executable(unittest_url_escape | |
151 | test_url_escape.cc | |
152 | ) | |
153 | add_ceph_unittest(unittest_url_escape ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_url_escape) | |
154 | target_link_libraries(unittest_url_escape ceph-common) | |
155 | ||
156 | # unittest_readahead | |
157 | add_executable(unittest_readahead | |
158 | Readahead.cc | |
159 | ) | |
160 | add_ceph_unittest(unittest_readahead ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_readahead) | |
161 | target_link_libraries(unittest_readahead global) | |
162 | ||
163 | # unittest_tableformatter | |
164 | add_executable(unittest_tableformatter | |
165 | test_tableformatter.cc | |
166 | ) | |
167 | add_ceph_unittest(unittest_tableformatter ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_tableformatter) | |
168 | target_link_libraries(unittest_tableformatter global) | |
169 | ||
170 | add_executable(unittest_xmlformatter | |
171 | test_xmlformatter.cc | |
172 | ) | |
173 | add_ceph_unittest(unittest_xmlformatter ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_xmlformatter) | |
174 | target_link_libraries(unittest_xmlformatter ceph-common) | |
175 | ||
176 | # unittest_bit_vector | |
177 | add_executable(unittest_bit_vector | |
178 | test_bit_vector.cc | |
179 | ) | |
180 | add_ceph_unittest(unittest_bit_vector ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bit_vector) | |
181 | target_link_libraries(unittest_bit_vector global) | |
182 | ||
183 | # unittest_async_compressor | |
184 | # the test is disabled, because async_compressor is not used anywhere yet. | |
185 | add_executable(unittest_async_compressor | |
186 | test_async_compressor.cc) | |
187 | target_link_libraries(unittest_async_compressor global ${UNITTEST_LIBS}) | |
188 | add_dependencies(unittest_async_compressor ceph_snappy) | |
189 | set_target_properties(unittest_async_compressor PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS}) | |
190 | ||
191 | # unittest_interval_map | |
192 | add_executable(unittest_interval_map | |
193 | test_interval_map.cc | |
194 | ) | |
195 | add_ceph_unittest(unittest_interval_map ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_interval_map) | |
196 | target_link_libraries(unittest_interval_map global) | |
197 | ||
198 | # unittest_interval_set | |
199 | add_executable(unittest_interval_set | |
200 | test_interval_set.cc | |
201 | ) | |
202 | add_ceph_unittest(unittest_interval_set ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_interval_set) | |
203 | target_link_libraries(unittest_interval_set global) | |
204 | ||
205 | # unittest_weighted_priority_queue | |
206 | add_executable(unittest_weighted_priority_queue | |
207 | test_weighted_priority_queue.cc | |
208 | ) | |
209 | add_ceph_unittest(unittest_weighted_priority_queue ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_weighted_priority_queue) | |
210 | target_link_libraries(unittest_weighted_priority_queue global ${BLKID_LIBRARIES}) | |
211 | ||
212 | # unittest_mutex_debug | |
213 | add_executable(unittest_mutex_debug | |
214 | test_mutex_debug.cc | |
215 | ) | |
216 | add_ceph_unittest(unittest_mutex_debug ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mutex_debug) | |
217 | target_link_libraries(unittest_mutex_debug global ${BLKID_LIBRARIES} ${EXTRALIBS}) | |
218 | ||
219 | # unittest_mutex | |
220 | add_executable(unittest_mutex | |
221 | test_mutex.cc | |
222 | ) | |
223 | add_ceph_unittest(unittest_mutex ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mutex) | |
224 | target_link_libraries(unittest_mutex global ${BLKID_LIBRARIES} ${EXTRALIBS}) | |
225 | ||
226 | # unittest_shunique_lock | |
227 | add_executable(unittest_shunique_lock | |
228 | test_shunique_lock.cc | |
229 | ) | |
230 | add_ceph_unittest(unittest_shunique_lock ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_shunique_lock) | |
231 | target_link_libraries(unittest_shunique_lock global ${BLKID_LIBRARIES} ${EXTRALIBS}) | |
232 | ||
233 | # unittest_perf_histogram | |
234 | add_executable(unittest_perf_histogram | |
235 | test_perf_histogram.cc | |
236 | ) | |
237 | add_ceph_unittest(unittest_perf_histogram ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_perf_histogram) | |
238 | target_link_libraries(unittest_perf_histogram global ${BLKID_LIBRARIES} ${EXTRALIBS}) | |
239 | ||
240 | # unittest_global_doublefree | |
241 | if(WITH_CEPHFS) | |
242 | add_executable(unittest_global_doublefree | |
243 | test_global_doublefree.cc | |
244 | ) | |
245 | add_ceph_unittest(unittest_global_doublefree ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_global_doublefree) | |
246 | target_link_libraries(unittest_global_doublefree cephfs librados) | |
247 | endif(WITH_CEPHFS) | |
248 | ||
249 | add_executable(unittest_dns_resolve | |
250 | dns_resolve.cc | |
251 | $<TARGET_OBJECTS:unit-main>) | |
252 | target_link_libraries(unittest_dns_resolve global) | |
253 | add_ceph_unittest(unittest_dns_resolve | |
254 | ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_dns_resolve) | |
255 | ||
256 | add_executable(unittest_back_trace | |
257 | test_back_trace.cc) | |
258 | set_source_files_properties(test_back_trace.cc PROPERTIES | |
259 | COMPILE_FLAGS -fno-inline) | |
260 | target_link_libraries(unittest_back_trace ceph-common) | |
261 | add_ceph_unittest(unittest_back_trace | |
262 | ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_back_trace) | |
263 | ||
264 | add_executable(unittest_hostname | |
265 | test_hostname.cc) | |
266 | target_link_libraries(unittest_hostname ceph-common) | |
267 | add_ceph_unittest(unittest_hostname | |
268 | ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_hostname) | |
269 | ||
270 | add_executable(unittest_iso_8601 | |
271 | test_iso_8601.cc) | |
272 | target_link_libraries(unittest_iso_8601 ceph-common) | |
273 | add_ceph_unittest(unittest_iso_8601 | |
274 | ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_hostname) |