mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-09 07:32:32 +08:00
Adjust filter available variables
This commit is contained in:
parent
4f9e47650a
commit
5cd93e70c0
@ -807,17 +807,17 @@
|
||||
# filters are defined.
|
||||
|
||||
# detect whether the encoder is present.
|
||||
set (USE_FILTER_SZIP_ENCODER "no")
|
||||
# set (USE_FILTER_SZIP_ENCODER 0)
|
||||
if (HDF5_ENABLE_SZIP_ENCODING)
|
||||
set (USE_FILTER_SZIP_ENCODER ${testh5repack_detect_szip})
|
||||
endif ()
|
||||
|
||||
if (H5_HAVE_FILTER_DEFLATE)
|
||||
set (USE_FILTER_DEFLATE "true")
|
||||
set (USE_FILTER_DEFLATE 1)
|
||||
endif ()
|
||||
|
||||
if (H5_HAVE_FILTER_SZIP)
|
||||
set (USE_FILTER_SZIP "true")
|
||||
set (USE_FILTER_SZIP 1)
|
||||
endif ()
|
||||
|
||||
# copy files (these files have no filters)
|
||||
@ -856,17 +856,21 @@
|
||||
# szip with individual object
|
||||
set (arg ${FILE4} -f dset2:SZIP=8,EC -l dset2:CHUNK=20x10)
|
||||
set (TESTTYPE "TEST")
|
||||
if (NOT USE_FILTER_SZIP_ENCODER OR NOT USE_FILTER_SZIP)
|
||||
if (NOT USE_FILTER_SZIP_ENCODER)
|
||||
if (NOT USE_FILTER_SZIP)
|
||||
set (TESTTYPE "SKIP")
|
||||
endif ()
|
||||
endif ()
|
||||
ADD_H5_TEST (szip_individual ${TESTTYPE} ${arg})
|
||||
|
||||
# szip for all
|
||||
set (arg ${FILE4} -f SZIP=8,NN)
|
||||
set (TESTTYPE "TEST")
|
||||
if (NOT USE_FILTER_SZIP_ENCODER OR NOT USE_FILTER_SZIP)
|
||||
if (NOT USE_FILTER_SZIP_ENCODER)
|
||||
if (NOT USE_FILTER_SZIP)
|
||||
set (TESTTYPE "SKIP")
|
||||
endif ()
|
||||
endif ()
|
||||
ADD_H5_TEST (szip_all ${TESTTYPE} ${arg})
|
||||
|
||||
# shuffle with individual object
|
||||
@ -888,9 +892,11 @@
|
||||
# all filters
|
||||
set (arg ${FILE4} -f dset2:SHUF -f dset2:FLET -f dset2:SZIP=8,NN -f dset2:GZIP=1 -l dset2:CHUNK=20x10)
|
||||
set (TESTTYPE "TEST")
|
||||
if (NOT USE_FILTER_SZIP_ENCODER OR NOT USE_FILTER_SZIP OR NOT USE_FILTER_DEFLATE)
|
||||
if (NOT USE_FILTER_SZIP_ENCODER)
|
||||
if (NOT USE_FILTER_SZIP OR NOT USE_FILTER_DEFLATE)
|
||||
set (TESTTYPE "SKIP")
|
||||
endif ()
|
||||
endif ()
|
||||
ADD_H5_TEST (all_filters ${TESTTYPE} ${arg})
|
||||
|
||||
# verbose gzip with individual object
|
||||
@ -908,17 +914,21 @@
|
||||
# szip copy
|
||||
set (arg ${FILE7})
|
||||
set (TESTTYPE "TEST")
|
||||
if (NOT USE_FILTER_SZIP_ENCODER OR NOT USE_FILTER_SZIP)
|
||||
if (NOT USE_FILTER_SZIP_ENCODER)
|
||||
if (NOT USE_FILTER_SZIP)
|
||||
set (TESTTYPE "SKIP")
|
||||
endif ()
|
||||
endif ()
|
||||
ADD_H5_TEST (szip_copy ${TESTTYPE} ${arg})
|
||||
|
||||
# szip remove
|
||||
set (arg ${FILE7} --filter=dset_szip:NONE)
|
||||
set (TESTTYPE "TEST")
|
||||
if (NOT USE_FILTER_SZIP_ENCODER OR NOT USE_FILTER_SZIP)
|
||||
if (NOT USE_FILTER_SZIP_ENCODER)
|
||||
if (NOT USE_FILTER_SZIP)
|
||||
set (TESTTYPE "SKIP")
|
||||
endif ()
|
||||
endif ()
|
||||
ADD_H5_TEST (szip_remove ${TESTTYPE} ${arg})
|
||||
|
||||
# deflate copy
|
||||
@ -980,24 +990,30 @@
|
||||
# remove all filters
|
||||
set (arg ${FILE11} -f NONE)
|
||||
set (TESTTYPE "TEST")
|
||||
if (NOT USE_FILTER_DEFLATE OR NOT USE_FILTER_SZIP OR NOT USE_FILTER_SZIP_ENCODER)
|
||||
if (NOT USE_FILTER_SZIP_ENCODER)
|
||||
if (NOT USE_FILTER_SZIP OR NOT USE_FILTER_DEFLATE)
|
||||
set (TESTTYPE "SKIP")
|
||||
endif ()
|
||||
endif ()
|
||||
ADD_H5_TEST (remove_all ${TESTTYPE} ${arg})
|
||||
|
||||
#filter conversions
|
||||
set (arg ${FILE8} -f dset_deflate:SZIP=8,NN)
|
||||
set (TESTTYPE "TEST")
|
||||
if (NOT USE_FILTER_SZIP_ENCODER OR NOT USE_FILTER_SZIP OR NOT USE_FILTER_DEFLATE)
|
||||
if (NOT USE_FILTER_SZIP_ENCODER)
|
||||
if (NOT USE_FILTER_SZIP OR NOT USE_FILTER_DEFLATE)
|
||||
set (TESTTYPE "SKIP")
|
||||
endif ()
|
||||
endif ()
|
||||
ADD_H5_TEST (deflate_convert ${TESTTYPE} ${arg})
|
||||
|
||||
set (arg ${FILE7} -f dset_szip:GZIP=1)
|
||||
set (TESTTYPE "TEST")
|
||||
if (NOT USE_FILTER_SZIP OR NOT USE_FILTER_SZIP_ENCODER OR NOT USE_FILTER_DEFLATE)
|
||||
if (NOT USE_FILTER_SZIP_ENCODER)
|
||||
if (NOT USE_FILTER_SZIP OR NOT USE_FILTER_DEFLATE)
|
||||
set (TESTTYPE "SKIP")
|
||||
endif ()
|
||||
endif ()
|
||||
ADD_H5_TEST (szip_convert ${TESTTYPE} ${arg})
|
||||
|
||||
#limit
|
||||
|
Loading…
Reference in New Issue
Block a user