]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/librados/CMakeLists.txt
bump version to 18.2.2-pve1
[ceph.git] / ceph / src / test / librados / CMakeLists.txt
CommitLineData
31f18b77 1# radostest
11fdf7f2
TL
2add_library(radostest_shared OBJECT test_shared.cc)
3target_include_directories(radostest_shared PRIVATE
4 $<TARGET_PROPERTY:GTest::GTest,INTERFACE_INCLUDE_DIRECTORIES>)
5
31f18b77 6add_library(radostest STATIC
11fdf7f2
TL
7 test_common.cc
8 TestCase.cc
9 test.cc
10 $<TARGET_OBJECTS:radostest_shared>)
11target_link_libraries(radostest PUBLIC
12 GTest::GTest
13 ceph-common
14 json_spirit
20effc67 15 ${GSSAPI_LIBRARIES} ${EXTRALIBS})
11fdf7f2
TL
16add_library(radostest-cxx STATIC
17 testcase_cxx.cc
18 test_cxx.cc
19 $<TARGET_OBJECTS:radostest_shared>)
20target_link_libraries(radostest-cxx PUBLIC
21 GTest::GTest
22 ceph-common)
7c673cae 23
7c673cae 24add_executable(ceph_test_rados_api_cmd
11fdf7f2 25 cmd.cc)
7c673cae 26target_link_libraries(ceph_test_rados_api_cmd
11fdf7f2
TL
27 librados ${UNITTEST_LIBS} radostest)
28add_executable(ceph_test_rados_api_cmd_pp
29 cmd_cxx.cc)
30target_link_libraries(ceph_test_rados_api_cmd_pp
31 librados ${UNITTEST_LIBS} radostest-cxx)
7c673cae 32
7c673cae 33add_executable(ceph_test_rados_api_io
11fdf7f2 34 io.cc)
7c673cae
FG
35target_link_libraries(ceph_test_rados_api_io
36 librados ${UNITTEST_LIBS} radostest)
11fdf7f2
TL
37add_executable(ceph_test_rados_api_io_pp
38 io_cxx.cc)
39target_link_libraries(ceph_test_rados_api_io_pp
40 librados ${UNITTEST_LIBS} radostest-cxx)
7c673cae 41
7c673cae 42add_executable(ceph_test_rados_api_c_write_operations
11fdf7f2 43 c_write_operations.cc)
7c673cae
FG
44target_link_libraries(ceph_test_rados_api_c_write_operations
45 librados ${UNITTEST_LIBS} radostest)
46
7c673cae 47add_executable(ceph_test_rados_api_c_read_operations
11fdf7f2 48 c_read_operations.cc)
7c673cae
FG
49target_link_libraries(ceph_test_rados_api_c_read_operations
50 librados ${UNITTEST_LIBS} radostest)
51
7c673cae 52add_executable(ceph_test_rados_api_aio
11fdf7f2 53 aio.cc)
7c673cae
FG
54target_link_libraries(ceph_test_rados_api_aio
55 librados ${UNITTEST_LIBS} radostest)
11fdf7f2
TL
56add_executable(ceph_test_rados_api_aio_pp
57 aio_cxx.cc)
58target_link_libraries(ceph_test_rados_api_aio_pp
59 librados ${UNITTEST_LIBS} radostest-cxx)
60
61add_executable(ceph_test_rados_api_asio asio.cc)
62target_link_libraries(ceph_test_rados_api_asio global
1e59de90 63 librados ${UNITTEST_LIBS} spawn)
7c673cae 64
7c673cae
FG
65add_executable(ceph_test_rados_api_list
66 list.cc
11fdf7f2 67 $<TARGET_OBJECTS:unit-main>)
7c673cae 68target_link_libraries(ceph_test_rados_api_list
11fdf7f2 69 librados global ${UNITTEST_LIBS} radostest)
7c673cae 70
7c673cae 71add_executable(ceph_test_rados_api_pool
11fdf7f2 72 pool.cc)
7c673cae 73target_link_libraries(ceph_test_rados_api_pool
11fdf7f2 74 librados ${UNITTEST_LIBS} radostest)
7c673cae 75
7c673cae 76add_executable(ceph_test_rados_api_stat
11fdf7f2 77 stat.cc)
7c673cae 78target_link_libraries(ceph_test_rados_api_stat
11fdf7f2
TL
79 librados ${UNITTEST_LIBS} radostest)
80add_executable(ceph_test_rados_api_stat_pp
81 stat_cxx.cc)
82target_link_libraries(ceph_test_rados_api_stat_pp
83 librados ${UNITTEST_LIBS} radostest-cxx)
7c673cae 84
7c673cae 85add_executable(ceph_test_rados_api_watch_notify
11fdf7f2 86 watch_notify.cc)
7c673cae 87target_link_libraries(ceph_test_rados_api_watch_notify
11fdf7f2
TL
88 librados ${UNITTEST_LIBS} radostest)
89add_executable(ceph_test_rados_api_watch_notify_pp
90 watch_notify_cxx.cc)
91target_link_libraries(ceph_test_rados_api_watch_notify_pp
92 librados ${UNITTEST_LIBS} radostest-cxx)
7c673cae 93
7c673cae 94add_executable(ceph_test_rados_api_cls
11fdf7f2 95 cls.cc)
7c673cae 96target_link_libraries(ceph_test_rados_api_cls
11fdf7f2 97 librados ${UNITTEST_LIBS} radostest-cxx)
7c673cae 98
7c673cae
FG
99add_executable(ceph_test_rados_api_misc
100 misc.cc
11fdf7f2 101 $<TARGET_OBJECTS:unit-main>)
7c673cae 102target_link_libraries(ceph_test_rados_api_misc
11fdf7f2
TL
103 librados global ${UNITTEST_LIBS} radostest)
104add_executable(ceph_test_rados_api_misc_pp
105 misc_cxx.cc
106 $<TARGET_OBJECTS:unit-main>)
107target_link_libraries(ceph_test_rados_api_misc_pp
108 librados global ${UNITTEST_LIBS} radostest-cxx)
7c673cae 109
7c673cae 110add_executable(ceph_test_rados_api_lock
11fdf7f2 111 lock.cc)
7c673cae 112target_link_libraries(ceph_test_rados_api_lock
11fdf7f2
TL
113 librados ${UNITTEST_LIBS} radostest)
114add_executable(ceph_test_rados_api_lock_pp
115 lock_cxx.cc)
116target_link_libraries(ceph_test_rados_api_lock_pp
117 librados ${UNITTEST_LIBS} radostest-cxx)
7c673cae 118
224ce89b 119add_executable(ceph_test_rados_api_service
11fdf7f2 120 service.cc)
224ce89b 121target_link_libraries(ceph_test_rados_api_service
11fdf7f2
TL
122 librados global ${UNITTEST_LIBS} radostest)
123add_executable(ceph_test_rados_api_service_pp
124 service_cxx.cc)
125target_link_libraries(ceph_test_rados_api_service_pp
126 librados global ${UNITTEST_LIBS} radostest-cxx)
127
128add_executable(ceph_test_rados_api_tier_pp
129 tier_cxx.cc
130 $<TARGET_OBJECTS:unit-main>)
1e59de90
TL
131target_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 134target_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 138add_executable(ceph_test_rados_api_snapshots
11fdf7f2 139 snapshots.cc)
7c673cae 140target_link_libraries(ceph_test_rados_api_snapshots
11fdf7f2
TL
141 librados ${UNITTEST_LIBS} radostest)
142add_executable(ceph_test_rados_api_snapshots_pp
143 snapshots_cxx.cc)
144target_link_libraries(ceph_test_rados_api_snapshots_pp
145 librados ${UNITTEST_LIBS} radostest-cxx)
1d09f67e
TL
146add_executable(ceph_test_rados_api_snapshots_stats
147 snapshots_stats.cc)
148target_link_libraries(ceph_test_rados_api_snapshots_stats
149 librados ${UNITTEST_LIBS} radostest)
150add_executable(ceph_test_rados_api_snapshots_stats_pp
151 snapshots_stats_cxx.cc)
152target_link_libraries(ceph_test_rados_api_snapshots_stats_pp
153 librados ${UNITTEST_LIBS} radostest-cxx)
7c673cae 154
20effc67
TL
155add_executable(ceph_test_rados_api_cls_remote_reads
156 cls_remote_reads.cc
157 $<TARGET_OBJECTS:unit-main>)
158target_link_libraries(ceph_test_rados_api_cls_remote_reads
159 librados global ${UNITTEST_LIBS} radostest-cxx)
160
7c673cae
FG
161install(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
190add_executable(unittest_librados
191 librados.cc
192 )
11fdf7f2
TL
193add_ceph_unittest(unittest_librados)
194target_link_libraries(unittest_librados librados ${BLKID_LIBRARIES}
20effc67 195 ${GSSAPI_LIBRARIES})
7c673cae
FG
196
197# unittest_librados_config
198add_executable(unittest_librados_config
199 librados_config.cc
200 )
11fdf7f2 201add_ceph_unittest(unittest_librados_config)
7c673cae
FG
202target_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
214add_executable(ceph_test_rados_op_speed
215 op_speed.cc)
216target_link_libraries(ceph_test_rados_op_speed
217 librados ${UNITTEST_LIBS} radostest-cxx)