diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
commit | 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch) | |
tree | e5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/test/rbd_mirror/CMakeLists.txt | |
parent | Initial commit. (diff) | |
download | ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.tar.xz ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.zip |
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/rbd_mirror/CMakeLists.txt')
-rw-r--r-- | src/test/rbd_mirror/CMakeLists.txt | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/src/test/rbd_mirror/CMakeLists.txt b/src/test/rbd_mirror/CMakeLists.txt new file mode 100644 index 00000000..1d8a9757 --- /dev/null +++ b/src/test/rbd_mirror/CMakeLists.txt @@ -0,0 +1,97 @@ +set(rbd_mirror_test_srcs + test_ClusterWatcher.cc + test_PoolWatcher.cc + test_ImageDeleter.cc + test_ImageReplayer.cc + test_ImageSync.cc + test_InstanceWatcher.cc + test_Instances.cc + test_LeaderWatcher.cc + test_fixture.cc + image_map/test_Policy.cc + ) +add_library(rbd_mirror_test STATIC ${rbd_mirror_test_srcs}) +target_link_libraries(rbd_mirror_test + rbd_test_support + GTest::GTest) + +add_executable(unittest_rbd_mirror + test_main.cc + test_mock_fixture.cc + test_mock_ImageMap.cc + test_mock_ImageReplayer.cc + test_mock_ImageSync.cc + test_mock_ImageSyncThrottler.cc + test_mock_InstanceReplayer.cc + test_mock_InstanceWatcher.cc + test_mock_LeaderWatcher.cc + test_mock_PoolReplayer.cc + test_mock_PoolWatcher.cc + image_deleter/test_mock_SnapshotPurgeRequest.cc + image_deleter/test_mock_TrashMoveRequest.cc + image_deleter/test_mock_TrashRemoveRequest.cc + image_deleter/test_mock_TrashWatcher.cc + image_replayer/test_mock_BootstrapRequest.cc + image_replayer/test_mock_CreateImageRequest.cc + image_replayer/test_mock_EventPreprocessor.cc + image_replayer/test_mock_GetMirrorImageIdRequest.cc + image_replayer/test_mock_PrepareLocalImageRequest.cc + image_replayer/test_mock_PrepareRemoteImageRequest.cc + image_sync/test_mock_SyncPointCreateRequest.cc + image_sync/test_mock_SyncPointPruneRequest.cc + pool_watcher/test_mock_RefreshImagesRequest.cc + ) +add_ceph_unittest(unittest_rbd_mirror) + +add_dependencies(unittest_rbd_mirror + cls_journal + cls_lock + cls_rbd) +target_link_libraries(unittest_rbd_mirror + rbd_mirror_test + rados_test_stub + rbd_mirror_internal + rbd_mirror_types + rbd_api + rbd_internal + rbd_test_mock + journal + journal_test_mock + cls_rbd_client + cls_lock_client + cls_journal_client + rbd_types + librados + osdc + global + radostest-cxx + ) + +add_executable(ceph_test_rbd_mirror + test_main.cc + ) + +target_link_libraries(ceph_test_rbd_mirror + rbd_mirror_test + rbd_mirror_internal + rbd_mirror_types + rbd_api + rbd_internal + journal + cls_rbd_client + cls_journal_client + rbd_types + librados + radostest-cxx + ${UNITTEST_LIBS} + ) + +add_executable(ceph_test_rbd_mirror_random_write + random_write.cc) +target_link_libraries(ceph_test_rbd_mirror_random_write + librbd librados global) + +install(TARGETS + ceph_test_rbd_mirror + ceph_test_rbd_mirror_random_write + DESTINATION ${CMAKE_INSTALL_BINDIR}) |