2 add_library(radostest_shared OBJECT test_shared.cc)
3 target_include_directories(radostest_shared PRIVATE
4 $<TARGET_PROPERTY:GTest::GTest,INTERFACE_INCLUDE_DIRECTORIES>)
6 add_library(radostest STATIC
10 $<TARGET_OBJECTS:radostest_shared>)
11 target_link_libraries(radostest PUBLIC
15 ${GSSAPI_LIBRARIES} ${EXTRALIBS})
16 add_library(radostest-cxx STATIC
19 $<TARGET_OBJECTS:radostest_shared>)
20 target_link_libraries(radostest-cxx PUBLIC
24 add_executable(ceph_test_rados_api_cmd
26 target_link_libraries(ceph_test_rados_api_cmd
27 librados ${UNITTEST_LIBS} radostest)
28 add_executable(ceph_test_rados_api_cmd_pp
30 target_link_libraries(ceph_test_rados_api_cmd_pp
31 librados ${UNITTEST_LIBS} radostest-cxx)
33 add_executable(ceph_test_rados_api_io
35 target_link_libraries(ceph_test_rados_api_io
36 librados ${UNITTEST_LIBS} radostest)
37 add_executable(ceph_test_rados_api_io_pp
39 target_link_libraries(ceph_test_rados_api_io_pp
40 librados ${UNITTEST_LIBS} radostest-cxx)
42 add_executable(ceph_test_rados_api_c_write_operations
43 c_write_operations.cc)
44 target_link_libraries(ceph_test_rados_api_c_write_operations
45 librados ${UNITTEST_LIBS} radostest)
47 add_executable(ceph_test_rados_api_c_read_operations
49 target_link_libraries(ceph_test_rados_api_c_read_operations
50 librados ${UNITTEST_LIBS} radostest)
52 add_executable(ceph_test_rados_api_aio
54 target_link_libraries(ceph_test_rados_api_aio
55 librados ${UNITTEST_LIBS} radostest)
56 add_executable(ceph_test_rados_api_aio_pp
58 target_link_libraries(ceph_test_rados_api_aio_pp
59 librados ${UNITTEST_LIBS} radostest-cxx)
61 add_executable(ceph_test_rados_api_asio asio.cc)
62 target_link_libraries(ceph_test_rados_api_asio global
63 librados ${UNITTEST_LIBS} spawn)
65 add_executable(ceph_test_rados_api_list
67 $<TARGET_OBJECTS:unit-main>)
68 target_link_libraries(ceph_test_rados_api_list
69 librados global ${UNITTEST_LIBS} radostest)
71 add_executable(ceph_test_rados_api_pool
73 target_link_libraries(ceph_test_rados_api_pool
74 librados ${UNITTEST_LIBS} radostest)
76 add_executable(ceph_test_rados_api_stat
78 target_link_libraries(ceph_test_rados_api_stat
79 librados ${UNITTEST_LIBS} radostest)
80 add_executable(ceph_test_rados_api_stat_pp
82 target_link_libraries(ceph_test_rados_api_stat_pp
83 librados ${UNITTEST_LIBS} radostest-cxx)
85 add_executable(ceph_test_rados_api_watch_notify
87 target_link_libraries(ceph_test_rados_api_watch_notify
88 librados ${UNITTEST_LIBS} radostest)
89 add_executable(ceph_test_rados_api_watch_notify_pp
91 target_link_libraries(ceph_test_rados_api_watch_notify_pp
92 librados ${UNITTEST_LIBS} radostest-cxx)
94 add_executable(ceph_test_rados_api_cls
96 target_link_libraries(ceph_test_rados_api_cls
97 librados ${UNITTEST_LIBS} radostest-cxx)
99 add_executable(ceph_test_rados_api_misc
101 $<TARGET_OBJECTS:unit-main>)
102 target_link_libraries(ceph_test_rados_api_misc
103 librados global ${UNITTEST_LIBS} radostest)
104 add_executable(ceph_test_rados_api_misc_pp
106 $<TARGET_OBJECTS:unit-main>)
107 target_link_libraries(ceph_test_rados_api_misc_pp
108 librados global ${UNITTEST_LIBS} radostest-cxx)
110 add_executable(ceph_test_rados_api_lock
112 target_link_libraries(ceph_test_rados_api_lock
113 librados ${UNITTEST_LIBS} radostest)
114 add_executable(ceph_test_rados_api_lock_pp
116 target_link_libraries(ceph_test_rados_api_lock_pp
117 librados ${UNITTEST_LIBS} radostest-cxx)
119 add_executable(ceph_test_rados_api_service
121 target_link_libraries(ceph_test_rados_api_service
122 librados global ${UNITTEST_LIBS} radostest)
123 add_executable(ceph_test_rados_api_service_pp
125 target_link_libraries(ceph_test_rados_api_service_pp
126 librados global ${UNITTEST_LIBS} radostest-cxx)
128 add_executable(ceph_test_rados_api_tier_pp
130 $<TARGET_OBJECTS:unit-main>)
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")
134 target_link_libraries(ceph_test_rados_api_tier_pp
135 librados global ${UNITTEST_LIBS} Boost::system radostest-cxx cls_cas_internal
136 cls_cas_client spawn)
138 add_executable(ceph_test_rados_api_snapshots
140 target_link_libraries(ceph_test_rados_api_snapshots
141 librados ${UNITTEST_LIBS} radostest)
142 add_executable(ceph_test_rados_api_snapshots_pp
144 target_link_libraries(ceph_test_rados_api_snapshots_pp
145 librados ${UNITTEST_LIBS} radostest-cxx)
146 add_executable(ceph_test_rados_api_snapshots_stats
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)
155 add_executable(ceph_test_rados_api_cls_remote_reads
157 $<TARGET_OBJECTS:unit-main>)
158 target_link_libraries(ceph_test_rados_api_cls_remote_reads
159 librados global ${UNITTEST_LIBS} radostest-cxx)
162 ceph_test_rados_api_aio
163 ceph_test_rados_api_aio_pp
164 ceph_test_rados_api_asio
165 ceph_test_rados_api_c_read_operations
166 ceph_test_rados_api_c_write_operations
167 ceph_test_rados_api_cmd
168 ceph_test_rados_api_cmd_pp
169 ceph_test_rados_api_io
170 ceph_test_rados_api_io_pp
171 ceph_test_rados_api_list
172 ceph_test_rados_api_lock
173 ceph_test_rados_api_lock_pp
174 ceph_test_rados_api_misc
175 ceph_test_rados_api_misc_pp
176 ceph_test_rados_api_pool
177 ceph_test_rados_api_service
178 ceph_test_rados_api_service_pp
179 ceph_test_rados_api_snapshots
180 ceph_test_rados_api_snapshots_pp
181 ceph_test_rados_api_stat
182 ceph_test_rados_api_stat_pp
183 ceph_test_rados_api_tier_pp
184 ceph_test_rados_api_watch_notify
185 ceph_test_rados_api_watch_notify_pp
186 ceph_test_rados_api_cls_remote_reads
187 DESTINATION ${CMAKE_INSTALL_BINDIR})
190 add_executable(unittest_librados
193 add_ceph_unittest(unittest_librados)
194 target_link_libraries(unittest_librados librados ${BLKID_LIBRARIES}
197 # unittest_librados_config
198 add_executable(unittest_librados_config
201 add_ceph_unittest(unittest_librados_config)
202 target_link_libraries(unittest_librados_config
204 ${BLKID_LIBRARIES} ${GSSAPI_LIBRARIES})
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.
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)
214 add_executable(ceph_test_rados_op_speed
216 target_link_libraries(ceph_test_rados_op_speed
217 librados ${UNITTEST_LIBS} radostest-cxx)