From 19fcec84d8d7d21e796c7624e521b60d28ee21ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:45:59 +0200 Subject: Adding upstream version 16.2.11+ds. Signed-off-by: Daniel Baumann --- src/test/librados/CMakeLists.txt | 199 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 199 insertions(+) create mode 100644 src/test/librados/CMakeLists.txt (limited to 'src/test/librados/CMakeLists.txt') diff --git a/src/test/librados/CMakeLists.txt b/src/test/librados/CMakeLists.txt new file mode 100644 index 000000000..e9338bbd4 --- /dev/null +++ b/src/test/librados/CMakeLists.txt @@ -0,0 +1,199 @@ +# radostest +add_library(radostest_shared OBJECT test_shared.cc) +target_include_directories(radostest_shared PRIVATE + $) + +add_library(radostest STATIC + test_common.cc + TestCase.cc + test.cc + $) +target_link_libraries(radostest PUBLIC + GTest::GTest + ceph-common + json_spirit + ${GSSAPI_LIBRARIES} ${OPENLDAP_LIBRARIES} ${EXTRALIBS}) +add_library(radostest-cxx STATIC + testcase_cxx.cc + test_cxx.cc + $) +target_link_libraries(radostest-cxx PUBLIC + GTest::GTest + ceph-common) + +add_executable(ceph_test_rados_api_cmd + cmd.cc) +target_link_libraries(ceph_test_rados_api_cmd + librados ${UNITTEST_LIBS} radostest) +add_executable(ceph_test_rados_api_cmd_pp + cmd_cxx.cc) +target_link_libraries(ceph_test_rados_api_cmd_pp + librados ${UNITTEST_LIBS} radostest-cxx) + +add_executable(ceph_test_rados_api_io + io.cc) +target_link_libraries(ceph_test_rados_api_io + librados ${UNITTEST_LIBS} radostest) +add_executable(ceph_test_rados_api_io_pp + io_cxx.cc) +target_link_libraries(ceph_test_rados_api_io_pp + librados ${UNITTEST_LIBS} radostest-cxx) + +add_executable(ceph_test_rados_api_c_write_operations + c_write_operations.cc) +target_link_libraries(ceph_test_rados_api_c_write_operations + librados ${UNITTEST_LIBS} radostest) + +add_executable(ceph_test_rados_api_c_read_operations + c_read_operations.cc) +target_link_libraries(ceph_test_rados_api_c_read_operations + librados ${UNITTEST_LIBS} radostest) + +add_executable(ceph_test_rados_api_aio + aio.cc) +target_link_libraries(ceph_test_rados_api_aio + librados ${UNITTEST_LIBS} radostest) +add_executable(ceph_test_rados_api_aio_pp + aio_cxx.cc) +target_link_libraries(ceph_test_rados_api_aio_pp + librados ${UNITTEST_LIBS} radostest-cxx) + +add_executable(ceph_test_rados_api_asio asio.cc) +target_link_libraries(ceph_test_rados_api_asio global + librados ${UNITTEST_LIBS} Boost::coroutine Boost::context) + +add_executable(ceph_test_rados_api_list + list.cc + $) +target_link_libraries(ceph_test_rados_api_list + librados global ${UNITTEST_LIBS} radostest) + +add_executable(ceph_test_rados_api_pool + pool.cc) +target_link_libraries(ceph_test_rados_api_pool + librados ${UNITTEST_LIBS} radostest) + +add_executable(ceph_test_rados_api_stat + stat.cc) +target_link_libraries(ceph_test_rados_api_stat + librados ${UNITTEST_LIBS} radostest) +add_executable(ceph_test_rados_api_stat_pp + stat_cxx.cc) +target_link_libraries(ceph_test_rados_api_stat_pp + librados ${UNITTEST_LIBS} radostest-cxx) + +add_executable(ceph_test_rados_api_watch_notify + watch_notify.cc) +target_link_libraries(ceph_test_rados_api_watch_notify + librados ${UNITTEST_LIBS} radostest) +add_executable(ceph_test_rados_api_watch_notify_pp + watch_notify_cxx.cc) +target_link_libraries(ceph_test_rados_api_watch_notify_pp + librados ${UNITTEST_LIBS} radostest-cxx) + +add_executable(ceph_test_rados_api_cls + cls.cc) +target_link_libraries(ceph_test_rados_api_cls + librados ${UNITTEST_LIBS} radostest-cxx) + +add_executable(ceph_test_rados_api_misc + misc.cc + $) +target_link_libraries(ceph_test_rados_api_misc + librados global ${UNITTEST_LIBS} radostest) +add_executable(ceph_test_rados_api_misc_pp + misc_cxx.cc + $) +target_link_libraries(ceph_test_rados_api_misc_pp + librados global ${UNITTEST_LIBS} radostest-cxx) + +add_executable(ceph_test_rados_api_lock + lock.cc) +target_link_libraries(ceph_test_rados_api_lock + librados ${UNITTEST_LIBS} radostest) +add_executable(ceph_test_rados_api_lock_pp + lock_cxx.cc) +target_link_libraries(ceph_test_rados_api_lock_pp + librados ${UNITTEST_LIBS} radostest-cxx) + +add_executable(ceph_test_rados_api_service + service.cc) +target_link_libraries(ceph_test_rados_api_service + librados global ${UNITTEST_LIBS} radostest) +add_executable(ceph_test_rados_api_service_pp + service_cxx.cc) +target_link_libraries(ceph_test_rados_api_service_pp + librados global ${UNITTEST_LIBS} radostest-cxx) + +add_executable(ceph_test_rados_api_tier_pp + tier_cxx.cc + $) +target_link_libraries(ceph_test_rados_api_tier_pp + librados global ${UNITTEST_LIBS} Boost::system radostest-cxx cls_cas_internal + cls_cas_client spawn) + +add_executable(ceph_test_rados_api_snapshots + snapshots.cc) +target_link_libraries(ceph_test_rados_api_snapshots + librados ${UNITTEST_LIBS} radostest) +add_executable(ceph_test_rados_api_snapshots_pp + snapshots_cxx.cc) +target_link_libraries(ceph_test_rados_api_snapshots_pp + librados ${UNITTEST_LIBS} radostest-cxx) + +install(TARGETS + ceph_test_rados_api_aio + ceph_test_rados_api_aio_pp + ceph_test_rados_api_asio + ceph_test_rados_api_c_read_operations + ceph_test_rados_api_c_write_operations + ceph_test_rados_api_cmd + ceph_test_rados_api_cmd_pp + ceph_test_rados_api_io + ceph_test_rados_api_io_pp + ceph_test_rados_api_list + ceph_test_rados_api_lock + ceph_test_rados_api_lock_pp + ceph_test_rados_api_misc + ceph_test_rados_api_misc_pp + ceph_test_rados_api_pool + ceph_test_rados_api_service + ceph_test_rados_api_service_pp + ceph_test_rados_api_snapshots + ceph_test_rados_api_snapshots_pp + ceph_test_rados_api_stat + ceph_test_rados_api_stat_pp + ceph_test_rados_api_tier_pp + ceph_test_rados_api_watch_notify + ceph_test_rados_api_watch_notify_pp + DESTINATION ${CMAKE_INSTALL_BINDIR}) + +# unittest_librados +add_executable(unittest_librados + librados.cc + ) +add_ceph_unittest(unittest_librados) +target_link_libraries(unittest_librados librados ${BLKID_LIBRARIES} + ${GSSAPI_LIBRARIES} ${OPENLDAP_LIBRARIES}) + +# unittest_librados_config +add_executable(unittest_librados_config + librados_config.cc + ) +add_ceph_unittest(unittest_librados_config) +target_link_libraries(unittest_librados_config + librados + ${BLKID_LIBRARIES} ${GSSAPI_LIBRARIES} ${OPENLDAP_LIBRARIES}) + +# Removing this test. We can't shove it into Finisher as it's not a +# Context any more, and wrapping it to adapt it would be less fair. + +#add_executable(ceph_test_rados_completion_speed +# completion_speed.cc) +#target_link_libraries(ceph_test_rados_completion_speed +# librados ${UNITTEST_LIBS} radostest-cxx) + +add_executable(ceph_test_rados_op_speed + op_speed.cc) +target_link_libraries(ceph_test_rados_op_speed + librados ${UNITTEST_LIBS} radostest-cxx) -- cgit v1.2.3