]>
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 | |
d2e6a577 | 29 | image_replayer/test_mock_GetMirrorImageIdRequest.cc |
7c673cae | 30 | image_replayer/test_mock_PrepareLocalImageRequest.cc |
d2e6a577 | 31 | image_replayer/test_mock_PrepareRemoteImageRequest.cc |
7c673cae FG |
32 | image_sync/test_mock_ImageCopyRequest.cc |
33 | image_sync/test_mock_ObjectCopyRequest.cc | |
34 | image_sync/test_mock_SnapshotCopyRequest.cc | |
35 | image_sync/test_mock_SnapshotCreateRequest.cc | |
36 | image_sync/test_mock_SyncPointCreateRequest.cc | |
37 | image_sync/test_mock_SyncPointPruneRequest.cc | |
38 | pool_watcher/test_mock_RefreshImagesRequest.cc | |
39 | ) | |
40 | add_ceph_unittest(unittest_rbd_mirror ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_rbd_mirror) | |
41 | set_target_properties(unittest_rbd_mirror PROPERTIES COMPILE_FLAGS | |
42 | ${UNITTEST_CXX_FLAGS}) | |
43 | add_dependencies(unittest_rbd_mirror | |
44 | cls_journal | |
45 | cls_lock | |
46 | cls_rbd) | |
47 | target_link_libraries(unittest_rbd_mirror | |
48 | rbd_mirror_test | |
49 | rados_test_stub | |
50 | rbd_mirror_internal | |
51 | rbd_mirror_types | |
52 | rbd_api | |
53 | rbd_internal | |
54 | rbd_test_mock | |
55 | journal | |
56 | journal_test_mock | |
57 | cls_rbd_client | |
58 | cls_lock_client | |
59 | cls_journal_client | |
60 | rbd_types | |
61 | librados | |
62 | osdc | |
63 | global | |
64 | radostest | |
65 | ) | |
66 | ||
67 | add_executable(ceph_test_rbd_mirror | |
68 | test_main.cc | |
69 | ) | |
70 | set_target_properties(ceph_test_rbd_mirror PROPERTIES COMPILE_FLAGS | |
71 | ${UNITTEST_CXX_FLAGS}) | |
72 | target_link_libraries(ceph_test_rbd_mirror | |
73 | rbd_mirror_test | |
74 | rbd_mirror_internal | |
75 | rbd_mirror_types | |
76 | rbd_api | |
77 | rbd_internal | |
78 | journal | |
79 | cls_rbd_client | |
80 | cls_journal_client | |
81 | rbd_types | |
82 | rados_a | |
83 | radostest | |
84 | ${UNITTEST_LIBS} | |
85 | ) | |
86 | ||
87 | add_executable(ceph_test_rbd_mirror_random_write | |
88 | random_write.cc) | |
89 | set_target_properties(ceph_test_rbd_mirror_random_write PROPERTIES COMPILE_FLAGS | |
90 | ${UNITTEST_CXX_FLAGS}) | |
91 | target_link_libraries(ceph_test_rbd_mirror_random_write | |
92 | librbd librados global) | |
93 | ||
94 | install(TARGETS | |
95 | ceph_test_rbd_mirror | |
96 | ceph_test_rbd_mirror_random_write | |
97 | DESTINATION ${CMAKE_INSTALL_BINDIR}) |