blob: ab7328eae0ebb2c4a7a0c50f022eae1ca69ba6a9 (
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
|
add_executable(ceph_erasure_code_benchmark
${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc
ceph_erasure_code_benchmark.cc)
target_link_libraries(ceph_erasure_code_benchmark ceph-common Boost::program_options global ${CMAKE_DL_LIBS})
install(TARGETS ceph_erasure_code_benchmark
DESTINATION bin)
add_executable(ceph_erasure_code_non_regression ceph_erasure_code_non_regression.cc)
target_link_libraries(ceph_erasure_code_non_regression ceph-common Boost::program_options global ${CMAKE_DL_LIBS})
add_library(ec_example SHARED
ErasureCodePluginExample.cc
$<TARGET_OBJECTS:erasure_code_objs>)
target_link_libraries(ec_example pthread ${EXTRALIBS})
add_library(ec_missing_entry_point SHARED ErasureCodePluginMissingEntryPoint.cc)
target_link_libraries(ec_missing_entry_point pthread ${EXTRALIBS})
add_library(ec_missing_version SHARED ErasureCodePluginMissingVersion.cc)
target_link_libraries(ec_missing_version pthread ${EXTRALIBS})
add_library(ec_hangs SHARED ErasureCodePluginHangs.cc)
target_link_libraries(ec_hangs pthread ${EXTRALIBS})
add_library(ec_fail_to_initialize SHARED ErasureCodePluginFailToInitialize.cc)
target_link_libraries(ec_fail_to_initialize pthread ${EXTRALIBS})
add_library(ec_fail_to_register SHARED ErasureCodePluginFailToRegister.cc)
target_link_libraries(ec_fail_to_register pthread ${EXTRALIBS})
# unittest_erasure_code_plugin
add_executable(unittest_erasure_code_plugin
${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc
TestErasureCodePlugin.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_erasure_code_plugin)
target_link_libraries(unittest_erasure_code_plugin
global
${CMAKE_DL_LIBS}
ec_example
ceph-common
)
add_dependencies(unittest_erasure_code_plugin
ec_example
ec_missing_entry_point
ec_missing_version
ec_hangs
ec_fail_to_initialize
ec_fail_to_register)
# unittest_erasure_code
add_executable(unittest_erasure_code
${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc
TestErasureCode.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_erasure_code)
target_link_libraries(unittest_erasure_code
global
ceph-common
)
# unittest_erasure_code_plugin_jerasure
add_executable(unittest_erasure_code_plugin_jerasure
TestErasureCodePluginJerasure.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_erasure_code_plugin_jerasure)
target_link_libraries(unittest_erasure_code_plugin_jerasure
global
ceph-common)
add_dependencies(unittest_erasure_code_plugin_jerasure
ec_jerasure)
if(WITH_EC_ISA_PLUGIN)
#unittest_erasure_code_isa
add_executable(unittest_erasure_code_isa
${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc
TestErasureCodeIsa.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_erasure_code_isa)
target_link_libraries(unittest_erasure_code_isa
global
ceph-common
ec_isa
erasure_code
)
#unittest_erasure_code_plugin_isa
add_executable(unittest_erasure_code_plugin_isa
${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc
TestErasureCodePluginIsa.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_erasure_code_plugin_isa)
target_link_libraries(unittest_erasure_code_plugin_isa
global
ceph-common
${CMAKE_DL_LIBS}
erasure_code
)
add_dependencies(unittest_erasure_code_plugin_isa
ec_isa)
endif(WITH_EC_ISA_PLUGIN)
# unittest_erasure_code_lrc
add_executable(unittest_erasure_code_lrc
TestErasureCodeLrc.cc
$<TARGET_OBJECTS:unit-main>)
add_ceph_unittest(unittest_erasure_code_lrc)
target_link_libraries(unittest_erasure_code_lrc
global
${CMAKE_DL_LIBS}
ec_lrc
ceph-common
)
# unittest_erasure_code_plugin_lrc
add_executable(unittest_erasure_code_plugin_lrc
TestErasureCodePluginLrc.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_erasure_code_plugin_lrc)
add_dependencies(unittest_erasure_code_plugin_lrc
ec_lrc
ec_jerasure)
target_link_libraries(unittest_erasure_code_plugin_lrc
global
${CMAKE_DL_LIBS}
ceph-common)
# unittest_erasure_code_plugin_shec
add_executable(unittest_erasure_code_plugin_shec
TestErasureCodePluginShec.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_erasure_code_plugin_shec)
target_link_libraries(unittest_erasure_code_plugin_shec
global
${CMAKE_DL_LIBS}
ceph-common)
add_dependencies(unittest_erasure_code_plugin_shec
ec_shec)
# unittest_erasure_code_example
add_executable(unittest_erasure_code_example
${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc
TestErasureCodeExample.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_erasure_code_example)
target_link_libraries(unittest_erasure_code_example
global
${CMAKE_DL_LIBS}
ceph-common
erasure_code
${UNITTEST_LIBS}
)
include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/jerasure/include)
include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/src/erasure-code//jerasure/gf-complete/include)
# unittest_erasure_code_jerasure
add_executable(unittest_erasure_code_jerasure
TestErasureCodeJerasure.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_erasure_code_jerasure)
target_link_libraries(unittest_erasure_code_jerasure
global
ceph-common
ec_jerasure
)
include_directories(${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure)
include_directories(${CMAKE_SOURCE_DIR}/src/erasure-code/shec)
# unittest_erasure_code_shec
add_executable(unittest_erasure_code_shec
TestErasureCodeShec.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_erasure_code_shec)
target_link_libraries(unittest_erasure_code_shec
global
${CMAKE_DL_LIBS}
ceph-common
ec_shec
)
# unittest_erasure_code_shec_all
add_executable(unittest_erasure_code_shec_all
TestErasureCodeShec_all.cc
)
add_ceph_unittest(unittest_erasure_code_shec_all PARALLEL)
target_link_libraries(unittest_erasure_code_shec_all
global
${CMAKE_DL_LIBS}
ceph-common
ec_shec
)
# unittest_erasure_code_shec_thread
add_executable(unittest_erasure_code_shec_thread
TestErasureCodeShec_thread.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_erasure_code_shec_thread)
target_link_libraries(unittest_erasure_code_shec_thread
global
${CMAKE_DL_LIBS}
ceph-common
ec_shec
)
# unittest_erasure_code_shec_arguments
add_executable(unittest_erasure_code_shec_arguments
TestErasureCodeShec_arguments.cc
)
add_ceph_unittest(unittest_erasure_code_shec_arguments)
target_link_libraries(unittest_erasure_code_shec_arguments
global
${CMAKE_DL_LIBS}
ceph-common
ec_shec
)
#unitest_erasure_code_clay
add_executable(unittest_erasure_code_clay
TestErasureCodeClay.cc
$<TARGET_OBJECTS:unit-main>)
add_ceph_unittest(unittest_erasure_code_clay)
target_link_libraries(unittest_erasure_code_clay
global
${CMAKE_DL_LIBS}
${UNITTEST_LIBS}
ceph-common
ec_clay
)
# unittest_erasure_code_plugin_clay
add_executable(unittest_erasure_code_plugin_clay
TestErasureCodePluginClay.cc
$<TARGET_OBJECTS:unit-main>)
add_ceph_unittest(unittest_erasure_code_plugin_clay)
add_dependencies(unittest_erasure_code_plugin_clay
ec_clay)
target_link_libraries(unittest_erasure_code_plugin_clay
GTest::Main
global
${CMAKE_DL_LIBS}
${UNITTEST_LIBS}
ceph-common)
|