diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-02-27 01:08:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 01:08:00 (GMT) |
commit | 50291e54d7ff62e6a6679a63234bb2b1203cd0dc (patch) | |
tree | aec39901baa799e49f108cc80e602f3ef0e76293 /config/cmake_ext_mod/runTest.cmake | |
parent | e8b030363999befa548b94ac5c505d170540aebc (diff) | |
download | hdf5-50291e54d7ff62e6a6679a63234bb2b1203cd0dc.zip hdf5-50291e54d7ff62e6a6679a63234bb2b1203cd0dc.tar.gz hdf5-50291e54d7ff62e6a6679a63234bb2b1203cd0dc.tar.bz2 |
Merge SZ plugin changes from develop (#1456)
Diffstat (limited to 'config/cmake_ext_mod/runTest.cmake')
-rw-r--r-- | config/cmake_ext_mod/runTest.cmake | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/config/cmake_ext_mod/runTest.cmake b/config/cmake_ext_mod/runTest.cmake index f552dcd..05f4473 100644 --- a/config/cmake_ext_mod/runTest.cmake +++ b/config/cmake_ext_mod/runTest.cmake @@ -243,7 +243,14 @@ 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) + if (NOT len_act EQUAL len_ref) + set (TEST_COMPARE_RESULT 1) + endif () if (len_act GREATER 0 AND len_ref GREATER 0) + if (TEST_SORT_COMPARE) + list (SORT test_act) + list (SORT test_ref) + endif () math (EXPR _FP_LEN "${len_ref} - 1") foreach (line RANGE 0 ${_FP_LEN}) list (GET test_act ${line} str_act) @@ -263,9 +270,6 @@ if (NOT TEST_SKIP_COMPARE) message (STATUS "COMPARE Failed: ${TEST_FOLDER}/${TEST_REFERENCE} is empty") endif () endif () - if (NOT len_act EQUAL len_ref) - set (TEST_COMPARE_RESULT 1) - endif () endif () endif () |