ceph/src/test/osd/CMakeLists.txt
Willem Jan Withagen aa4413198b test/osd/CMakeLists.txt: osd-dup.sh require BlueStore/AIO
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-04-07 10:05:25 +02:00

102 lines
3.4 KiB
CMake

# test_rados
add_executable(ceph_test_rados
TestRados.cc
TestOpStat.cc
Object.cc
RadosModel.cc
)
target_link_libraries(ceph_test_rados
librados
global
${BLKID_LIBRARIES}
${CMAKE_DL_LIBS}
${EXTRALIBS}
${CMAKE_DL_LIBS}
)
install(TARGETS
ceph_test_rados
DESTINATION ${CMAKE_INSTALL_BINDIR})
# scripts
add_ceph_test(osd-bench.sh ${CMAKE_CURRENT_SOURCE_DIR}/osd-bench.sh)
add_ceph_test(osd-config.sh ${CMAKE_CURRENT_SOURCE_DIR}/osd-config.sh)
add_ceph_test(osd-markdown.sh ${CMAKE_CURRENT_SOURCE_DIR}/osd-markdown.sh)
add_ceph_test(osd-reactivate.sh ${CMAKE_CURRENT_SOURCE_DIR}/osd-reactivate.sh)
add_ceph_test(osd-reuse-id.sh ${CMAKE_CURRENT_SOURCE_DIR}/osd-reuse-id.sh)
add_ceph_test(osd-scrub-repair.sh ${CMAKE_CURRENT_SOURCE_DIR}/osd-scrub-repair.sh)
add_ceph_test(osd-scrub-snaps.sh ${CMAKE_CURRENT_SOURCE_DIR}/osd-scrub-snaps.sh)
add_ceph_test(osd-copy-from.sh ${CMAKE_CURRENT_SOURCE_DIR}/osd-copy-from.sh)
add_ceph_test(osd-fast-mark-down.sh ${CMAKE_CURRENT_SOURCE_DIR}/osd-fast-mark-down.sh)
if(HAVE_LIBAIO)
add_ceph_test(osd-dup.sh ${CMAKE_CURRENT_SOURCE_DIR}/osd-dup.sh)
endif()
# unittest_osdmap
add_executable(unittest_osdmap
TestOSDMap.cc
)
add_ceph_unittest(unittest_osdmap ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_osdmap)
target_link_libraries(unittest_osdmap global ${BLKID_LIBRARIES})
# unittest_osd_types
add_executable(unittest_osd_types
types.cc
)
add_ceph_unittest(unittest_osd_types ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_osd_types)
target_link_libraries(unittest_osd_types global)
# unittest_ecbackend
add_executable(unittest_ecbackend
TestECBackend.cc
)
add_ceph_unittest(unittest_ecbackend ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ecbackend)
target_link_libraries(unittest_ecbackend osd global)
# unittest_osdscrub
add_executable(unittest_osdscrub
TestOSDScrub.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_osdscrub ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_osdscrub)
target_link_libraries(unittest_osdscrub osd os global ${CMAKE_DL_LIBS} mon ${BLKID_LIBRARIES})
# unittest_pglog
add_executable(unittest_pglog
TestPGLog.cc
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_pglog ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_pglog)
target_link_libraries(unittest_pglog osd global ${CMAKE_DL_LIBS} ${BLKID_LIBRARIES})
# unittest_hitset
add_executable(unittest_hitset
hitset.cc
)
add_ceph_unittest(unittest_hitset ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_hitset)
target_link_libraries(unittest_hitset osd global ${BLKID_LIBRARIES})
# unittest_osd_osdcap
add_executable(unittest_osd_osdcap
osdcap.cc
)
if(HAS_VTA)
set_source_files_properties(osdcap.cc PROPERTIES
COMPILE_FLAGS -fno-var-tracking-assignments)
endif()
add_ceph_unittest(unittest_osd_osdcap ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_osd_osdcap)
target_link_libraries(unittest_osd_osdcap osd global ${BLKID_LIBRARIES})
# unittest ExtentCache
add_executable(unittest_extent_cache
test_extent_cache.cc
)
add_ceph_unittest(unittest_extent_cache ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_extent_cache)
target_link_libraries(unittest_extent_cache osd global ${BLKID_LIBRARIES})
# unittest PGTransaction
add_executable(unittest_pg_transaction
test_pg_transaction.cc
)
add_ceph_unittest(unittest_pg_transaction ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_pg_transaction)
target_link_libraries(unittest_pg_transaction osd global ${BLKID_LIBRARIES})