From 8da608de386d67867d953c8f3aea1bc567fdada2 Mon Sep 17 00:00:00 2001 From: Ali Maredia Date: Mon, 1 Feb 2016 19:34:05 -0500 Subject: [PATCH] cmake: moved tests into test/cls_rgw dir Added a CMakeLists.txt into test/cls_rgw. Signed-off-by: Ali Maredia --- src/test/CMakeLists.txt | 18 +----------------- src/test/cls_rgw/CMakeLists.txt | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 src/test/cls_rgw/CMakeLists.txt diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index e2eec1aa2c4d9..2a4602dc43840 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -10,6 +10,7 @@ add_subdirectory(cls_numops) add_subdirectory(cls_rbd) add_subdirectory(cls_refcount) add_subdirectory(cls_replica_log) +add_subdirectory(cls_rgw) # test_timers add_executable(ceph_test_timers @@ -429,23 +430,6 @@ target_link_libraries(ceph_test_cls_statelog radostest ) -if(${WITH_RADOSGW}) - add_executable(ceph_test_cls_rgw - cls_rgw/test_cls_rgw.cc - ) - set_target_properties(ceph_test_cls_rgw PROPERTIES COMPILE_FLAGS - ${UNITTEST_CXX_FLAGS}) - target_link_libraries(ceph_test_cls_rgw - cls_rgw_client - librados - global - ${UNITTEST_LIBS} - ${EXTRALIBS} - ${BLKID_LIBRARIES} - ${CMAKE_DL_LIBS} - radostest) -endif(${WITH_RADOSGW}) - # ceph_test_async_driver add_executable(ceph_test_async_driver msgr/test_async_driver.cc diff --git a/src/test/cls_rgw/CMakeLists.txt b/src/test/cls_rgw/CMakeLists.txt new file mode 100644 index 0000000000000..c67e415c7a87f --- /dev/null +++ b/src/test/cls_rgw/CMakeLists.txt @@ -0,0 +1,17 @@ +if(${WITH_RADOSGW}) + add_executable(ceph_test_cls_rgw + test_cls_rgw.cc + ) + set_target_properties(ceph_test_cls_rgw PROPERTIES COMPILE_FLAGS + ${UNITTEST_CXX_FLAGS}) + target_link_libraries(ceph_test_cls_rgw + cls_rgw_client + librados + global + ${UNITTEST_LIBS} + ${EXTRALIBS} + ${BLKID_LIBRARIES} + ${CMAKE_DL_LIBS} + radostest) +endif(${WITH_RADOSGW}) + -- 2.39.5