summaryrefslogtreecommitdiff
path: root/test/TiffTestCommon.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'test/TiffTestCommon.cmake')
-rw-r--r--test/TiffTestCommon.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/TiffTestCommon.cmake b/test/TiffTestCommon.cmake
index a0db6782..6d3b0465 100644
--- a/test/TiffTestCommon.cmake
+++ b/test/TiffTestCommon.cmake
@@ -56,6 +56,7 @@ macro(test_convert_multi command infile outfile)
message(FATAL_ERROR "Returned failed status ${TEST_STATUS}! Output (if any) is in \"${native_outfile}\"")
endif()
endmacro()
+
#
# Test a simple command which sends output to stdout
#
@@ -74,6 +75,19 @@ macro(test_stdout command infile outfile)
endmacro()
#
+# Test a simple command which sends output to stdout
+#
+# test_stdout command infile outfile
+macro(test_stdout_noargs command)
+ message(STATUS "Running ${MEMCHECK} ${command}")
+ execute_process(COMMAND ${MEMCHECK} ${command}
+ RESULT_VARIABLE TEST_STATUS)
+ if(TEST_STATUS)
+ message(FATAL_ERROR "Returned failed status ${TEST_STATUS}!")
+ endif()
+endmacro()
+
+#
# Execute a simple command (e.g. tiffinfo) with one input file
#
# test_exec command infile