Allow tests to dump output if not comparing

This commit is contained in:
Allen Byrne 2019-09-11 12:51:31 -05:00
parent e20331651e
commit 24f863dfba

View File

@ -343,6 +343,14 @@ if (TEST_GREP_COMPARE)
endif ()
endif ()
# dump the output unless nodisplay option is set
if (TEST_SKIP_COMPARE AND NOT TEST_NO_DISPLAY)
execute_process (
COMMAND ${CMAKE_COMMAND} -E echo ${TEST_FOLDER}/${TEST_OUTPUT}
RESULT_VARIABLE TEST_RESULT
)
endif ()
# everything went fine...
message (STATUS "${TEST_PROGRAM} Passed")