]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/crimson: do not link against crimson-{os,common}
authorKefu Chai <kchai@redhat.com>
Wed, 9 Dec 2020 09:42:43 +0000 (17:42 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 10 Dec 2020 09:22:04 +0000 (17:22 +0800)
this change partially reverts 652dbacc7424efbd3c3175de8ba79ed29edd55c8
quite a few test does not use crimson-os at all, so no need to link
against this library.

even worse is that crimson-os contains crimson-seastore *and*
crimson-alienstore. this introduces cyclic references.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/seastore/CMakeLists.txt
src/test/crimson/seastore/CMakeLists.txt
src/test/crimson/seastore/onode_tree/CMakeLists.txt

index 5a764f19cc3ba8a29d18c25e3d5b27c316e38fc7..1632e98babdcc9a478edb5c0d1ed6cfece48da9c 100644 (file)
@@ -34,6 +34,4 @@ add_library(crimson-seastore STATIC
   ../../../test/crimson/seastore/test_block.cc
        )
 target_link_libraries(crimson-seastore
-  crimson
-  crimson-os)
-
+  crimson)
index 34a3721895dc4e61a7745c2fc43cdd28653010ed..73feebe23c2b737c78836189a7e7800af008b78f 100644 (file)
@@ -6,9 +6,7 @@ add_ceph_unittest(unittest-transaction-manager)
 target_link_libraries(
   unittest-transaction-manager
   ${CMAKE_DL_LIBS}
-  crimson-seastore
-  crimson-os
-  crimson-common)
+  crimson-seastore)
 
 add_executable(unittest-btree-lba-manager
   test_btree_lba_manager.cc
@@ -17,9 +15,7 @@ add_ceph_unittest(unittest-btree-lba-manager)
 target_link_libraries(
   unittest-btree-lba-manager
   ${CMAKE_DL_LIBS}
-  crimson-seastore
-  crimson-os
-  crimson-common)
+  crimson-seastore)
 
 add_executable(unittest-seastore-journal
   test_seastore_journal.cc)
@@ -28,9 +24,7 @@ add_ceph_test(unittest-seastore-journal
 target_link_libraries(
   unittest-seastore-journal
   crimson::gtest
-  crimson-seastore
-  crimson-os
-  crimson-common)
+  crimson-seastore)
 
 add_executable(unittest-seastore-cache
   test_block.cc
@@ -40,9 +34,7 @@ add_ceph_test(unittest-seastore-cache
 target_link_libraries(
   unittest-seastore-cache
   crimson::gtest
-  crimson-seastore
-  crimson-os
-  crimson-common)
+  crimson-seastore)
 
 add_executable(unittest-extmap-manager
   test_extmap_manager.cc
index 5947d8a68f0c98dc4d338cbd7e6520e85e848c60..1f4718db067e04efcfc0ddd4c628dc9e27a631a9 100644 (file)
@@ -3,9 +3,7 @@ add_executable(test-seastore-onode-tree-node
 add_ceph_unittest(test-seastore-onode-tree-node)
 target_link_libraries(test-seastore-onode-tree-node
   crimson-seastore
-  GTest::Main
-  crimson-os
-  crimson-common)
+  GTest::Main)
 
 add_executable(unittest-staged-fltree
   test_staged_fltree.cc