## ---------------------------------------------------------------------
##
-## Copyright (C) 2013, 2014 by the deal.II authors
+## Copyright (C) 2013, 2014, 2015 by the deal.II authors
##
## This file is part of the deal.II library.
##
IF(_match OR "${_configuration}" STREQUAL "")
#
- # Setup a bunch of variables describing the test:
+ # Set up a bunch of variables describing this particular test:
#
STRING(TOLOWER ${_build} _build_lowercase)
SET(_target ${_test_name}.${_build_lowercase}) # target name
- # If _n_cpu is equal to "0", a normal, sequental test will be run,
+ # If _n_cpu is equal to "0", a normal, sequential test will be run,
# otherwise run the test with mpirun:
IF("${_n_cpu}" STREQUAL "0")
#
ADD_CUSTOM_COMMAND(OUTPUT ${_test_directory}/output
- COMMAND rm -f ${_test_directory}/failing_output
- COMMAND touch ${_test_directory}/output
+ COMMAND
+ rm -f ${_test_directory}/failing_output
+ COMMAND
+ touch ${_test_directory}/output
COMMAND
${_run_command}
|| (mv ${_test_directory}/output
${DEAL_II_SOURCE_DIR}/tests/normalize.pl
)
ADD_CUSTOM_COMMAND(OUTPUT ${_test_directory}/diff
- COMMAND rm -f ${_test_directory}/failing_diff
- COMMAND touch ${_test_directory}/diff
+ COMMAND
+ rm -f ${_test_directory}/failing_diff
+ COMMAND
+ touch ${_test_directory}/diff
COMMAND
# run diff or numdiff (if available) to determine
# whether files are the same. if they are not, output
${_comparison_file}
)
- ADD_CUSTOM_TARGET(${_diff_target} DEPENDS ${_test_directory}/diff
+ ADD_CUSTOM_TARGET(${_diff_target}
COMMAND
echo "${_test_full}: BUILD successful."
&& echo "${_test_full}: RUN successful."
&& echo "${_test_full}: DIFF successful."
&& echo "${_test_full}: PASSED."
- )
+ DEPENDS
+ ${_test_directory}/diff
+ )
#
# And finally add the test: