]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd: re-enable internal tests in ceph_test_librbd 16255/head
authorMykola Golub <mgolub@mirantis.com>
Tue, 11 Jul 2017 11:26:17 +0000 (13:26 +0200)
committerMykola Golub <mgolub@mirantis.com>
Tue, 11 Jul 2017 11:26:17 +0000 (13:26 +0200)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/test/librbd/CMakeLists.txt

index 5dd47fcb74eb3020bdde00689e5074e03b813f96..a73f2e634bb0ae92bfefb5b51705f05e03c0b4b7 100644 (file)
@@ -5,6 +5,8 @@ set(librbd_test
   test_ImageWatcher.cc
   test_internal.cc
   test_mirroring.cc
+  test_BlockGuard.cc
+  test_Groups.cc
   test_MirroringWatcher.cc
   test_ObjectMap.cc
   test_Operations.cc
@@ -23,8 +25,6 @@ set_target_properties(rbd_test_mock PROPERTIES COMPILE_FLAGS
 # unittest_librbd
 # doesn't use add_ceph_test because it is called by run-rbd-unit-tests.sh
 set(unittest_librbd_srcs
-  test_BlockGuard.cc
-  test_Groups.cc
   test_main.cc
   test_mock_fixture.cc
   test_mock_ExclusiveLock.cc
@@ -108,6 +108,7 @@ target_link_libraries(ceph_test_librbd
   rados_a
   ${UNITTEST_LIBS}
   radostest)
+target_compile_definitions(ceph_test_librbd PUBLIC "-DTEST_LIBRBD_INTERNALS")
 set_target_properties(ceph_test_librbd PROPERTIES COMPILE_FLAGS
   ${UNITTEST_CXX_FLAGS})