From: Matthias Maier Date: Sun, 20 Feb 2022 19:42:37 +0000 (-0600) Subject: CMake: Allow to customize test command line X-Git-Tag: v9.4.0-rc1~372^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=975a25f7f6bc525833521c180d047f235466cdb4;p=dealii.git CMake: Allow to customize test command line --- diff --git a/cmake/macros/macro_deal_ii_add_test.cmake b/cmake/macros/macro_deal_ii_add_test.cmake index b9a830eef5..ef3e8ef538 100644 --- a/cmake/macros/macro_deal_ii_add_test.cmake +++ b/cmake/macros/macro_deal_ii_add_test.cmake @@ -314,6 +314,15 @@ FUNCTION(DEAL_II_ADD_TEST _category _test_name _comparison_file) SET(_target_short ${_test_name}.${_build_lowercase}) # short target name SET(_run_args "$") # the command to issue + # + # If the variable ${category_test_RUNARGS_PREFIX) is nonempty prepend + # it to the command line of the test: + # + if(NOT "${${_category}_${_test_name}_RUNARGS_PREFIX}" STREQUAL "") + SET(_run_args + ${${_category}_${_test_name}_RUNARGS_PREFIX} "${_run_args}") + ENDIF() + # # Override target and run command for parameter file variants: #