2 add_executable(ceph_perf_objectstore
3 ObjectStoreTransactionBenchmark.cc
5 set_target_properties(ceph_perf_objectstore PROPERTIES COMPILE_FLAGS
7 target_link_libraries(ceph_perf_objectstore os osdc global ${UNITTEST_LIBS})
8 install(TARGETS ceph_perf_objectstore
11 #ceph_test_objectstore
12 add_library(store_test_fixture OBJECT store_test_fixture.cc)
13 set_target_properties(store_test_fixture PROPERTIES
14 COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
16 add_executable(ceph_test_objectstore
18 $<TARGET_OBJECTS:store_test_fixture>)
19 set_target_properties(ceph_test_objectstore PROPERTIES COMPILE_FLAGS
20 ${UNITTEST_CXX_FLAGS})
21 target_link_libraries(ceph_test_objectstore
30 install(TARGETS ceph_test_objectstore
31 DESTINATION ${CMAKE_INSTALL_BINDIR})
34 add_executable(ceph_test_keyvaluedb
37 set_target_properties(ceph_test_keyvaluedb PROPERTIES COMPILE_FLAGS
38 ${UNITTEST_CXX_FLAGS})
39 target_link_libraries(ceph_test_keyvaluedb
48 install(TARGETS ceph_test_keyvaluedb
49 DESTINATION ${CMAKE_INSTALL_BINDIR})
51 # ceph_test_objectstore_workloadgen
52 add_executable(ceph_test_objectstore_workloadgen
54 TestObjectStoreState.cc
56 target_link_libraries(ceph_test_objectstore_workloadgen
64 # ceph_test_filestore_idempotent
65 add_executable(ceph_test_filestore_idempotent
68 ${CMAKE_SOURCE_DIR}/src/test/common/ObjectContents.cc
70 target_link_libraries(ceph_test_filestore_idempotent
78 # ceph_test_filestore_idempotent_sequence
79 add_executable(ceph_test_filestore_idempotent_sequence
80 test_idempotent_sequence.cc
81 DeterministicOpSequence.cc
82 TestObjectStoreState.cc
85 target_link_libraries(ceph_test_filestore_idempotent_sequence
92 install(TARGETS ceph_test_filestore_idempotent_sequence
93 DESTINATION ${CMAKE_INSTALL_BINDIR})
95 # unittest_chain_xattr
96 add_executable(unittest_chain_xattr
99 add_ceph_unittest(unittest_chain_xattr ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_chain_xattr)
100 target_link_libraries(unittest_chain_xattr os global)
102 # unittest_rocksdb_option
103 add_executable(unittest_rocksdb_option
104 TestRocksdbOptionParse.cc
105 $<TARGET_OBJECTS:unit-main>
107 add_ceph_unittest(unittest_rocksdb_option ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_rocksdb_option)
108 target_link_libraries(unittest_rocksdb_option global os ${BLKID_LIBRARIES})
112 add_executable(unittest_bit_alloc
114 $<TARGET_OBJECTS:unit-main>
116 add_ceph_unittest(unittest_bit_alloc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bit_alloc)
117 target_link_libraries(unittest_bit_alloc os global)
119 add_executable(unittest_alloc
121 $<TARGET_OBJECTS:unit-main>
123 add_ceph_unittest(unittest_alloc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_alloc)
124 target_link_libraries(unittest_alloc os global)
127 add_executable(unittest_bluefs
130 add_ceph_unittest(unittest_bluefs ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bluefs)
131 target_link_libraries(unittest_bluefs os global)
133 # unittest_bluestore_types
134 add_executable(unittest_bluestore_types
135 test_bluestore_types.cc
137 add_ceph_unittest(unittest_bluestore_types ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bluestore_types)
138 target_link_libraries(unittest_bluestore_types os global)
141 # unittest_transaction
142 add_executable(unittest_transaction
144 add_ceph_unittest(unittest_transaction ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_transaction)
145 target_link_libraries(unittest_transaction os ceph-common ${XIO_LIBRARY})
147 # unittest_memstore_clone
148 add_executable(unittest_memstore_clone
149 test_memstore_clone.cc
150 $<TARGET_OBJECTS:store_test_fixture>)
151 add_ceph_unittest(unittest_memstore_clone ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_memstore_clone)
152 target_link_libraries(unittest_memstore_clone os global)