]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Modify ceph cmake files to bring in dmclock library and tests. Include 14330/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Thu, 6 Apr 2017 13:12:31 +0000 (09:12 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Fri, 28 Apr 2017 21:13:56 +0000 (17:13 -0400)
dmclock tests in ceph-test for builds.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
ceph.spec.in
debian/ceph-test.install
src/CMakeLists.txt

index 50632b0adbe685f7e714e7cb9cabf403191a0292..f7219265faa4e087498c6e8cc4b15fd4b5ce1d60 100644 (file)
@@ -1624,6 +1624,8 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
 %{_bindir}/ceph-osdomap-tool
 %{_bindir}/ceph-kvstore-tool
 %{_bindir}/ceph-debugpack
+%{_bindir}/dmclock-tests
+%{_bindir}/dmclock-data-struct-tests
 %{_mandir}/man8/ceph-debugpack.8*
 %dir %{_libdir}/ceph
 %{_libdir}/ceph/ceph-monstore-update-crush.sh
index 15b04664eaab005f1d97cd4130da833666a390f3..4fdf179e30459d421391d11b3d7cad1a7b82bab5 100644 (file)
@@ -26,5 +26,7 @@ usr/bin/ceph_xattr_bench
 usr/bin/ceph-monstore-tool
 usr/bin/ceph-osdomap-tool
 usr/bin/ceph-kvstore-tool
+usr/bin/dmclock-tests
+usr/bin/dmclock-data-struct-tests
 usr/share/java/libcephfs-test.jar
 usr/lib/ceph/ceph-monstore-update-crush.sh
index 2378863ee903c1714c74bbdfe1ce8d4b5d14dd06..75587194174bca1a2c647859745fc61766e58de3 100644 (file)
@@ -332,6 +332,17 @@ add_subdirectory(json_spirit)
 
 include_directories("${CMAKE_SOURCE_DIR}/src/xxHash")
 
+set(GMOCK_INCLUDE_DIRS
+  "${CMAKE_SOURCE_DIR}/src/googletest/googletest/include/gmock")
+set(GTEST_INCLUDE_DIRS
+  "${CMAKE_SOURCE_DIR}/src/googletest/googletest/include/gtest")
+
+include_directories("${CMAKE_SOURCE_DIR}/src/dmclock/src")
+include_directories("${CMAKE_SOURCE_DIR}/src/dmclock/support/src")
+
+# needed for source files that friend unit tests (e.g., using FRIEND_TEST)
+include_directories("${CMAKE_SOURCE_DIR}/src/googletest/googletest/include")
+
 set(xio_common_srcs)
 if(HAVE_XIO)
   list(APPEND xio_common_srcs
@@ -809,6 +820,7 @@ set(cls_references_files objclass/class_api.cc)
 add_library(cls_references_objs OBJECT ${cls_references_files})
 
 add_subdirectory(osd)
+
 set(ceph_osd_srcs
   ceph_osd.cc)
 add_executable(ceph-osd ${ceph_osd_srcs}
@@ -842,6 +854,18 @@ add_subdirectory(compressor)
 
 add_subdirectory(tools)
 
+# dmClock
+
+add_subdirectory(dmclock) # after gmock
+add_dependencies(tests dmclock-tests dmclock-data-struct-tests)
+
+if(WITH_TESTS)
+  install(PROGRAMS
+    ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/dmclock-tests
+    ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/dmclock-data-struct-tests
+    DESTINATION bin)
+endif(WITH_TESTS)
+
 if(HAVE_INTEL)
   add_subdirectory(crypto/isa-l)
 endif(HAVE_INTEL)