blob: f2d1471e22e3f4f296b1e911ae4583ecea5f4d84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
# test_rados
add_executable(ceph_test_rados
TestRados.cc
TestOpStat.cc
Object.cc
RadosModel.cc
)
target_link_libraries(ceph_test_rados
librados
global
${BLKID_LIBRARIES}
${CMAKE_DL_LIBS}
${EXTRALIBS}
${CMAKE_DL_LIBS}
cls_cas_internal
cls_cas_client
)
install(TARGETS
ceph_test_rados
DESTINATION ${CMAKE_INSTALL_BINDIR})
add_executable(ceph_test_rados_io_sequence
${CMAKE_CURRENT_SOURCE_DIR}/ceph_test_rados_io_sequence.cc)
target_link_libraries(ceph_test_rados_io_sequence
librados global object_io_exerciser)
install(TARGETS
ceph_test_rados_io_sequence
DESTINATION ${CMAKE_INSTALL_BINDIR})
# test_stale_read
add_executable(ceph_test_osd_stale_read
ceph_test_osd_stale_read.cc
)
target_link_libraries(ceph_test_osd_stale_read
librados
global
${CMAKE_DL_LIBS}
${EXTRALIBS}
${CMAKE_DL_LIBS}
${UNITTEST_LIBS}
)
install(TARGETS
ceph_test_osd_stale_read
DESTINATION ${CMAKE_INSTALL_BINDIR})
# scripts
add_ceph_test(safe-to-destroy.sh ${CMAKE_CURRENT_SOURCE_DIR}/safe-to-destroy.sh)
# unittest_osdmap
add_executable(unittest_osdmap
TestOSDMap.cc
)
add_ceph_unittest(unittest_osdmap)
target_link_libraries(unittest_osdmap global ${BLKID_LIBRARIES})
# unittest_osd_types
add_executable(unittest_osd_types
types.cc
)
add_ceph_unittest(unittest_osd_types)
target_link_libraries(unittest_osd_types global)
# unittest_ecbackend
add_executable(unittest_ecbackend
TestECBackend.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_ecbackend)
target_link_libraries(unittest_ecbackend osd global)
# unittest_osdscrub
add_executable(unittest_osdscrub
TestOSDScrub.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_osdscrub)
target_link_libraries(unittest_osdscrub osd os global ${CMAKE_DL_LIBS} mon ${BLKID_LIBRARIES})
# unittest_scrubber_be
add_executable(unittest_scrubber_be
test_scrubber_be.cc
scrubber_generators.cc
scrubber_test_datasets.cc
)
add_ceph_unittest(unittest_scrubber_be)
target_link_libraries(unittest_scrubber_be osd os global ${CMAKE_DL_LIBS} mon ${BLKID_LIBRARIES})
# unittest_pglog
add_executable(unittest_pglog
TestPGLog.cc
$<TARGET_OBJECTS:unit-main>
$<TARGET_OBJECTS:store_test_fixture>
)
add_ceph_unittest(unittest_pglog)
target_link_libraries(unittest_pglog osd os global ${CMAKE_DL_LIBS} ${BLKID_LIBRARIES})
# unittest_hitset
add_executable(unittest_hitset
hitset.cc
)
add_ceph_unittest(unittest_hitset)
target_link_libraries(unittest_hitset osd global ${BLKID_LIBRARIES})
# unittest_osd_osdcap
add_executable(unittest_osd_osdcap
osdcap.cc
)
if(HAS_VTA)
set_source_files_properties(osdcap.cc PROPERTIES
COMPILE_FLAGS -fno-var-tracking-assignments)
endif()
add_ceph_unittest(unittest_osd_osdcap)
target_link_libraries(unittest_osd_osdcap osd global ${BLKID_LIBRARIES})
# unittest ExtentCache
add_executable(unittest_extent_cache
test_extent_cache.cc
)
add_ceph_unittest(unittest_extent_cache)
target_link_libraries(unittest_extent_cache osd global ${BLKID_LIBRARIES})
# unittest PGTransaction
add_executable(unittest_pg_transaction
test_pg_transaction.cc
)
add_ceph_unittest(unittest_pg_transaction)
target_link_libraries(unittest_pg_transaction osd global ${BLKID_LIBRARIES})
# unittest ECTransaction
add_executable(unittest_ec_transaction
test_ec_transaction.cc
)
add_ceph_unittest(unittest_ec_transaction)
target_link_libraries(unittest_ec_transaction osd global ${BLKID_LIBRARIES})
# unittest_mclock_scheduler
add_executable(unittest_mclock_scheduler
TestMClockScheduler.cc
)
add_ceph_unittest(unittest_mclock_scheduler)
target_link_libraries(unittest_mclock_scheduler
global osd dmclock os
)
|