]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # radostest |
2 | set(libradostest_srcs | |
3 | test.cc | |
4 | TestCase.cc) | |
5 | add_library(radostest STATIC ${libradostest_srcs}) | |
6 | target_link_libraries(radostest ceph-common json_spirit ${EXTRALIBS}) | |
7 | set_target_properties(radostest PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS}) | |
8 | ||
9 | # ceph_test_rados_api_cmd | |
10 | add_executable(ceph_test_rados_api_cmd | |
11 | cmd.cc | |
12 | ) | |
13 | set_target_properties(ceph_test_rados_api_cmd PROPERTIES COMPILE_FLAGS | |
14 | ${UNITTEST_CXX_FLAGS}) | |
15 | target_link_libraries(ceph_test_rados_api_cmd | |
16 | rados_a global ${UNITTEST_LIBS} radostest) | |
17 | ||
18 | # ceph_test_rados_api_io | |
19 | add_executable(ceph_test_rados_api_io | |
20 | io.cc | |
21 | ) | |
22 | set_target_properties(ceph_test_rados_api_io PROPERTIES COMPILE_FLAGS | |
23 | ${UNITTEST_CXX_FLAGS}) | |
24 | target_link_libraries(ceph_test_rados_api_io | |
25 | librados ${UNITTEST_LIBS} radostest) | |
26 | ||
27 | # ceph_test_rados_api_c_write_operations | |
28 | add_executable(ceph_test_rados_api_c_write_operations | |
29 | c_write_operations.cc | |
30 | ) | |
31 | set_target_properties(ceph_test_rados_api_c_write_operations PROPERTIES | |
32 | COMPILE_FLAGS ${UNITTEST_CXX_FLAGS}) | |
33 | target_link_libraries(ceph_test_rados_api_c_write_operations | |
34 | librados ${UNITTEST_LIBS} radostest) | |
35 | ||
36 | # ceph_test_rados_api_c_read_operations | |
37 | add_executable(ceph_test_rados_api_c_read_operations | |
38 | c_read_operations.cc | |
39 | ) | |
40 | set_target_properties(ceph_test_rados_api_c_read_operations PROPERTIES COMPILE_FLAGS | |
41 | ${UNITTEST_CXX_FLAGS}) | |
42 | target_link_libraries(ceph_test_rados_api_c_read_operations | |
43 | librados ${UNITTEST_LIBS} radostest) | |
44 | ||
45 | # ceph_test_rados_api_aio | |
46 | add_executable(ceph_test_rados_api_aio | |
47 | aio.cc | |
48 | ) | |
49 | set_target_properties(ceph_test_rados_api_aio PROPERTIES COMPILE_FLAGS | |
50 | ${UNITTEST_CXX_FLAGS}) | |
51 | target_link_libraries(ceph_test_rados_api_aio | |
52 | librados ${UNITTEST_LIBS} radostest) | |
53 | ||
54 | # ceph_test_rados_api_list | |
55 | add_executable(ceph_test_rados_api_list | |
56 | list.cc | |
57 | $<TARGET_OBJECTS:unit-main> | |
58 | ) | |
59 | set_target_properties(ceph_test_rados_api_list PROPERTIES COMPILE_FLAGS | |
60 | ${UNITTEST_CXX_FLAGS}) | |
61 | target_link_libraries(ceph_test_rados_api_list | |
62 | rados_a global ${UNITTEST_LIBS} radostest) | |
63 | ||
64 | # ceph_test_rados_api_pool | |
65 | add_executable(ceph_test_rados_api_pool | |
66 | pool.cc | |
67 | ) | |
68 | set_target_properties(ceph_test_rados_api_pool PROPERTIES COMPILE_FLAGS | |
69 | ${UNITTEST_CXX_FLAGS} | |
70 | ) | |
71 | target_link_libraries(ceph_test_rados_api_pool | |
72 | rados_a ${UNITTEST_LIBS} radostest) | |
73 | ||
74 | # ceph_test_rados_api_stat | |
75 | add_executable(ceph_test_rados_api_stat | |
76 | stat.cc | |
77 | ) | |
78 | set_target_properties(ceph_test_rados_api_stat PROPERTIES COMPILE_FLAGS | |
79 | ${UNITTEST_CXX_FLAGS}) | |
80 | target_link_libraries(ceph_test_rados_api_stat | |
81 | rados_a ${UNITTEST_LIBS} radostest) | |
82 | ||
83 | # ceph_test_rados_api_watch_notify | |
84 | add_executable(ceph_test_rados_api_watch_notify | |
85 | watch_notify.cc | |
86 | ) | |
87 | set_target_properties(ceph_test_rados_api_watch_notify PROPERTIES COMPILE_FLAGS | |
88 | ${UNITTEST_CXX_FLAGS}) | |
89 | target_link_libraries(ceph_test_rados_api_watch_notify | |
90 | rados_a ${UNITTEST_LIBS} radostest) | |
91 | ||
92 | # ceph_test_rados_api_cls | |
93 | add_executable(ceph_test_rados_api_cls | |
94 | cls.cc | |
95 | ) | |
96 | set_target_properties(ceph_test_rados_api_cls PROPERTIES COMPILE_FLAGS | |
97 | ${UNITTEST_CXX_FLAGS}) | |
98 | target_link_libraries(ceph_test_rados_api_cls | |
99 | rados_a ${UNITTEST_LIBS} radostest) | |
100 | ||
101 | # ceph_test_rados_api_misc | |
102 | add_executable(ceph_test_rados_api_misc | |
103 | misc.cc | |
104 | $<TARGET_OBJECTS:unit-main> | |
105 | ) | |
106 | set_target_properties(ceph_test_rados_api_misc PROPERTIES COMPILE_FLAGS | |
107 | ${UNITTEST_CXX_FLAGS}) | |
108 | target_link_libraries(ceph_test_rados_api_misc | |
109 | rados_a global ${UNITTEST_LIBS} radostest) | |
110 | ||
111 | # ceph_test_rados_api_lock | |
112 | add_executable(ceph_test_rados_api_lock | |
113 | lock.cc | |
114 | ) | |
115 | set_target_properties(ceph_test_rados_api_lock PROPERTIES COMPILE_FLAGS | |
116 | ${UNITTEST_CXX_FLAGS}) | |
117 | target_link_libraries(ceph_test_rados_api_lock | |
118 | rados_a ${UNITTEST_LIBS} radostest) | |
119 | ||
120 | # ceph_test_rados_api_tier | |
121 | add_executable(ceph_test_rados_api_tier | |
122 | tier.cc | |
123 | $<TARGET_OBJECTS:unit-main> | |
124 | ) | |
125 | set_target_properties(ceph_test_rados_api_tier PROPERTIES COMPILE_FLAGS | |
126 | ${UNITTEST_CXX_FLAGS}) | |
127 | target_link_libraries(ceph_test_rados_api_tier | |
128 | global rados_a ${UNITTEST_LIBS} ${Boost_SYSTEM_LIBRARY} radostest) | |
129 | ||
130 | # ceph_test_rados_api_snapshots | |
131 | add_executable(ceph_test_rados_api_snapshots | |
132 | snapshots.cc | |
133 | ) | |
134 | set_target_properties(ceph_test_rados_api_snapshots PROPERTIES COMPILE_FLAGS | |
135 | ${UNITTEST_CXX_FLAGS}) | |
136 | target_link_libraries(ceph_test_rados_api_snapshots | |
137 | rados_a ${UNITTEST_LIBS} radostest) | |
138 | ||
139 | install(TARGETS | |
140 | ceph_test_rados_api_aio | |
141 | ceph_test_rados_api_c_read_operations | |
142 | ceph_test_rados_api_c_write_operations | |
143 | ceph_test_rados_api_cmd | |
144 | ceph_test_rados_api_io | |
145 | ceph_test_rados_api_list | |
146 | ceph_test_rados_api_lock | |
147 | ceph_test_rados_api_misc | |
148 | ceph_test_rados_api_pool | |
149 | ceph_test_rados_api_snapshots | |
150 | ceph_test_rados_api_stat | |
151 | ceph_test_rados_api_tier | |
152 | ceph_test_rados_api_watch_notify | |
153 | DESTINATION ${CMAKE_INSTALL_BINDIR}) | |
154 | ||
155 | # unittest_librados | |
156 | add_executable(unittest_librados | |
157 | librados.cc | |
158 | ) | |
159 | add_ceph_unittest(unittest_librados ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_librados) | |
160 | target_link_libraries(unittest_librados librados ${BLKID_LIBRARIES}) | |
161 | ||
162 | # unittest_librados_config | |
163 | add_executable(unittest_librados_config | |
164 | librados_config.cc | |
165 | ) | |
166 | add_ceph_unittest(unittest_librados_config ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_librados_config) | |
167 | target_link_libraries(unittest_librados_config | |
168 | librados | |
169 | ${BLKID_LIBRARIES} | |
170 | ) | |
171 |