STRING(TOUPPER ${_expect} _expect)
ENDIF()
+ #
+ # Determine whether the .run_only keyword is present:
+ #
+ SET(_run_only FALSE)
+ IF(_file MATCHES "\\.run_only$")
+ SET(_run_only TRUE)
+ ENDIF()
+
#
# Determine for which build types a test should be defined.
#
VERBATIM
)
- FILE(GLOB _comparison_files ${_comparison_file} ${_comparison_file}.*)
+ IF(_run_only)
+ ADD_CUSTOM_TARGET(${_test_target}
+ COMMAND echo "${_test_full}: BUILD successful."
+ COMMAND echo "${_test_full}: RUN successful."
+ COMMAND echo "${_test_full}: DIFF skipped."
+ COMMAND echo "${_test_full}: PASSED."
+ DEPENDS ${_test_directory}/output
+ )
- ADD_CUSTOM_COMMAND(OUTPUT ${_test_directory}/diff
- COMMAND sh ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.sh
- diff "${_test_full}" "${NUMDIFF_EXECUTABLE}"
- "${_comparison_file}" ${_run_args}
- WORKING_DIRECTORY
- ${_test_directory}
- DEPENDS
- ${_test_directory}/output
- ${_comparison_files}
- VERBATIM
- )
+ ELSE()
- ADD_CUSTOM_TARGET(${_test_target}
- COMMAND echo "${_test_full}: BUILD successful."
- COMMAND echo "${_test_full}: RUN successful."
- COMMAND echo "${_test_full}: DIFF successful."
- COMMAND echo "${_test_full}: PASSED."
- DEPENDS ${_test_directory}/diff
- )
+ FILE(GLOB _comparison_files ${_comparison_file} ${_comparison_file}.*)
+
+ ADD_CUSTOM_COMMAND(OUTPUT ${_test_directory}/diff
+ COMMAND sh ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.sh
+ diff "${_test_full}" "${NUMDIFF_EXECUTABLE}"
+ "${_comparison_file}" ${_run_args}
+ WORKING_DIRECTORY
+ ${_test_directory}
+ DEPENDS
+ ${_test_directory}/output
+ ${_comparison_files}
+ VERBATIM
+ )
+
+ ADD_CUSTOM_TARGET(${_test_target}
+ COMMAND echo "${_test_full}: BUILD successful."
+ COMMAND echo "${_test_full}: RUN successful."
+ COMMAND echo "${_test_full}: DIFF successful."
+ COMMAND echo "${_test_full}: PASSED."
+ DEPENDS ${_test_directory}/diff
+ )
+
+ ENDIF()
#
# And finally define the test: