]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: moved tests into test/cls_log dir
authorAli Maredia <amaredia@redhat.com>
Tue, 2 Feb 2016 00:20:55 +0000 (19:20 -0500)
committerAli Maredia <amaredia@redhat.com>
Fri, 15 Apr 2016 00:48:20 +0000 (20:48 -0400)
Added a CMakeLists.txt into test/cls_log.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
src/test/CMakeLists.txt
src/test/cls_log/CMakeLists.txt [new file with mode: 0644]

index b8e983bd683562fc20f8dee25e38d2d6d278904f..bcdf2be83a46a5489f9738b13a16c7dc84430cfd 100644 (file)
@@ -3,6 +3,10 @@ include(AddCephTest)
 set(UNITTEST_LIBS gmock_main gmock gtest ${PTHREAD_LIBS} ${CMAKE_DL_LIBS})
 set(UNITTEST_CXX_FLAGS "-I${CMAKE_SOURCE_DIR}/src/gmock/include -I${CMAKE_BINARY_DIR}/src/gmock/include -I${CMAKE_SOURCE_DIR}/src/gmock/gtest/include -I${CMAKE_BINARY_DIR}/src/gmock/gtest/include -fno-strict-aliasing")
 
+add_subdirectory(cls_hello)
+add_subdirectory(cls_lock)
+add_subdirectory(cls_log)
+
 # test_timers
 add_executable(ceph_test_timers
   TestTimers.cc
@@ -444,23 +448,6 @@ target_link_libraries(ceph_test_cls_version
   radostest
   )
 
-add_executable(ceph_test_cls_log
-  cls_log/test_cls_log.cc
-  )
-set_target_properties(ceph_test_cls_log PROPERTIES COMPILE_FLAGS
-  ${UNITTEST_CXX_FLAGS})
-target_link_libraries(ceph_test_cls_log
-  librados
-  cls_log_client
-  global
-  radostest
-  ${UNITTEST_LIBS}
-  ${BLKID_LIBRARIES}
-  ${CMAKE_DL_LIBS}
-  ${CRYPTO_LIBS}
-  ${EXTRALIBS}
-  )
-
 add_executable(ceph_test_cls_statelog
   cls_statelog/test_cls_statelog.cc
   )
@@ -495,9 +482,6 @@ target_link_libraries(ceph_test_cls_replica_log
   radostest
   )
 
-add_subdirectory(cls_lock)
-add_subdirectory(cls_hello)
-
 add_executable(ceph_test_cls_numops cls_numops/test_cls_numops.cc)
 set_target_properties(ceph_test_cls_numops PROPERTIES COMPILE_FLAGS
   ${UNITTEST_CXX_FLAGS})
diff --git a/src/test/cls_log/CMakeLists.txt b/src/test/cls_log/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ba9d6ab
--- /dev/null
@@ -0,0 +1,17 @@
+add_executable(ceph_test_cls_log
+  test_cls_log.cc
+  )
+set_target_properties(ceph_test_cls_log PROPERTIES COMPILE_FLAGS
+  ${UNITTEST_CXX_FLAGS})
+target_link_libraries(ceph_test_cls_log
+  librados
+  cls_log_client
+  global
+  radostest
+  ${UNITTEST_LIBS}
+  ${BLKID_LIBRARIES}
+  ${CMAKE_DL_LIBS}
+  ${CRYPTO_LIBS}
+  ${EXTRALIBS}
+  )
+