]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | set(rbd_mirror_test_srcs |
2 | test_ClusterWatcher.cc | |
3 | test_PoolWatcher.cc | |
4 | test_ImageReplayer.cc | |
5 | test_ImageDeleter.cc | |
6 | test_ImageSync.cc | |
7 | test_InstanceWatcher.cc | |
8 | test_Instances.cc | |
9 | test_LeaderWatcher.cc | |
10 | test_fixture.cc | |
11 | ) | |
12 | add_library(rbd_mirror_test STATIC ${rbd_mirror_test_srcs}) | |
13 | set_target_properties(rbd_mirror_test PROPERTIES COMPILE_FLAGS | |
14 | ${UNITTEST_CXX_FLAGS}) | |
15 | ||
16 | add_executable(unittest_rbd_mirror | |
17 | test_main.cc | |
18 | test_mock_fixture.cc | |
19 | test_mock_ImageReplayer.cc | |
20 | test_mock_ImageSync.cc | |
21 | test_mock_ImageSyncThrottler.cc | |
22 | test_mock_InstanceReplayer.cc | |
23 | test_mock_InstanceWatcher.cc | |
24 | test_mock_LeaderWatcher.cc | |
25 | test_mock_PoolWatcher.cc | |
26 | image_replayer/test_mock_BootstrapRequest.cc | |
27 | image_replayer/test_mock_CreateImageRequest.cc | |
28 | image_replayer/test_mock_EventPreprocessor.cc | |
29 | image_replayer/test_mock_PrepareLocalImageRequest.cc | |
30 | image_sync/test_mock_ImageCopyRequest.cc | |
31 | image_sync/test_mock_ObjectCopyRequest.cc | |
32 | image_sync/test_mock_SnapshotCopyRequest.cc | |
33 | image_sync/test_mock_SnapshotCreateRequest.cc | |
34 | image_sync/test_mock_SyncPointCreateRequest.cc | |
35 | image_sync/test_mock_SyncPointPruneRequest.cc | |
36 | pool_watcher/test_mock_RefreshImagesRequest.cc | |
37 | ) | |
38 | add_ceph_unittest(unittest_rbd_mirror ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_rbd_mirror) | |
39 | set_target_properties(unittest_rbd_mirror PROPERTIES COMPILE_FLAGS | |
40 | ${UNITTEST_CXX_FLAGS}) | |
41 | add_dependencies(unittest_rbd_mirror | |
42 | cls_journal | |
43 | cls_lock | |
44 | cls_rbd) | |
45 | target_link_libraries(unittest_rbd_mirror | |
46 | rbd_mirror_test | |
47 | rados_test_stub | |
48 | rbd_mirror_internal | |
49 | rbd_mirror_types | |
50 | rbd_api | |
51 | rbd_internal | |
52 | rbd_test_mock | |
53 | journal | |
54 | journal_test_mock | |
55 | cls_rbd_client | |
56 | cls_lock_client | |
57 | cls_journal_client | |
58 | rbd_types | |
59 | librados | |
60 | osdc | |
61 | global | |
62 | radostest | |
63 | ) | |
64 | ||
65 | add_executable(ceph_test_rbd_mirror | |
66 | test_main.cc | |
67 | ) | |
68 | set_target_properties(ceph_test_rbd_mirror PROPERTIES COMPILE_FLAGS | |
69 | ${UNITTEST_CXX_FLAGS}) | |
70 | target_link_libraries(ceph_test_rbd_mirror | |
71 | rbd_mirror_test | |
72 | rbd_mirror_internal | |
73 | rbd_mirror_types | |
74 | rbd_api | |
75 | rbd_internal | |
76 | journal | |
77 | cls_rbd_client | |
78 | cls_journal_client | |
79 | rbd_types | |
80 | rados_a | |
81 | radostest | |
82 | ${UNITTEST_LIBS} | |
83 | ) | |
84 | ||
85 | add_executable(ceph_test_rbd_mirror_random_write | |
86 | random_write.cc) | |
87 | set_target_properties(ceph_test_rbd_mirror_random_write PROPERTIES COMPILE_FLAGS | |
88 | ${UNITTEST_CXX_FLAGS}) | |
89 | target_link_libraries(ceph_test_rbd_mirror_random_write | |
90 | librbd librados global) | |
91 | ||
92 | install(TARGETS | |
93 | ceph_test_rbd_mirror | |
94 | ceph_test_rbd_mirror_random_write | |
95 | DESTINATION ${CMAKE_INSTALL_BINDIR}) |