]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: ceph_test_cls_journal was dropped when converting to cmake
authorJason Dillaman <dillaman@redhat.com>
Thu, 12 Oct 2017 12:56:57 +0000 (08:56 -0400)
committerKarol Mroz <kmroz@suse.de>
Fri, 20 Oct 2017 02:05:34 +0000 (19:05 -0700)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 5d9cfebabac33b645c6199bda63ff4619e6f538f)

src/test/CMakeLists.txt
src/test/cls_journal/CMakeLists.txt [new file with mode: 0644]

index 50b35769106f1d08d06322058289f43418438252..c70ef760d16de7d43cc51bc5cdfa093db9b9ac0b 100644 (file)
@@ -14,6 +14,7 @@ add_subdirectory(cls_log)
 add_subdirectory(cls_numops)
 add_subdirectory(cls_sdk)
 if(WITH_RBD)
+  add_subdirectory(cls_journal)
   add_subdirectory(cls_rbd)
 endif(WITH_RBD)
 add_subdirectory(cls_refcount)
diff --git a/src/test/cls_journal/CMakeLists.txt b/src/test/cls_journal/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6e99cdc
--- /dev/null
@@ -0,0 +1,18 @@
+# cls_test_cls_journal
+add_executable(ceph_test_cls_journal
+  test_cls_journal.cc
+  $<TARGET_OBJECTS:common_texttable_obj>)
+set_target_properties(ceph_test_cls_journal PROPERTIES COMPILE_FLAGS
+  ${UNITTEST_CXX_FLAGS})
+target_link_libraries(ceph_test_cls_journal
+  cls_journal_client
+  librados
+  global
+  ${UNITTEST_LIBS}
+  ${CMAKE_DL_LIBS}
+  ${CRYPTO_LIBS}
+  ${EXTRALIBS}
+  radostest)
+install(TARGETS
+  ceph_test_cls_journal
+  DESTINATION ${CMAKE_INSTALL_BINDIR})