diff --git a/cmake/modules/DumuxTestMacros.cmake b/cmake/modules/DumuxTestMacros.cmake index 71b6881d7a0142613096c724f781a3a72cb66e71..3c0ddb5d357b26e860f29297ce9934b497ed8969 100644 --- a/cmake/modules/DumuxTestMacros.cmake +++ b/cmake/modules/DumuxTestMacros.cmake @@ -52,9 +52,12 @@ macro(add_dumux_test dumux_test dumux_test_executable dumux_test_executable_sour # tests always require the executable to run set_tests_properties(${dumux_test} PROPERTIES REQUIRED_FILES ${dumux_test_executable}) else() + list(GET dumux_test_args 0 dumux_test_command) + list(REMOVE_AT dumux_test_args 0) dune_add_test(NAME ${dumux_test} TARGET ${dumux_test_executable} - COMMAND ${dumux_test_args} + COMMAND ${dumux_test_command} + CMD_ARGS ${dumux_test_args} TIMEOUT 600) # set default timeout # tests always require the executable to run set_tests_properties(${dumux_test} PROPERTIES REQUIRED_FILES ${dumux_test_executable})