diff options
Diffstat (limited to 'tools/h5dump/testh5dump.sh.in')
-rw-r--r-- | tools/h5dump/testh5dump.sh.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tools/h5dump/testh5dump.sh.in b/tools/h5dump/testh5dump.sh.in index a147b45..7776b62 100644 --- a/tools/h5dump/testh5dump.sh.in +++ b/tools/h5dump/testh5dump.sh.in @@ -23,6 +23,9 @@ USE_FILTER_FLETCHER32="@USE_FILTER_FLETCHER32@" USE_FILTER_NBIT="@USE_FILTER_NBIT@" USE_FILTER_SCALEOFFSET="@USE_FILTER_SCALEOFFSET@" +# Determine if H5dump packed bits feature is included +Have_Packed_Bits="@PACKED_BITS@" + TESTNAME=h5dump EXIT_SUCCESS=0 EXIT_FAILURE=1 @@ -329,7 +332,11 @@ TOOLTEST tchar1.ddl -r tchar.h5 # test failure handling # Missing file name -TOOLTEST tnofilename.ddl +if test "$Have_Packed_Bits" = "yes"; then + TOOLTEST tnofilename-with-packed-bits.ddl +else + TOOLTEST tnofilename.ddl +fi # rev. 2004 @@ -512,6 +519,16 @@ TOOLTEST textlinksrc.ddl textlinksrc.h5 TOOLTEST textlinkfar.ddl textlinkfar.h5 +# test for dataset packed bits +if test "$Have_Packed_Bits" = "yes"; then + TOOLTEST tpackedbits.ddl -d /dset1 -M 0,2 tdset.h5 + TOOLTEST tpackedbits2.ddl -d /dset1 -M 0,2,2,1 tdset.h5 +else + SKIP tpackedbits.ddl -d /dset1 -M 0,2 tdset.h5 + SKIP tpackedbits2.ddl -d /dset1 -M 0,2,2,1 tdset.h5 +fi + + if test $nerrors -eq 0 ; then echo "All $TESTNAME tests passed." exit $EXIT_SUCCESS |