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