return()
endif()
+ #
+ # Determine whether the .run_only keyword is present.
+ #
+ # In case no numdiff executable was found we fall back to simply running
+ # the tests as well (but not comparing them).
+ #
+ set(_run_only FALSE)
+ if(_file MATCHES "\\.run_only$" OR "${NUMDIFF_EXECUTABLE}" STREQUAL "")
+ set(_run_only TRUE)
+ endif()
+
#
# Determine the expected build stage of this test:
#
endif()
#
- # Determine whether the .run_only keyword is present.
- #
- # In case no numdiff executable was found we fall back to simply running
- # the tests as well (but not comparing them).
+ # If _run_only is set then we don't compare test results. Therefore,
+ # we won't fail in the "DIFF" stage of a test.
#
- set(_run_only FALSE)
- if(_file MATCHES "\\.run_only$" OR "${NUMDIFF_EXECUTABLE}" STREQUAL "")
- set(_run_only TRUE)
+ if(_run_only AND "${_expect}" STREQUAL "DIFF")
+ set(_expect "PASSED")
endif()
#