diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-12-16 16:41:20 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-12-16 16:41:20 (GMT) |
commit | 7f3b32385c5331ebb792474abbdbe1aace3c2e94 (patch) | |
tree | e3b56955904f2c4b115f589cce01865639297f28 /tools/test/h5ls/CMakeTests.cmake | |
parent | f45cd3aec4ec5394f8ca683ab191f5f3ebeb9934 (diff) | |
download | hdf5-7f3b32385c5331ebb792474abbdbe1aace3c2e94.zip hdf5-7f3b32385c5331ebb792474abbdbe1aace3c2e94.tar.gz hdf5-7f3b32385c5331ebb792474abbdbe1aace3c2e94.tar.bz2 |
HDFFV-10053: add check for zlib support before running test
Diffstat (limited to 'tools/test/h5ls/CMakeTests.cmake')
-rw-r--r-- | tools/test/h5ls/CMakeTests.cmake | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/tools/test/h5ls/CMakeTests.cmake b/tools/test/h5ls/CMakeTests.cmake index e7a5dd6..a66ae40 100644 --- a/tools/test/h5ls/CMakeTests.cmake +++ b/tools/test/h5ls/CMakeTests.cmake @@ -261,6 +261,19 @@ set (last_test "H5LS-clearall-objects") endif (HDF5_ENABLE_USING_MEMCHECKER) +# See which filters are usable (and skip tests for filters we +# don't have). Do this by searching H5pubconf.h to see which +# filters are defined. + +# detect whether the encoder is present. + if (H5_HAVE_FILTER_DEFLATE) + set (USE_FILTER_DEFLATE "true") + endif (H5_HAVE_FILTER_DEFLATE) + + if (H5_HAVE_FILTER_SZIP) + set (USE_FILTER_SZIP "true") + endif (H5_HAVE_FILTER_SZIP) + # test the help syntax ADD_H5_TEST (help-1 0 -w80 -h) ADD_H5_TEST (help-2 0 -w80 --help) @@ -392,6 +405,8 @@ endif (H5_WORDS_BIGENDIAN) # test for file with datasets that use Fixed Array chunk indices -#echo "***skip testing tdset_idx.h5" -ADD_H5_TEST (tdset_idx 0 -w80 -d tdset_idx.h5) - + if (USE_FILTER_DEFLATE) + # data read internal filters + ADD_H5_TEST (tdset_idx 0 -w80 -d tdset_idx.h5) + endif (USE_FILTER_DEFLATE) + |