From 24f863dfba86fa0ace926847f0dacce18635a73c Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Wed, 11 Sep 2019 12:51:31 -0500 Subject: Allow tests to dump output if not comparing --- config/cmake_ext_mod/runTest.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/cmake_ext_mod/runTest.cmake b/config/cmake_ext_mod/runTest.cmake index e601653..7a10df2 100644 --- a/config/cmake_ext_mod/runTest.cmake +++ b/config/cmake_ext_mod/runTest.cmake @@ -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") -- cgit v0.12