mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
[svn-r23113] Added corrections to treat ";" character as text for comparision.
Tested: local linux
This commit is contained in:
parent
7b5b6d239e
commit
f41c524ca9
config/cmake
@ -109,17 +109,19 @@ IF (NOT TEST_SKIP_COMPARE)
|
||||
LIST (LENGTH test_act len_act)
|
||||
FILE (STRINGS ${TEST_FOLDER}/P_${TEST_REFERENCE} test_ref)
|
||||
LIST (LENGTH test_ref len_ref)
|
||||
MATH (EXPR _FP_LEN "${len_ref} - 1")
|
||||
FOREACH (line RANGE 0 ${_FP_LEN})
|
||||
LIST (GET test_act ${line} str_act)
|
||||
LIST (GET test_ref ${line} str_ref)
|
||||
IF (NOT ${str_act} STREQUAL ${str_ref})
|
||||
IF (NOT ${str_act} STREQUAL "")
|
||||
SET (TEST_RESULT 1)
|
||||
MESSAGE ("line = ${line}\n***ACTUAL: ${str_act}\n****REFER: ${str_ref}\n")
|
||||
ENDIF (NOT ${str_act} STREQUAL "")
|
||||
ENDIF (NOT ${str_act} STREQUAL ${str_ref})
|
||||
ENDFOREACH (line RANGE 0 ${_FP_LEN})
|
||||
IF (NOT ${len_act} STREQUAL "0")
|
||||
MATH (EXPR _FP_LEN "${len_ref} - 1")
|
||||
FOREACH (line RANGE 0 ${_FP_LEN})
|
||||
LIST (GET test_act ${line} str_act)
|
||||
LIST (GET test_ref ${line} str_ref)
|
||||
IF (NOT "${str_act}" STREQUAL "${str_ref}")
|
||||
IF (NOT "${str_act}" STREQUAL "")
|
||||
SET (TEST_RESULT 1)
|
||||
MESSAGE ("line = ${line}\n***ACTUAL: ${str_act}\n****REFER: ${str_ref}\n")
|
||||
ENDIF (NOT "${str_act}" STREQUAL "")
|
||||
ENDIF (NOT "${str_act}" STREQUAL "${str_ref}")
|
||||
ENDFOREACH (line RANGE 0 ${_FP_LEN})
|
||||
ENDIF (NOT ${len_act} STREQUAL "0")
|
||||
IF (NOT ${len_act} STREQUAL ${len_ref})
|
||||
SET (TEST_RESULT 1)
|
||||
ENDIF (NOT ${len_act} STREQUAL ${len_ref})
|
||||
|
@ -114,17 +114,19 @@ IF (NOT TEST_SKIP_COMPARE)
|
||||
LIST (LENGTH test_act len_act)
|
||||
FILE (STRINGS ${TEST_FOLDER}/${TEST_REFERENCE} test_ref)
|
||||
LIST (LENGTH test_ref len_ref)
|
||||
MATH (EXPR _FP_LEN "${len_ref} - 1")
|
||||
FOREACH (line RANGE 0 ${_FP_LEN})
|
||||
LIST (GET test_act ${line} str_act)
|
||||
LIST (GET test_ref ${line} str_ref)
|
||||
IF (NOT ${str_act} STREQUAL ${str_ref})
|
||||
IF (NOT ${str_act} STREQUAL "")
|
||||
SET (TEST_RESULT 1)
|
||||
MESSAGE ("line = ${line}\n***ACTUAL: ${str_act}\n****REFER: ${str_ref}\n")
|
||||
ENDIF (NOT ${str_act} STREQUAL "")
|
||||
ENDIF (NOT ${str_act} STREQUAL ${str_ref})
|
||||
ENDFOREACH (line RANGE 0 ${_FP_LEN})
|
||||
IF (NOT ${len_act} STREQUAL "0")
|
||||
MATH (EXPR _FP_LEN "${len_ref} - 1")
|
||||
FOREACH (line RANGE 0 ${_FP_LEN})
|
||||
LIST (GET test_act ${line} str_act)
|
||||
LIST (GET test_ref ${line} str_ref)
|
||||
IF (NOT "${str_act}" STREQUAL "${str_ref}")
|
||||
IF (NOT "${str_act}" STREQUAL "")
|
||||
SET (TEST_RESULT 1)
|
||||
MESSAGE ("line = ${line}\n***ACTUAL: ${str_act}\n****REFER: ${str_ref}\n")
|
||||
ENDIF (NOT "${str_act}" STREQUAL "")
|
||||
ENDIF (NOT "${str_act}" STREQUAL "${str_ref}")
|
||||
ENDFOREACH (line RANGE 0 ${_FP_LEN})
|
||||
ENDIF (NOT ${len_act} STREQUAL "0")
|
||||
IF (NOT ${len_act} STREQUAL ${len_ref})
|
||||
SET (TEST_RESULT 1)
|
||||
ENDIF (NOT ${len_act} STREQUAL ${len_ref})
|
||||
@ -149,16 +151,19 @@ IF (NOT TEST_SKIP_COMPARE)
|
||||
FILE (STRINGS ${TEST_FOLDER}/${TEST_ERRREF} test_ref)
|
||||
LIST (LENGTH test_ref len_ref)
|
||||
MATH (EXPR _FP_LEN "${len_ref} - 1")
|
||||
FOREACH (line RANGE 0 ${_FP_LEN})
|
||||
LIST (GET test_act ${line} str_act)
|
||||
LIST (GET test_ref ${line} str_ref)
|
||||
IF (NOT ${str_act} STREQUAL ${str_ref})
|
||||
IF (NOT ${str_act} STREQUAL "")
|
||||
SET (TEST_RESULT 1)
|
||||
MESSAGE ("line = ${line}\n***ACTUAL: ${str_act}\n****REFER: ${str_ref}\n")
|
||||
ENDIF (NOT ${str_act} STREQUAL "")
|
||||
ENDIF (NOT ${str_act} STREQUAL ${str_ref})
|
||||
ENDFOREACH (line RANGE 0 ${_FP_LEN})
|
||||
IF (NOT ${len_act} STREQUAL "0")
|
||||
MATH (EXPR _FP_LEN "${len_ref} - 1")
|
||||
FOREACH (line RANGE 0 ${_FP_LEN})
|
||||
LIST (GET test_act ${line} str_act)
|
||||
LIST (GET test_ref ${line} str_ref)
|
||||
IF (NOT "${str_act}" STREQUAL "${str_ref}")
|
||||
IF (NOT "${str_act}" STREQUAL "")
|
||||
SET (TEST_RESULT 1)
|
||||
MESSAGE ("line = ${line}\n***ACTUAL: ${str_act}\n****REFER: ${str_ref}\n")
|
||||
ENDIF (NOT "${str_act}" STREQUAL "")
|
||||
ENDIF (NOT "${str_act}" STREQUAL "${str_ref}")
|
||||
ENDFOREACH (line RANGE 0 ${_FP_LEN})
|
||||
ENDIF (NOT ${len_act} STREQUAL "0")
|
||||
IF (NOT ${len_act} STREQUAL ${len_ref})
|
||||
SET (TEST_RESULT 1)
|
||||
ENDIF (NOT ${len_act} STREQUAL ${len_ref})
|
||||
|
Loading…
x
Reference in New Issue
Block a user