]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/librados/CMakeLists.txt
import quincy beta 17.1.0
[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
f67539c2 63 librados ${UNITTEST_LIBS} Boost::coroutine Boost::context)
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>)
131target_link_libraries(ceph_test_rados_api_tier_pp
f67539c2
TL
132 librados global ${UNITTEST_LIBS} Boost::system radostest-cxx cls_cas_internal
133 cls_cas_client spawn)
7c673cae 134
7c673cae 135add_executable(ceph_test_rados_api_snapshots
11fdf7f2 136 snapshots.cc)
7c673cae 137target_link_libraries(ceph_test_rados_api_snapshots
11fdf7f2
TL
138 librados ${UNITTEST_LIBS} radostest)
139add_executable(ceph_test_rados_api_snapshots_pp
140 snapshots_cxx.cc)
141target_link_libraries(ceph_test_rados_api_snapshots_pp
142 librados ${UNITTEST_LIBS} radostest-cxx)
7c673cae 143
20effc67
TL
144add_executable(ceph_test_rados_api_cls_remote_reads
145 cls_remote_reads.cc
146 $<TARGET_OBJECTS:unit-main>)
147target_link_libraries(ceph_test_rados_api_cls_remote_reads
148 librados global ${UNITTEST_LIBS} radostest-cxx)
149
7c673cae
FG
150install(TARGETS
151 ceph_test_rados_api_aio
11fdf7f2
TL
152 ceph_test_rados_api_aio_pp
153 ceph_test_rados_api_asio
7c673cae
FG
154 ceph_test_rados_api_c_read_operations
155 ceph_test_rados_api_c_write_operations
156 ceph_test_rados_api_cmd
11fdf7f2 157 ceph_test_rados_api_cmd_pp
7c673cae 158 ceph_test_rados_api_io
11fdf7f2 159 ceph_test_rados_api_io_pp
7c673cae
FG
160 ceph_test_rados_api_list
161 ceph_test_rados_api_lock
11fdf7f2 162 ceph_test_rados_api_lock_pp
7c673cae 163 ceph_test_rados_api_misc
11fdf7f2 164 ceph_test_rados_api_misc_pp
7c673cae 165 ceph_test_rados_api_pool
224ce89b 166 ceph_test_rados_api_service
11fdf7f2 167 ceph_test_rados_api_service_pp
7c673cae 168 ceph_test_rados_api_snapshots
11fdf7f2 169 ceph_test_rados_api_snapshots_pp
7c673cae 170 ceph_test_rados_api_stat
11fdf7f2
TL
171 ceph_test_rados_api_stat_pp
172 ceph_test_rados_api_tier_pp
7c673cae 173 ceph_test_rados_api_watch_notify
11fdf7f2 174 ceph_test_rados_api_watch_notify_pp
20effc67 175 ceph_test_rados_api_cls_remote_reads
7c673cae
FG
176 DESTINATION ${CMAKE_INSTALL_BINDIR})
177
178# unittest_librados
179add_executable(unittest_librados
180 librados.cc
181 )
11fdf7f2
TL
182add_ceph_unittest(unittest_librados)
183target_link_libraries(unittest_librados librados ${BLKID_LIBRARIES}
20effc67 184 ${GSSAPI_LIBRARIES})
7c673cae
FG
185
186# unittest_librados_config
187add_executable(unittest_librados_config
188 librados_config.cc
189 )
11fdf7f2 190add_ceph_unittest(unittest_librados_config)
7c673cae
FG
191target_link_libraries(unittest_librados_config
192 librados
20effc67 193 ${BLKID_LIBRARIES} ${GSSAPI_LIBRARIES})
7c673cae 194
f67539c2
TL
195# Removing this test. We can't shove it into Finisher as it's not a
196# Context any more, and wrapping it to adapt it would be less fair.
197
198#add_executable(ceph_test_rados_completion_speed
199# completion_speed.cc)
200#target_link_libraries(ceph_test_rados_completion_speed
201# librados ${UNITTEST_LIBS} radostest-cxx)
202
203add_executable(ceph_test_rados_op_speed
204 op_speed.cc)
205target_link_libraries(ceph_test_rados_op_speed
206 librados ${UNITTEST_LIBS} radostest-cxx)