Make manually added test targets as part of the check target

This commit is contained in:
Martchus 2020-06-16 01:09:39 +02:00
parent 940593429a
commit 74b010cbb9
2 changed files with 5 additions and 5 deletions

View File

@ -302,10 +302,5 @@ if (CLANG_SOURCE_BASED_COVERAGE_AVAILABLE)
endif ()
endif ()
# add the test executable to the dependencies of the check target
if (NOT META_TEST_TARGET_IS_MANUAL)
add_dependencies(check ${META_TARGET_NAME}_tests)
endif ()
set(META_HAVE_TESTS YES)
set(TEST_CONFIG_DONE YES)

View File

@ -64,4 +64,9 @@ function (configure_test_target)
if (NOT ARGS_MANUAL)
add_test(NAME "${ARGS_TARGET_NAME}_run_${ARGS_TEST_NAME}" COMMAND "${TEST_TARGET_NAME}" ${RUN_ARGS})
endif ()
# add the test executable to the dependencies of the check target
if (NOT ARGS_MANUAL AND TARGET check)
add_dependencies(check ${TEST_TARGET_NAME})
endif ()
endfunction ()