summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-09-11 17:51:31 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-09-11 17:51:31 (GMT)
commit24f863dfba86fa0ace926847f0dacce18635a73c (patch)
tree3afd510867e322c733885112d46cc9e7c7cca95f /config/cmake_ext_mod
parente20331651e34a043bd54826169b21e776bb09816 (diff)
downloadhdf5-24f863dfba86fa0ace926847f0dacce18635a73c.zip
hdf5-24f863dfba86fa0ace926847f0dacce18635a73c.tar.gz
hdf5-24f863dfba86fa0ace926847f0dacce18635a73c.tar.bz2
Allow tests to dump output if not comparing
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r--config/cmake_ext_mod/runTest.cmake8
1 files changed, 8 insertions, 0 deletions
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")