diff --git a/cmake/modules/DumuxTestMacros.cmake b/cmake/modules/DumuxTestMacros.cmake index 6777ecef7002fb0cfbc8f6f35bc29c06c5542260..a2bc9efc0e19632104c1975edb32ae98ad127e8b 100644 --- a/cmake/modules/DumuxTestMacros.cmake +++ b/cmake/modules/DumuxTestMacros.cmake @@ -55,9 +55,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}) # tests always require the executable to run set_tests_properties(${dumux_test} PROPERTIES REQUIRED_FILES ${dumux_test_executable}) endif()