Skip to content
Snippets Groups Projects
Commit 2bb1a464 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Set the PROCESSORS property of parallel tests

It allows ctest to correctly schedule parallel tests
even though running through ctest -j.
parent 62f19bc9
Branches
Tags
No related merge requests found
......@@ -216,6 +216,8 @@ function(dune_add_test)
COMMAND ${ACTUAL_TESTCOMMAND} ${ADDTEST_CMD_ARGS}
)
# Define the number of processors (ctest will coordinate this with the -j option)
set_tests_properties(${ACTUAL_NAME} PROPERTIES PROCESSORS ${procnum})
# Process the EXPECT_FAIL option
if(ADDTEST_EXPECT_COMPILE_FAIL OR ADDTEST_EXPECT_FAIL)
set_tests_properties(${ACTUAL_NAME} PROPERTIES WILL_FAIL true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment