include(AddCephTest)
-set(UNITTEST_LIBS GMock::Main GMock::GMock GTest::GTest ${CMAKE_THREAD_LIBS_INIT}
- ${GSSAPI_LIBRARIES} ${OPENLDAP_LIBRARIES} ${CMAKE_DL_LIBS})
+set(UNITTEST_LIBS GMock::Main GMock::GMock GTest::GTest ${CMAKE_THREAD_LIBS_INIT}
+ ${GSSAPI_LIBRARIES} ${CMAKE_DL_LIBS})
if(WIN32)
# Needed by Boost.
add_subdirectory(libcephsqlite)
add_subdirectory(client)
add_subdirectory(mon)
- add_subdirectory(mgr)
+ if(WITH_MGR)
+ add_subdirectory(mgr)
+ endif()
add_subdirectory(msgr)
add_subdirectory(neorados)
add_subdirectory(objectstore)
add_subdirectory(osd)
add_subdirectory(osdc)
add_subdirectory(immutable_object_cache)
-endif()
+endif(NOT WIN32)
if(WITH_RADOSGW)
set(rgw_libs rgw_a)
target_link_libraries(ceph_bench_log rt)
endif()
+if(WITH_SYSTEMD)
+ add_executable(ceph_bench_journald_logger
+ bench_journald_logger.cc)
+ target_link_libraries(ceph_bench_journald_logger ceph-common)
+endif()
+
# ceph_test_mutate
add_executable(ceph_test_mutate
test_mutate.cc
)
-target_link_libraries(ceph_test_mutate global librados ${BLKID_LIBRARIES}
+target_link_libraries(ceph_test_mutate global librados ${BLKID_LIBRARIES}
${CMAKE_DL_LIBS})
if(NOT WIN32)
add_executable(ceph_test_librgw_file
librgw_file.cc
)
-if(WITH_RADOSGW_FCGI_FRONTEND)
-target_include_directories(ceph_test_librgw_file SYSTEM PRIVATE ${FCGI_INCLUDE_DIR})
-endif(WITH_RADOSGW_FCGI_FRONTEND)
target_link_libraries(ceph_test_librgw_file
rgw
librados
librgw_file_nfsns.cc
)
target_include_directories(ceph_test_librgw_file_nfsns SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw")
-if(WITH_RADOSGW_FCGI_FRONTEND)
-target_include_directories(ceph_test_librgw_file_nfsns SYSTEM PRIVATE ${FCGI_INCLUDE_DIR})
-endif(WITH_RADOSGW_FCGI_FRONTEND)
target_link_libraries(ceph_test_librgw_file_nfsns
rgw
librados
target_link_libraries(test_rgw_ldap
librados
ceph-common
- ${OPENLDAP_LIBRARIES}
- ${UNITTEST_LIBS}
- )
+ ${UNITTEST_LIBS})
+if(WITH_OPENLDAP)
+ target_link_libraries(test_rgw_ldap
+ OpenLDAP::OpenLDAP)
+endif()
endif(${WITH_RADOSGW})
# ceph_multi_stress_watch
ceph_test_stress_watch
DESTINATION ${CMAKE_INSTALL_BINDIR})
+add_executable(ceph_test_c2c
+ test_c2c.cc
+ )
+target_link_libraries(ceph_test_c2c
+ global
+ ceph-common
+ pthread
+ ${EXTRALIBS}
+ ${CMAKE_DL_LIBS}
+ )
+install(TARGETS
+ ceph_test_c2c
+ DESTINATION ${CMAKE_INSTALL_BINDIR})
+
if(WITH_FUSE)
add_executable(ceph_test_cfuse_cache_invalidate
test_cfuse_cache_invalidate.cc
ceph-mon
get_command_descriptions
ceph-dencoder
+ ceph-dencoder-modules
ceph-objectstore-tool
ceph-kvstore-tool
ceph-monstore-tool
add_ceph_test(smoke.sh ${CMAKE_CURRENT_SOURCE_DIR}/smoke.sh)
-find_program(PROMTOOL_EXECUTABLE promtool)
-if(PROMTOOL_EXECUTABLE)
- execute_process(
- COMMAND ${PROMTOOL_EXECUTABLE} test rules /dev/null
- RESULT_VARIABLE rc
- OUTPUT_QUIET)
- if(NOT rc)
- add_ceph_test(run-promtool-unittests
- ${PROMTOOL_EXECUTABLE} test rules ${CMAKE_SOURCE_DIR}/monitoring/prometheus/alerts/test_alerts.yml)
- else()
- message(WARNING "'${PROMTOOL_EXECUTABLE} test rules' does not work, "
- "please use a newer prometheus")
- endif()
-else()
- add_ceph_test(run-promtool-unittests
- {CMAKE_CURRENT_SOURCE_DIR}/run-promtool-unittests.sh)
-endif()
-
set_property(
TEST ${tox_tests}
PROPERTY ENVIRONMENT ${env_vars_for_tox_tests})
add_executable(unittest_weighted_shuffle test_weighted_shuffle.cc)
add_ceph_unittest(unittest_weighted_shuffle)
+add_executable(unittest_intarith test_intarith.cc)
+add_ceph_unittest(unittest_intarith)
#make check ends here