]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/objectstore/CMakeLists.txt
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / test / objectstore / CMakeLists.txt
CommitLineData
7c673cae 1add_executable(ceph_perf_objectstore
11fdf7f2 2 ObjectStoreTransactionBenchmark.cc)
7c673cae
FG
3target_link_libraries(ceph_perf_objectstore os osdc global ${UNITTEST_LIBS})
4install(TARGETS ceph_perf_objectstore
5 DESTINATION bin)
6
7c673cae 7add_library(store_test_fixture OBJECT store_test_fixture.cc)
11fdf7f2
TL
8target_include_directories(store_test_fixture PRIVATE
9 $<TARGET_PROPERTY:GTest::GTest,INTERFACE_INCLUDE_DIRECTORIES>)
7c673cae
FG
10
11add_executable(ceph_test_objectstore
12 store_test.cc
13 $<TARGET_OBJECTS:store_test_fixture>)
7c673cae
FG
14target_link_libraries(ceph_test_objectstore
15 os
16 ceph-common
17 ${UNITTEST_LIBS}
18 global
19 ${EXTRALIBS}
20 ${BLKID_LIBRARIES}
21 ${CMAKE_DL_LIBS}
22 )
23install(TARGETS ceph_test_objectstore
24 DESTINATION ${CMAKE_INSTALL_BINDIR})
25
7c673cae 26add_executable(ceph_test_keyvaluedb
11fdf7f2 27 test_kv.cc)
7c673cae
FG
28target_link_libraries(ceph_test_keyvaluedb
29 os
30 ceph-common
31 ${UNITTEST_LIBS}
32 global
33 ${EXTRALIBS}
34 ${BLKID_LIBRARIES}
35 ${CMAKE_DL_LIBS}
36 )
37install(TARGETS ceph_test_keyvaluedb
38 DESTINATION ${CMAKE_INSTALL_BINDIR})
39
7c673cae
FG
40# ceph_test_filestore_idempotent
41add_executable(ceph_test_filestore_idempotent
42 test_idempotent.cc
43 FileStoreTracker.cc
44 ${CMAKE_SOURCE_DIR}/src/test/common/ObjectContents.cc
45 )
46target_link_libraries(ceph_test_filestore_idempotent
47 os
48 global
49 ${EXTRALIBS}
50 ${BLKID_LIBRARIES}
51 ${CMAKE_DL_LIBS}
52 )
53
54# ceph_test_filestore_idempotent_sequence
55add_executable(ceph_test_filestore_idempotent_sequence
56 test_idempotent_sequence.cc
57 DeterministicOpSequence.cc
58 TestObjectStoreState.cc
59 FileStoreDiff.cc
60 )
61target_link_libraries(ceph_test_filestore_idempotent_sequence
62 os
63 global
64 ${EXTRALIBS}
65 ${BLKID_LIBRARIES}
66 ${CMAKE_DL_LIBS}
67 )
68install(TARGETS ceph_test_filestore_idempotent_sequence
69 DESTINATION ${CMAKE_INSTALL_BINDIR})
70
71# unittest_chain_xattr
72add_executable(unittest_chain_xattr
73 chain_xattr.cc
74 )
11fdf7f2 75add_ceph_unittest(unittest_chain_xattr)
7c673cae
FG
76target_link_libraries(unittest_chain_xattr os global)
77
78# unittest_rocksdb_option
79add_executable(unittest_rocksdb_option
80 TestRocksdbOptionParse.cc
81 $<TARGET_OBJECTS:unit-main>
82 )
11fdf7f2 83add_ceph_unittest(unittest_rocksdb_option)
7c673cae
FG
84target_link_libraries(unittest_rocksdb_option global os ${BLKID_LIBRARIES})
85
11fdf7f2 86if(WITH_BLUESTORE)
7c673cae
FG
87
88 add_executable(unittest_alloc
89 Allocator_test.cc
90 $<TARGET_OBJECTS:unit-main>
91 )
11fdf7f2 92 add_ceph_unittest(unittest_alloc)
7c673cae
FG
93 target_link_libraries(unittest_alloc os global)
94
a8e16298
TL
95
96 add_executable(unittest_alloc_bench
97 Allocator_bench.cc
98 $<TARGET_OBJECTS:unit-main>
99 )
11fdf7f2 100 target_link_libraries(unittest_alloc_bench ${UNITTEST_LIBS} os global)
a8e16298
TL
101
102 add_executable(unittest_fastbmap_allocator
103 fastbmap_allocator_test.cc
104 $<TARGET_OBJECTS:unit-main>
105 )
11fdf7f2 106 add_ceph_unittest(unittest_fastbmap_allocator)
a8e16298
TL
107 target_link_libraries(unittest_fastbmap_allocator os global)
108
7c673cae
FG
109 add_executable(unittest_bluefs
110 test_bluefs.cc
111 )
11fdf7f2 112 add_ceph_unittest(unittest_bluefs)
7c673cae
FG
113 target_link_libraries(unittest_bluefs os global)
114
115 # unittest_bluestore_types
116 add_executable(unittest_bluestore_types
117 test_bluestore_types.cc
118 )
11fdf7f2 119 add_ceph_unittest(unittest_bluestore_types)
7c673cae 120 target_link_libraries(unittest_bluestore_types os global)
11fdf7f2 121endif(WITH_BLUESTORE)
7c673cae
FG
122
123# unittest_transaction
124add_executable(unittest_transaction
125 test_transaction.cc)
11fdf7f2 126add_ceph_unittest(unittest_transaction)
7c673cae
FG
127target_link_libraries(unittest_transaction os ceph-common ${XIO_LIBRARY})
128
129# unittest_memstore_clone
130add_executable(unittest_memstore_clone
131 test_memstore_clone.cc
132 $<TARGET_OBJECTS:store_test_fixture>)
11fdf7f2 133add_ceph_unittest(unittest_memstore_clone)
7c673cae 134target_link_libraries(unittest_memstore_clone os global)