Commit 13141f3f authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

fix add_dumux_test for use with Dune 2.6

add_dumux_test forwards to dune_add_test. Since Dune 2.6, this takes
only the "real" command behind COMMAND, the arguments to that command
have to follow behind CMD_ARGS.
parent 4d5b7597
...@@ -52,9 +52,12 @@ macro(add_dumux_test dumux_test dumux_test_executable dumux_test_executable_sour ...@@ -52,9 +52,12 @@ macro(add_dumux_test dumux_test dumux_test_executable dumux_test_executable_sour
# tests always require the executable to run # tests always require the executable to run
set_tests_properties(${dumux_test} PROPERTIES REQUIRED_FILES ${dumux_test_executable}) set_tests_properties(${dumux_test} PROPERTIES REQUIRED_FILES ${dumux_test_executable})
else() else()
list(GET dumux_test_args 0 dumux_test_command)
list(REMOVE_AT dumux_test_args 0)
dune_add_test(NAME ${dumux_test} dune_add_test(NAME ${dumux_test}
TARGET ${dumux_test_executable} TARGET ${dumux_test_executable}
COMMAND ${dumux_test_args} COMMAND ${dumux_test_command}
CMD_ARGS ${dumux_test_args}
TIMEOUT 600) # set default timeout TIMEOUT 600) # set default timeout
# tests always require the executable to run # tests always require the executable to run
set_tests_properties(${dumux_test} PROPERTIES REQUIRED_FILES ${dumux_test_executable}) set_tests_properties(${dumux_test} PROPERTIES REQUIRED_FILES ${dumux_test_executable})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment