]>
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 | ||
9f95a23c TL |
20 | # test_stale_read |
21 | add_executable(ceph_test_osd_stale_read | |
22 | ceph_test_osd_stale_read.cc | |
23 | ) | |
24 | target_link_libraries(ceph_test_osd_stale_read | |
25 | librados | |
26 | global | |
27 | ${CMAKE_DL_LIBS} | |
28 | ${EXTRALIBS} | |
29 | ${CMAKE_DL_LIBS} | |
30 | ${UNITTEST_LIBS} | |
31 | ) | |
32 | install(TARGETS | |
33 | ceph_test_osd_stale_read | |
34 | DESTINATION ${CMAKE_INSTALL_BINDIR}) | |
35 | ||
11fdf7f2 TL |
36 | # scripts |
37 | add_ceph_test(safe-to-destroy.sh ${CMAKE_CURRENT_SOURCE_DIR}/safe-to-destroy.sh) | |
38 | ||
7c673cae FG |
39 | # unittest_osdmap |
40 | add_executable(unittest_osdmap | |
41 | TestOSDMap.cc | |
42 | ) | |
11fdf7f2 | 43 | add_ceph_unittest(unittest_osdmap) |
7c673cae FG |
44 | target_link_libraries(unittest_osdmap global ${BLKID_LIBRARIES}) |
45 | ||
46 | # unittest_osd_types | |
47 | add_executable(unittest_osd_types | |
48 | types.cc | |
49 | ) | |
11fdf7f2 | 50 | add_ceph_unittest(unittest_osd_types) |
7c673cae FG |
51 | target_link_libraries(unittest_osd_types global) |
52 | ||
53 | # unittest_ecbackend | |
54 | add_executable(unittest_ecbackend | |
55 | TestECBackend.cc | |
56 | ) | |
11fdf7f2 | 57 | add_ceph_unittest(unittest_ecbackend) |
7c673cae FG |
58 | target_link_libraries(unittest_ecbackend osd global) |
59 | ||
60 | # unittest_osdscrub | |
61 | add_executable(unittest_osdscrub | |
62 | TestOSDScrub.cc | |
63 | $<TARGET_OBJECTS:unit-main> | |
64 | ) | |
11fdf7f2 | 65 | add_ceph_unittest(unittest_osdscrub) |
7c673cae FG |
66 | target_link_libraries(unittest_osdscrub osd os global ${CMAKE_DL_LIBS} mon ${BLKID_LIBRARIES}) |
67 | ||
68 | # unittest_pglog | |
69 | add_executable(unittest_pglog | |
70 | TestPGLog.cc | |
71 | $<TARGET_OBJECTS:unit-main> | |
c07f9fc5 | 72 | $<TARGET_OBJECTS:store_test_fixture> |
7c673cae | 73 | ) |
11fdf7f2 | 74 | add_ceph_unittest(unittest_pglog) |
c07f9fc5 | 75 | target_link_libraries(unittest_pglog osd os global ${CMAKE_DL_LIBS} ${BLKID_LIBRARIES}) |
7c673cae FG |
76 | |
77 | # unittest_hitset | |
78 | add_executable(unittest_hitset | |
79 | hitset.cc | |
80 | ) | |
11fdf7f2 | 81 | add_ceph_unittest(unittest_hitset) |
7c673cae FG |
82 | target_link_libraries(unittest_hitset osd global ${BLKID_LIBRARIES}) |
83 | ||
84 | # unittest_osd_osdcap | |
85 | add_executable(unittest_osd_osdcap | |
86 | osdcap.cc | |
87 | ) | |
88 | if(HAS_VTA) | |
89 | set_source_files_properties(osdcap.cc PROPERTIES | |
90 | COMPILE_FLAGS -fno-var-tracking-assignments) | |
91 | endif() | |
11fdf7f2 | 92 | add_ceph_unittest(unittest_osd_osdcap) |
7c673cae FG |
93 | target_link_libraries(unittest_osd_osdcap osd global ${BLKID_LIBRARIES}) |
94 | ||
95 | # unittest ExtentCache | |
96 | add_executable(unittest_extent_cache | |
97 | test_extent_cache.cc | |
98 | ) | |
11fdf7f2 | 99 | add_ceph_unittest(unittest_extent_cache) |
7c673cae FG |
100 | target_link_libraries(unittest_extent_cache osd global ${BLKID_LIBRARIES}) |
101 | ||
102 | # unittest PGTransaction | |
103 | add_executable(unittest_pg_transaction | |
104 | test_pg_transaction.cc | |
105 | ) | |
11fdf7f2 | 106 | add_ceph_unittest(unittest_pg_transaction) |
7c673cae | 107 | target_link_libraries(unittest_pg_transaction osd global ${BLKID_LIBRARIES}) |
31f18b77 FG |
108 | |
109 | # unittest ECTransaction | |
110 | add_executable(unittest_ec_transaction | |
111 | test_ec_transaction.cc | |
112 | ) | |
11fdf7f2 | 113 | add_ceph_unittest(unittest_ec_transaction) |
31f18b77 | 114 | target_link_libraries(unittest_ec_transaction osd global ${BLKID_LIBRARIES}) |
224ce89b | 115 | |
9f95a23c TL |
116 | # unittest_mclock_scheduler |
117 | add_executable(unittest_mclock_scheduler | |
118 | TestMClockScheduler.cc | |
224ce89b | 119 | ) |
9f95a23c TL |
120 | add_ceph_unittest(unittest_mclock_scheduler) |
121 | target_link_libraries(unittest_mclock_scheduler | |
11fdf7f2 | 122 | global osd dmclock os |
224ce89b | 123 | ) |