]>
Commit | Line | Data |
---|---|---|
31f18b77 | 1 | # radostest |
11fdf7f2 TL |
2 | add_library(radostest_shared OBJECT test_shared.cc) |
3 | target_include_directories(radostest_shared PRIVATE | |
4 | $<TARGET_PROPERTY:GTest::GTest,INTERFACE_INCLUDE_DIRECTORIES>) | |
5 | ||
31f18b77 | 6 | add_library(radostest STATIC |
11fdf7f2 TL |
7 | test_common.cc |
8 | TestCase.cc | |
9 | test.cc | |
10 | $<TARGET_OBJECTS:radostest_shared>) | |
11 | target_link_libraries(radostest PUBLIC | |
12 | GTest::GTest | |
13 | ceph-common | |
14 | json_spirit | |
20effc67 | 15 | ${GSSAPI_LIBRARIES} ${EXTRALIBS}) |
11fdf7f2 TL |
16 | add_library(radostest-cxx STATIC |
17 | testcase_cxx.cc | |
18 | test_cxx.cc | |
19 | $<TARGET_OBJECTS:radostest_shared>) | |
20 | target_link_libraries(radostest-cxx PUBLIC | |
21 | GTest::GTest | |
22 | ceph-common) | |
7c673cae | 23 | |
7c673cae | 24 | add_executable(ceph_test_rados_api_cmd |
11fdf7f2 | 25 | cmd.cc) |
7c673cae | 26 | target_link_libraries(ceph_test_rados_api_cmd |
11fdf7f2 TL |
27 | librados ${UNITTEST_LIBS} radostest) |
28 | add_executable(ceph_test_rados_api_cmd_pp | |
29 | cmd_cxx.cc) | |
30 | target_link_libraries(ceph_test_rados_api_cmd_pp | |
31 | librados ${UNITTEST_LIBS} radostest-cxx) | |
7c673cae | 32 | |
7c673cae | 33 | add_executable(ceph_test_rados_api_io |
11fdf7f2 | 34 | io.cc) |
7c673cae FG |
35 | target_link_libraries(ceph_test_rados_api_io |
36 | librados ${UNITTEST_LIBS} radostest) | |
11fdf7f2 TL |
37 | add_executable(ceph_test_rados_api_io_pp |
38 | io_cxx.cc) | |
39 | target_link_libraries(ceph_test_rados_api_io_pp | |
40 | librados ${UNITTEST_LIBS} radostest-cxx) | |
7c673cae | 41 | |
7c673cae | 42 | add_executable(ceph_test_rados_api_c_write_operations |
11fdf7f2 | 43 | c_write_operations.cc) |
7c673cae FG |
44 | target_link_libraries(ceph_test_rados_api_c_write_operations |
45 | librados ${UNITTEST_LIBS} radostest) | |
46 | ||
7c673cae | 47 | add_executable(ceph_test_rados_api_c_read_operations |
11fdf7f2 | 48 | c_read_operations.cc) |
7c673cae FG |
49 | target_link_libraries(ceph_test_rados_api_c_read_operations |
50 | librados ${UNITTEST_LIBS} radostest) | |
51 | ||
7c673cae | 52 | add_executable(ceph_test_rados_api_aio |
11fdf7f2 | 53 | aio.cc) |
7c673cae FG |
54 | target_link_libraries(ceph_test_rados_api_aio |
55 | librados ${UNITTEST_LIBS} radostest) | |
11fdf7f2 TL |
56 | add_executable(ceph_test_rados_api_aio_pp |
57 | aio_cxx.cc) | |
58 | target_link_libraries(ceph_test_rados_api_aio_pp | |
59 | librados ${UNITTEST_LIBS} radostest-cxx) | |
60 | ||
61 | add_executable(ceph_test_rados_api_asio asio.cc) | |
62 | target_link_libraries(ceph_test_rados_api_asio global | |
1e59de90 | 63 | librados ${UNITTEST_LIBS} spawn) |
7c673cae | 64 | |
7c673cae FG |
65 | add_executable(ceph_test_rados_api_list |
66 | list.cc | |
11fdf7f2 | 67 | $<TARGET_OBJECTS:unit-main>) |
7c673cae | 68 | target_link_libraries(ceph_test_rados_api_list |
11fdf7f2 | 69 | librados global ${UNITTEST_LIBS} radostest) |
7c673cae | 70 | |
7c673cae | 71 | add_executable(ceph_test_rados_api_pool |
11fdf7f2 | 72 | pool.cc) |
7c673cae | 73 | target_link_libraries(ceph_test_rados_api_pool |
11fdf7f2 | 74 | librados ${UNITTEST_LIBS} radostest) |
7c673cae | 75 | |
7c673cae | 76 | add_executable(ceph_test_rados_api_stat |
11fdf7f2 | 77 | stat.cc) |
7c673cae | 78 | target_link_libraries(ceph_test_rados_api_stat |
11fdf7f2 TL |
79 | librados ${UNITTEST_LIBS} radostest) |
80 | add_executable(ceph_test_rados_api_stat_pp | |
81 | stat_cxx.cc) | |
82 | target_link_libraries(ceph_test_rados_api_stat_pp | |
83 | librados ${UNITTEST_LIBS} radostest-cxx) | |
7c673cae | 84 | |
7c673cae | 85 | add_executable(ceph_test_rados_api_watch_notify |
11fdf7f2 | 86 | watch_notify.cc) |
7c673cae | 87 | target_link_libraries(ceph_test_rados_api_watch_notify |
11fdf7f2 TL |
88 | librados ${UNITTEST_LIBS} radostest) |
89 | add_executable(ceph_test_rados_api_watch_notify_pp | |
90 | watch_notify_cxx.cc) | |
91 | target_link_libraries(ceph_test_rados_api_watch_notify_pp | |
92 | librados ${UNITTEST_LIBS} radostest-cxx) | |
7c673cae | 93 | |
7c673cae | 94 | add_executable(ceph_test_rados_api_cls |
11fdf7f2 | 95 | cls.cc) |
7c673cae | 96 | target_link_libraries(ceph_test_rados_api_cls |
11fdf7f2 | 97 | librados ${UNITTEST_LIBS} radostest-cxx) |
7c673cae | 98 | |
7c673cae FG |
99 | add_executable(ceph_test_rados_api_misc |
100 | misc.cc | |
11fdf7f2 | 101 | $<TARGET_OBJECTS:unit-main>) |
7c673cae | 102 | target_link_libraries(ceph_test_rados_api_misc |
11fdf7f2 TL |
103 | librados global ${UNITTEST_LIBS} radostest) |
104 | add_executable(ceph_test_rados_api_misc_pp | |
105 | misc_cxx.cc | |
106 | $<TARGET_OBJECTS:unit-main>) | |
107 | target_link_libraries(ceph_test_rados_api_misc_pp | |
108 | librados global ${UNITTEST_LIBS} radostest-cxx) | |
7c673cae | 109 | |
7c673cae | 110 | add_executable(ceph_test_rados_api_lock |
11fdf7f2 | 111 | lock.cc) |
7c673cae | 112 | target_link_libraries(ceph_test_rados_api_lock |
11fdf7f2 TL |
113 | librados ${UNITTEST_LIBS} radostest) |
114 | add_executable(ceph_test_rados_api_lock_pp | |
115 | lock_cxx.cc) | |
116 | target_link_libraries(ceph_test_rados_api_lock_pp | |
117 | librados ${UNITTEST_LIBS} radostest-cxx) | |
7c673cae | 118 | |
224ce89b | 119 | add_executable(ceph_test_rados_api_service |
11fdf7f2 | 120 | service.cc) |
224ce89b | 121 | target_link_libraries(ceph_test_rados_api_service |
11fdf7f2 TL |
122 | librados global ${UNITTEST_LIBS} radostest) |
123 | add_executable(ceph_test_rados_api_service_pp | |
124 | service_cxx.cc) | |
125 | target_link_libraries(ceph_test_rados_api_service_pp | |
126 | librados global ${UNITTEST_LIBS} radostest-cxx) | |
127 | ||
128 | add_executable(ceph_test_rados_api_tier_pp | |
129 | tier_cxx.cc | |
130 | $<TARGET_OBJECTS:unit-main>) | |
1e59de90 TL |
131 | target_include_directories(ceph_test_rados_api_tier_pp |
132 | PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw/driver/rados" | |
133 | PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw") | |
11fdf7f2 | 134 | target_link_libraries(ceph_test_rados_api_tier_pp |
f67539c2 TL |
135 | librados global ${UNITTEST_LIBS} Boost::system radostest-cxx cls_cas_internal |
136 | cls_cas_client spawn) | |
7c673cae | 137 | |
7c673cae | 138 | add_executable(ceph_test_rados_api_snapshots |
11fdf7f2 | 139 | snapshots.cc) |
7c673cae | 140 | target_link_libraries(ceph_test_rados_api_snapshots |
11fdf7f2 TL |
141 | librados ${UNITTEST_LIBS} radostest) |
142 | add_executable(ceph_test_rados_api_snapshots_pp | |
143 | snapshots_cxx.cc) | |
144 | target_link_libraries(ceph_test_rados_api_snapshots_pp | |
145 | librados ${UNITTEST_LIBS} radostest-cxx) | |
1d09f67e TL |
146 | add_executable(ceph_test_rados_api_snapshots_stats |
147 | snapshots_stats.cc) | |
148 | target_link_libraries(ceph_test_rados_api_snapshots_stats | |
149 | librados ${UNITTEST_LIBS} radostest) | |
150 | add_executable(ceph_test_rados_api_snapshots_stats_pp | |
151 | snapshots_stats_cxx.cc) | |
152 | target_link_libraries(ceph_test_rados_api_snapshots_stats_pp | |
153 | librados ${UNITTEST_LIBS} radostest-cxx) | |
7c673cae | 154 | |
20effc67 TL |
155 | add_executable(ceph_test_rados_api_cls_remote_reads |
156 | cls_remote_reads.cc | |
157 | $<TARGET_OBJECTS:unit-main>) | |
158 | target_link_libraries(ceph_test_rados_api_cls_remote_reads | |
159 | librados global ${UNITTEST_LIBS} radostest-cxx) | |
160 | ||
7c673cae FG |
161 | install(TARGETS |
162 | ceph_test_rados_api_aio | |
11fdf7f2 TL |
163 | ceph_test_rados_api_aio_pp |
164 | ceph_test_rados_api_asio | |
7c673cae FG |
165 | ceph_test_rados_api_c_read_operations |
166 | ceph_test_rados_api_c_write_operations | |
167 | ceph_test_rados_api_cmd | |
11fdf7f2 | 168 | ceph_test_rados_api_cmd_pp |
7c673cae | 169 | ceph_test_rados_api_io |
11fdf7f2 | 170 | ceph_test_rados_api_io_pp |
7c673cae FG |
171 | ceph_test_rados_api_list |
172 | ceph_test_rados_api_lock | |
11fdf7f2 | 173 | ceph_test_rados_api_lock_pp |
7c673cae | 174 | ceph_test_rados_api_misc |
11fdf7f2 | 175 | ceph_test_rados_api_misc_pp |
7c673cae | 176 | ceph_test_rados_api_pool |
224ce89b | 177 | ceph_test_rados_api_service |
11fdf7f2 | 178 | ceph_test_rados_api_service_pp |
7c673cae | 179 | ceph_test_rados_api_snapshots |
11fdf7f2 | 180 | ceph_test_rados_api_snapshots_pp |
7c673cae | 181 | ceph_test_rados_api_stat |
11fdf7f2 TL |
182 | ceph_test_rados_api_stat_pp |
183 | ceph_test_rados_api_tier_pp | |
7c673cae | 184 | ceph_test_rados_api_watch_notify |
11fdf7f2 | 185 | ceph_test_rados_api_watch_notify_pp |
20effc67 | 186 | ceph_test_rados_api_cls_remote_reads |
7c673cae FG |
187 | DESTINATION ${CMAKE_INSTALL_BINDIR}) |
188 | ||
189 | # unittest_librados | |
190 | add_executable(unittest_librados | |
191 | librados.cc | |
192 | ) | |
11fdf7f2 TL |
193 | add_ceph_unittest(unittest_librados) |
194 | target_link_libraries(unittest_librados librados ${BLKID_LIBRARIES} | |
20effc67 | 195 | ${GSSAPI_LIBRARIES}) |
7c673cae FG |
196 | |
197 | # unittest_librados_config | |
198 | add_executable(unittest_librados_config | |
199 | librados_config.cc | |
200 | ) | |
11fdf7f2 | 201 | add_ceph_unittest(unittest_librados_config) |
7c673cae FG |
202 | target_link_libraries(unittest_librados_config |
203 | librados | |
20effc67 | 204 | ${BLKID_LIBRARIES} ${GSSAPI_LIBRARIES}) |
7c673cae | 205 | |
f67539c2 TL |
206 | # Removing this test. We can't shove it into Finisher as it's not a |
207 | # Context any more, and wrapping it to adapt it would be less fair. | |
208 | ||
209 | #add_executable(ceph_test_rados_completion_speed | |
210 | # completion_speed.cc) | |
211 | #target_link_libraries(ceph_test_rados_completion_speed | |
212 | # librados ${UNITTEST_LIBS} radostest-cxx) | |
213 | ||
214 | add_executable(ceph_test_rados_op_speed | |
215 | op_speed.cc) | |
216 | target_link_libraries(ceph_test_rados_op_speed | |
217 | librados ${UNITTEST_LIBS} radostest-cxx) |