summaryrefslogtreecommitdiffstats
path: root/config/cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-01-07 20:38:34 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-01-07 20:38:34 (GMT)
commitb4f238fbd51410a1e78436b3bb3312b40acec7ce (patch)
tree4feaece57c8bfbde91855363f1c9e6e7c777e8b7 /config/cmake
parent6e77ce012ffe1ba3f4d14d3fee42f4dfc7a04989 (diff)
downloadhdf5-b4f238fbd51410a1e78436b3bb3312b40acec7ce.zip
hdf5-b4f238fbd51410a1e78436b3bb3312b40acec7ce.tar.gz
hdf5-b4f238fbd51410a1e78436b3bb3312b40acec7ce.tar.bz2
[svn-r23139] Only do line by line compare if compare files fail.
Diffstat (limited to 'config/cmake')
-rw-r--r--config/cmake/prunTest.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/cmake/prunTest.cmake b/config/cmake/prunTest.cmake
index 91a2403..b9ead6f 100644
--- a/config/cmake/prunTest.cmake
+++ b/config/cmake/prunTest.cmake
@@ -104,6 +104,11 @@ IF (NOT TEST_SKIP_COMPARE)
ENDIF (WIN32 AND NOT MINGW)
# now compare the output with the reference
+ EXECUTE_PROCESS (
+ COMMAND ${CMAKE_COMMAND} -E compare_files ${TEST_FOLDER}/${TEST_OUTPUT} ${TEST_FOLDER}/P_${TEST_REFERENCE}
+ RESULT_VARIABLE TEST_RESULT
+ )
+ IF (NOT ${TEST_RESULT} STREQUAL 0)
SET (TEST_RESULT 0)
FILE (STRINGS ${TEST_FOLDER}/${TEST_OUTPUT} test_act)
LIST (LENGTH test_act len_act)
@@ -125,6 +130,7 @@ IF (NOT TEST_SKIP_COMPARE)
IF (NOT ${len_act} STREQUAL ${len_ref})
SET (TEST_RESULT 1)
ENDIF (NOT ${len_act} STREQUAL ${len_ref})
+ ENDIF (NOT ${TEST_RESULT} STREQUAL 0)
MESSAGE (STATUS "COMPARE Result: ${TEST_RESULT}")