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 # unittest_rocksdb_option
41 add_executable(unittest_rocksdb_option
42 TestRocksdbOptionParse.cc
43 $<TARGET_OBJECTS:unit-main>
45 add_ceph_unittest(unittest_rocksdb_option)
46 target_link_libraries(unittest_rocksdb_option global os ${BLKID_LIBRARIES})
49 add_dependencies(os eventtrace_tp)
54 add_executable(unittest_alloc
56 $<TARGET_OBJECTS:unit-main>
58 add_ceph_unittest(unittest_alloc)
59 target_link_libraries(unittest_alloc os global)
61 add_executable(unittest_alloc_bench
63 $<TARGET_OBJECTS:unit-main>
65 target_link_libraries(unittest_alloc_bench ${UNITTEST_LIBS} os global)
67 add_executable(unittest_fastbmap_allocator
68 fastbmap_allocator_test.cc
69 $<TARGET_OBJECTS:unit-main>
71 add_ceph_unittest(unittest_fastbmap_allocator)
72 target_link_libraries(unittest_fastbmap_allocator os global)
74 set_target_properties(unittest_fastbmap_allocator PROPERTIES COMPILE_FLAGS
75 "${UNITTEST_CXX_FLAGS}")
77 add_executable(unittest_hybrid_allocator
78 hybrid_allocator_test.cc
79 $<TARGET_OBJECTS:unit-main>
81 add_ceph_unittest(unittest_hybrid_allocator)
82 target_link_libraries(unittest_hybrid_allocator os global)
84 set_target_properties(unittest_hybrid_allocator PROPERTIES COMPILE_FLAGS
85 "${UNITTEST_CXX_FLAGS}")
87 add_executable(unittest_alloc_aging EXCLUDE_FROM_ALL
88 Allocator_aging_fragmentation.cc)
89 target_link_libraries(unittest_alloc_aging os global GTest::Main)
92 add_executable(unittest_bluefs
95 add_ceph_unittest(unittest_bluefs)
96 target_link_libraries(unittest_bluefs os global)
98 # unittest_bluestore_types
99 add_executable(unittest_bluestore_types
100 test_bluestore_types.cc
102 add_ceph_unittest(unittest_bluestore_types)
103 target_link_libraries(unittest_bluestore_types os global)
106 add_executable(unittest_bdev
109 add_ceph_unittest(unittest_bdev)
110 target_link_libraries(unittest_bdev os global)
113 add_executable(unittest_deferred
116 add_ceph_unittest(unittest_deferred)
117 target_link_libraries(unittest_deferred os global)
119 endif(WITH_BLUESTORE)
121 # unittest_transaction
122 add_executable(unittest_transaction
124 add_ceph_unittest(unittest_transaction)
125 target_link_libraries(unittest_transaction os ceph-common)
127 # unittest_memstore_clone
128 add_executable(unittest_memstore_clone
129 test_memstore_clone.cc
130 $<TARGET_OBJECTS:store_test_fixture>)
131 add_ceph_unittest(unittest_memstore_clone)
132 target_link_libraries(unittest_memstore_clone os global)
135 add_executable(ceph_test_alloc_replay
136 allocator_replay_test.cc)
137 target_link_libraries(ceph_test_alloc_replay os global ${UNITTEST_LIBS})
138 install(TARGETS ceph_test_alloc_replay