diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2024-03-10 23:43:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-10 23:43:37 (GMT) |
commit | 50a65223220142cf0b06a7d25ca53dc56811be01 (patch) | |
tree | 52d42dec08d723ee8949e50b7501dd7fbc1d21d5 /HDF5Examples | |
parent | 9bc6c201666aa7fcd7937db7241d4074b67824c9 (diff) | |
download | hdf5-50a65223220142cf0b06a7d25ca53dc56811be01.zip hdf5-50a65223220142cf0b06a7d25ca53dc56811be01.tar.gz hdf5-50a65223220142cf0b06a7d25ca53dc56811be01.tar.bz2 |
Change compression tests reference files to use masking for compression ratios (#4083)
Rework TEST_FILTER tests to handle slightly different compression ratios
Diffstat (limited to 'HDF5Examples')
-rw-r--r-- | HDF5Examples/config/cmake/runTest.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/HDF5Examples/config/cmake/runTest.cmake b/HDF5Examples/config/cmake/runTest.cmake index 3507c34..cc433b1 100644 --- a/HDF5Examples/config/cmake/runTest.cmake +++ b/HDF5Examples/config/cmake/runTest.cmake @@ -167,7 +167,7 @@ if (TEST_FIND_RESULT GREATER -1) endif () # if the output file needs Storage text removed -if (TEST_MASK) +if (TEST_MASK_STORE) file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) string (REGEX REPLACE "Storage:[^\n]+\n" "Storage: <details removed for portability>\n" TEST_STREAM "${TEST_STREAM}") file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} "${TEST_STREAM}") @@ -205,6 +205,13 @@ if (TEST_MASK_ERROR) endif () # remove text from the output file +if (TEST_MASK) + file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) + string (REGEX REPLACE "${TEST_MASK}" "" TEST_STREAM "${TEST_STREAM}") + file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} "${TEST_STREAM}") +endif () + +# replace text from the output file if (TEST_FILTER) file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) string (REGEX REPLACE "${TEST_FILTER}" "${TEST_FILTER_REPLACE}" TEST_STREAM "${TEST_STREAM}") |