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