]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: duplicate unittest_bluefs -> ceph_test_bluefs
authorAdam Kupczyk <akupczyk@ibm.com>
Wed, 11 Dec 2024 17:21:26 +0000 (17:21 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Fri, 13 Dec 2024 12:01:58 +0000 (12:01 +0000)
This change has 2 rationales:
1) The test outgrew initial unittest framework and now executes
   component testing
2) We still need to run most of unittest_blues as part of jenkins make check
3) We want to run tests on teuthology. Build process excludes unit
   tests, so ceph_test_bluefs was created.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/test/objectstore/CMakeLists.txt

index bddff3f6727625805713d5e4e3e6b5c31124b19c..083886400432fe1052387594b71a9a6147f8ea48 100644 (file)
@@ -48,6 +48,18 @@ add_executable(unittest_rocksdb_option
 add_ceph_unittest(unittest_rocksdb_option)
 target_link_libraries(unittest_rocksdb_option global os ${BLKID_LIBRARIES})
 
+# ceph_test_bluefs (a clone of unittest_bluefs)
+add_executable(ceph_test_bluefs
+  test_bluefs.cc
+  )
+target_link_libraries(ceph_test_bluefs
+  os
+  global
+  ${UNITTEST_LIBS}
+  )
+install(TARGETS ceph_test_bluefs
+  DESTINATION ${CMAKE_INSTALL_BINDIR})
+
 if(WITH_EVENTTRACE)
   add_dependencies(os eventtrace_tp)
 endif()