Skip to content
Snippets Groups Projects
Commit 69efd0be authored by Timo Koch's avatar Timo Koch
Browse files

[cmake][dune_add_test] Set test property to depend on existence of target

If the target was not found in the current state the test fails. With this
patch the ctest states "Not Run" and the name of the missing target.
parent dc61d9a3
No related branches found
No related tags found
No related merge requests found
......@@ -302,6 +302,8 @@ function(dune_add_test)
COMMAND "${ACTUAL_TESTCOMMAND}" ${ACTUAL_CMD_ARGS}
)
# Make the test depend on the existence of the target to trigger "Not Run" response
set_tests_properties(${ACTUAL_NAME} PROPERTIES REQUIRED_FILES ${ADDTEST_TARGET})
# Define the number of processors (ctest will coordinate this with the -j option)
set_tests_properties(${ACTUAL_NAME} PROPERTIES PROCESSORS ${procnum})
# Apply the timeout (which was defaulted to 5 minutes if not specified)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment