]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/librados/CMakeLists.txt
bump version to 18.2.2-pve1
[ceph.git] / ceph / src / test / librados / CMakeLists.txt
1 # radostest
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
6 add_library(radostest STATIC
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
15 ${GSSAPI_LIBRARIES} ${EXTRALIBS})
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)
23
24 add_executable(ceph_test_rados_api_cmd
25 cmd.cc)
26 target_link_libraries(ceph_test_rados_api_cmd
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)
32
33 add_executable(ceph_test_rados_api_io
34 io.cc)
35 target_link_libraries(ceph_test_rados_api_io
36 librados ${UNITTEST_LIBS} radostest)
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)
41
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)
46
47 add_executable(ceph_test_rados_api_c_read_operations
48 c_read_operations.cc)
49 target_link_libraries(ceph_test_rados_api_c_read_operations
50 librados ${UNITTEST_LIBS} radostest)
51
52 add_executable(ceph_test_rados_api_aio
53 aio.cc)
54 target_link_libraries(ceph_test_rados_api_aio
55 librados ${UNITTEST_LIBS} radostest)
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
63 librados ${UNITTEST_LIBS} spawn)
64
65 add_executable(ceph_test_rados_api_list
66 list.cc
67 $<TARGET_OBJECTS:unit-main>)
68 target_link_libraries(ceph_test_rados_api_list
69 librados global ${UNITTEST_LIBS} radostest)
70
71 add_executable(ceph_test_rados_api_pool
72 pool.cc)
73 target_link_libraries(ceph_test_rados_api_pool
74 librados ${UNITTEST_LIBS} radostest)
75
76 add_executable(ceph_test_rados_api_stat
77 stat.cc)
78 target_link_libraries(ceph_test_rados_api_stat
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)
84
85 add_executable(ceph_test_rados_api_watch_notify
86 watch_notify.cc)
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
90 watch_notify_cxx.cc)
91 target_link_libraries(ceph_test_rados_api_watch_notify_pp
92 librados ${UNITTEST_LIBS} radostest-cxx)
93
94 add_executable(ceph_test_rados_api_cls
95 cls.cc)
96 target_link_libraries(ceph_test_rados_api_cls
97 librados ${UNITTEST_LIBS} radostest-cxx)
98
99 add_executable(ceph_test_rados_api_misc
100 misc.cc
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
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)
109
110 add_executable(ceph_test_rados_api_lock
111 lock.cc)
112 target_link_libraries(ceph_test_rados_api_lock
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)
118
119 add_executable(ceph_test_rados_api_service
120 service.cc)
121 target_link_libraries(ceph_test_rados_api_service
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>)
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)
137
138 add_executable(ceph_test_rados_api_snapshots
139 snapshots.cc)
140 target_link_libraries(ceph_test_rados_api_snapshots
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)
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)
154
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
161 install(TARGETS
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})
188
189 # unittest_librados
190 add_executable(unittest_librados
191 librados.cc
192 )
193 add_ceph_unittest(unittest_librados)
194 target_link_libraries(unittest_librados librados ${BLKID_LIBRARIES}
195 ${GSSAPI_LIBRARIES})
196
197 # unittest_librados_config
198 add_executable(unittest_librados_config
199 librados_config.cc
200 )
201 add_ceph_unittest(unittest_librados_config)
202 target_link_libraries(unittest_librados_config
203 librados
204 ${BLKID_LIBRARIES} ${GSSAPI_LIBRARIES})
205
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)