1 add_executable(ceph_perf_objectstore
2 ObjectStoreTransactionBenchmark.cc)
3 target_link_libraries(ceph_perf_objectstore os osdc global ${UNITTEST_LIBS})
4 install(TARGETS ceph_perf_objectstore
7 add_library(store_test_fixture OBJECT store_test_fixture.cc)
8 target_include_directories(store_test_fixture PRIVATE
9 $<TARGET_PROPERTY:GTest::GTest,INTERFACE_INCLUDE_DIRECTORIES>)
11 add_executable(ceph_test_objectstore
13 $<TARGET_OBJECTS:store_test_fixture>)
14 target_link_libraries(ceph_test_objectstore
23 install(TARGETS ceph_test_objectstore
24 DESTINATION ${CMAKE_INSTALL_BINDIR})
26 add_executable(ceph_test_keyvaluedb
28 target_link_libraries(ceph_test_keyvaluedb
37 install(TARGETS ceph_test_keyvaluedb
38 DESTINATION ${CMAKE_INSTALL_BINDIR})
40 # ceph_test_filestore_idempotent
41 add_executable(ceph_test_filestore_idempotent
44 ${CMAKE_SOURCE_DIR}/src/test/common/ObjectContents.cc
46 target_link_libraries(ceph_test_filestore_idempotent
54 # ceph_test_filestore_idempotent_sequence
55 add_executable(ceph_test_filestore_idempotent_sequence
56 test_idempotent_sequence.cc
57 DeterministicOpSequence.cc
58 TestObjectStoreState.cc
61 target_link_libraries(ceph_test_filestore_idempotent_sequence
68 install(TARGETS ceph_test_filestore_idempotent_sequence
69 DESTINATION ${CMAKE_INSTALL_BINDIR})
71 # unittest_chain_xattr
72 add_executable(unittest_chain_xattr
75 add_ceph_unittest(unittest_chain_xattr)
76 target_link_libraries(unittest_chain_xattr os global)
78 # unittest_rocksdb_option
79 add_executable(unittest_rocksdb_option
80 TestRocksdbOptionParse.cc
81 $<TARGET_OBJECTS:unit-main>
83 add_ceph_unittest(unittest_rocksdb_option)
84 target_link_libraries(unittest_rocksdb_option global os ${BLKID_LIBRARIES})
87 add_dependencies(os eventtrace_tp)
92 add_executable(unittest_alloc
94 $<TARGET_OBJECTS:unit-main>
96 add_ceph_unittest(unittest_alloc)
97 target_link_libraries(unittest_alloc os global)
99 add_executable(unittest_alloc_bench
101 $<TARGET_OBJECTS:unit-main>
103 target_link_libraries(unittest_alloc_bench ${UNITTEST_LIBS} os global)
105 add_executable(unittest_fastbmap_allocator
106 fastbmap_allocator_test.cc
107 $<TARGET_OBJECTS:unit-main>
109 add_ceph_unittest(unittest_fastbmap_allocator)
110 target_link_libraries(unittest_fastbmap_allocator os global)
112 set_target_properties(unittest_fastbmap_allocator PROPERTIES COMPILE_FLAGS
113 "${UNITTEST_CXX_FLAGS}")
115 add_executable(unittest_alloc_aging EXCLUDE_FROM_ALL
116 Allocator_aging_fragmentation.cc)
117 target_link_libraries(unittest_alloc_aging os global GTest::Main)
120 add_executable(unittest_bluefs
123 add_ceph_unittest(unittest_bluefs)
124 target_link_libraries(unittest_bluefs os global)
126 # unittest_bluestore_types
127 add_executable(unittest_bluestore_types
128 test_bluestore_types.cc
130 add_ceph_unittest(unittest_bluestore_types)
131 target_link_libraries(unittest_bluestore_types os global)
132 endif(WITH_BLUESTORE)
134 # unittest_transaction
135 add_executable(unittest_transaction
137 add_ceph_unittest(unittest_transaction)
138 target_link_libraries(unittest_transaction os ceph-common)
140 # unittest_memstore_clone
141 add_executable(unittest_memstore_clone
142 test_memstore_clone.cc
143 $<TARGET_OBJECTS:store_test_fixture>)
144 add_ceph_unittest(unittest_memstore_clone)
145 target_link_libraries(unittest_memstore_clone os global)
148 add_executable(ceph_test_bmap_alloc_replay
149 bmap_allocator_replay_test.cc)
150 target_link_libraries(ceph_test_bmap_alloc_replay os global ${UNITTEST_LIBS})
151 install(TARGETS ceph_test_bmap_alloc_replay