]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # test_rados |
2 | add_executable(ceph_test_rados | |
3 | TestRados.cc | |
4 | TestOpStat.cc | |
5 | Object.cc | |
6 | RadosModel.cc | |
7 | ) | |
8 | target_link_libraries(ceph_test_rados | |
9 | librados | |
10 | global | |
11 | ${BLKID_LIBRARIES} | |
12 | ${CMAKE_DL_LIBS} | |
13 | ${EXTRALIBS} | |
14 | ${CMAKE_DL_LIBS} | |
15 | ) | |
16 | install(TARGETS | |
17 | ceph_test_rados | |
18 | DESTINATION ${CMAKE_INSTALL_BINDIR}) | |
19 | ||
7c673cae FG |
20 | # unittest_osdmap |
21 | add_executable(unittest_osdmap | |
22 | TestOSDMap.cc | |
23 | ) | |
24 | add_ceph_unittest(unittest_osdmap ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_osdmap) | |
25 | target_link_libraries(unittest_osdmap global ${BLKID_LIBRARIES}) | |
26 | ||
27 | # unittest_osd_types | |
28 | add_executable(unittest_osd_types | |
29 | types.cc | |
30 | ) | |
31 | add_ceph_unittest(unittest_osd_types ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_osd_types) | |
32 | target_link_libraries(unittest_osd_types global) | |
33 | ||
34 | # unittest_ecbackend | |
35 | add_executable(unittest_ecbackend | |
36 | TestECBackend.cc | |
37 | ) | |
38 | add_ceph_unittest(unittest_ecbackend ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ecbackend) | |
39 | target_link_libraries(unittest_ecbackend osd global) | |
40 | ||
41 | # unittest_osdscrub | |
42 | add_executable(unittest_osdscrub | |
43 | TestOSDScrub.cc | |
44 | $<TARGET_OBJECTS:unit-main> | |
45 | ) | |
46 | add_ceph_unittest(unittest_osdscrub ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_osdscrub) | |
47 | target_link_libraries(unittest_osdscrub osd os global ${CMAKE_DL_LIBS} mon ${BLKID_LIBRARIES}) | |
48 | ||
49 | # unittest_pglog | |
50 | add_executable(unittest_pglog | |
51 | TestPGLog.cc | |
52 | $<TARGET_OBJECTS:unit-main> | |
c07f9fc5 | 53 | $<TARGET_OBJECTS:store_test_fixture> |
7c673cae FG |
54 | ) |
55 | add_ceph_unittest(unittest_pglog ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_pglog) | |
c07f9fc5 | 56 | target_link_libraries(unittest_pglog osd os global ${CMAKE_DL_LIBS} ${BLKID_LIBRARIES}) |
7c673cae FG |
57 | |
58 | # unittest_hitset | |
59 | add_executable(unittest_hitset | |
60 | hitset.cc | |
61 | ) | |
62 | add_ceph_unittest(unittest_hitset ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_hitset) | |
63 | target_link_libraries(unittest_hitset osd global ${BLKID_LIBRARIES}) | |
64 | ||
65 | # unittest_osd_osdcap | |
66 | add_executable(unittest_osd_osdcap | |
67 | osdcap.cc | |
68 | ) | |
69 | if(HAS_VTA) | |
70 | set_source_files_properties(osdcap.cc PROPERTIES | |
71 | COMPILE_FLAGS -fno-var-tracking-assignments) | |
72 | endif() | |
73 | add_ceph_unittest(unittest_osd_osdcap ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_osd_osdcap) | |
74 | target_link_libraries(unittest_osd_osdcap osd global ${BLKID_LIBRARIES}) | |
75 | ||
76 | # unittest ExtentCache | |
77 | add_executable(unittest_extent_cache | |
78 | test_extent_cache.cc | |
79 | ) | |
80 | add_ceph_unittest(unittest_extent_cache ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_extent_cache) | |
81 | target_link_libraries(unittest_extent_cache osd global ${BLKID_LIBRARIES}) | |
82 | ||
83 | # unittest PGTransaction | |
84 | add_executable(unittest_pg_transaction | |
85 | test_pg_transaction.cc | |
86 | ) | |
87 | add_ceph_unittest(unittest_pg_transaction ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_pg_transaction) | |
88 | target_link_libraries(unittest_pg_transaction osd global ${BLKID_LIBRARIES}) | |
31f18b77 FG |
89 | |
90 | # unittest ECTransaction | |
91 | add_executable(unittest_ec_transaction | |
92 | test_ec_transaction.cc | |
93 | ) | |
94 | add_ceph_unittest(unittest_ec_transaction ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ec_transaction) | |
95 | target_link_libraries(unittest_ec_transaction osd global ${BLKID_LIBRARIES}) | |
224ce89b WB |
96 | |
97 | # unittest_mclock_op_class_queue | |
98 | add_executable(unittest_mclock_op_class_queue | |
99 | TestMClockOpClassQueue.cc | |
100 | ) | |
101 | add_ceph_unittest(unittest_mclock_op_class_queue | |
102 | ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mclock_op_class_queue | |
103 | ) | |
104 | target_link_libraries(unittest_mclock_op_class_queue | |
105 | global osd dmclock | |
106 | ) | |
107 | ||
108 | # unittest_mclock_client_queue | |
109 | add_executable(unittest_mclock_client_queue | |
110 | TestMClockClientQueue.cc | |
111 | ) | |
112 | add_ceph_unittest(unittest_mclock_client_queue | |
113 | ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mclock_client_queue | |
114 | ) | |
115 | target_link_libraries(unittest_mclock_client_queue | |
116 | global osd dmclock | |
117 | ) |