SR: Only run replay tests if `kdb` is available
@@ -3,6 +3,7 @@ if (ENABLE_KDB_TESTING)
SET(USE_CMAKE_KDB_COMMAND "")
if (BUILD_SHARED)
set (KDB_COMMAND "${CMAKE_BINARY_DIR}/bin/kdb")
+ set (ENABLE_REPLAY_TESTS TRUE)
elseif (BUILD_FULL)
set (KDB_COMMAND "${CMAKE_BINARY_DIR}/bin/kdb-full")
elseif (BUILD_STATIC)
@@ -74,6 +75,7 @@ if (ENABLE_KDB_TESTING)
list (APPEND SCRIPT_TESTS "selftest.esr")
endif (${PLUGIN_INDEX} EQUAL -1)
+ if (ENABLE_REPLAY_TESTS)
file (GLOB REPLAY_TESTS replay_tests/*.esr)
foreach (file ${REPLAY_TESTS})
get_filename_component (directory ${file} DIRECTORY)
@@ -86,6 +88,7 @@ if (ENABLE_KDB_TESTING)
)
set_property(TEST testshell_replay_${name_without_extension} PROPERTY LABELS memleak kdbtests)
endforeach (file ${SCRIPT_TESTS})
+ endif (ENABLE_REPLAY_TESTS)
endif (NOT (${ASAN_LINUX} AND CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5))
add_subdirectory (tutorial_wrapper)
