Make manually added test targets as part of the check target
This commit is contained in:
parent
940593429a
commit
74b010cbb9
|
@ -302,10 +302,5 @@ if (CLANG_SOURCE_BASED_COVERAGE_AVAILABLE)
|
||||||
endif ()
|
endif ()
|
||||||
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(META_HAVE_TESTS YES)
|
||||||
set(TEST_CONFIG_DONE YES)
|
set(TEST_CONFIG_DONE YES)
|
||||||
|
|
|
@ -64,4 +64,9 @@ function (configure_test_target)
|
||||||
if (NOT ARGS_MANUAL)
|
if (NOT ARGS_MANUAL)
|
||||||
add_test(NAME "${ARGS_TARGET_NAME}_run_${ARGS_TEST_NAME}" COMMAND "${TEST_TARGET_NAME}" ${RUN_ARGS})
|
add_test(NAME "${ARGS_TARGET_NAME}_run_${ARGS_TEST_NAME}" COMMAND "${TEST_TARGET_NAME}" ${RUN_ARGS})
|
||||||
endif ()
|
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 ()
|
endfunction ()
|
||||||
|
|
Loading…
Reference in New Issue