This fixes the runscript invocation on windows configurations
#
add_custom_command(OUTPUT ${_test_directory}/output
- COMMAND TEST_N_THREADS=${_n_threads}
- ${BASH} ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.sh
- run "${_test_full}" ${_run_args}
+ COMMAND ${BASH} ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.sh
+ run "${_test_full}" TEST_N_THREADS=${_n_threads} ${_run_args}
COMMAND ${PERL_EXECUTABLE}
-pi ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/normalize.pl
${_test_directory}/output
# testsuite to explicitly set the number of threads in the header
# file tests.h.
#
+
+ # Read in TEST_N_THREADS from command line:
+ if [[ $1 == TEST_N_THREADS=* ]]; then
+ TEST_N_THREADS="${1#TEST_N_THREADS=}"
+ shift
+ fi
+
if [ "${TEST_N_THREADS:-0}" -ne 0 ]; then
export DEAL_II_NUM_THREADS="${TEST_N_THREADS}"
export TEST_N_THREADS
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams