From 4899c9ab47b3e543a40dee3729a31c54807f0e9f Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Tue, 27 Feb 2018 18:04:29 -0600 Subject: Misc improvement Description: - Added test file for h5repack test VERIFY_INVALIDBOUNDS - Updated MANIFEST - Removed unnecessary header file in test - Update h5repack script to copy the new file to the test location Platforms tested: Linux/64 (jelly) Darwin (osx1010test) --- MANIFEST | 1 + test/dtypes.c | 1 - tools/test/h5repack/h5repack.sh.in | 4 +++- tools/test/h5repack/testfiles/bounds_latest_latest.h5 | Bin 0 -> 82048 bytes 4 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 tools/test/h5repack/testfiles/bounds_latest_latest.h5 diff --git a/MANIFEST b/MANIFEST index 8e79458..fba4fa8 100644 --- a/MANIFEST +++ b/MANIFEST @@ -2441,6 +2441,7 @@ #test files for h5repack ./tools/test/h5repack/testfiles/README +./tools/test/h5repack/testfiles/bounds_latest_latest.h5 ./tools/test/h5repack/testfiles/h5repack_aggr.h5 ./tools/test/h5repack/testfiles/h5repack_attr.h5 ./tools/test/h5repack/testfiles/h5repack_attr_refs.h5 diff --git a/test/dtypes.c b/test/dtypes.c index e480682..e98f6be 100644 --- a/test/dtypes.c +++ b/test/dtypes.c @@ -18,7 +18,6 @@ * Purpose: Tests the datatype interface (H5T) */ -#include "h5test.h" #include "testhdf5.h" #include "H5srcdir.h" #include "H5Iprivate.h" /* For checking that datatype id's don't leak */ diff --git a/tools/test/h5repack/h5repack.sh.in b/tools/test/h5repack/h5repack.sh.in index a34b75c..b0a2f99 100644 --- a/tools/test/h5repack/h5repack.sh.in +++ b/tools/test/h5repack/h5repack.sh.in @@ -82,6 +82,7 @@ test -d $TESTDIR || mkdir $TESTDIR # Comment '#' without space can be used. # -------------------------------------------------------------------- LIST_HDF5_TEST_FILES=" +$SRC_H5REPACK_TESTFILES/bounds_latest_latest.h5 $SRC_H5REPACK_TESTFILES/h5repack_attr.h5 $SRC_H5REPACK_TESTFILES/h5repack_attr_refs.h5 $SRC_H5REPACK_TESTFILES/h5repack_deflate.h5 @@ -534,7 +535,6 @@ VERIFY_SUPERBLOCK() ( cd $TESTDIR $RUNSERIAL $H5REPACK_BIN -j $lowbound -k $highbound $infile $outfile -echo "$RUNSERIAL $H5REPACK_BIN -j $lowbound -k $highbound $infile $outfile" ) RET=$? if [ $RET != 0 ] ; then @@ -575,6 +575,8 @@ VERIFY_INVALIDBOUNDS() infile=$3 outfile=out-verbounds-low$lowbound-high$highbound.$infile + #-------------------------------------- + # check for failure with invalid bounds TESTING $H5REPACK $@ ( cd $TESTDIR diff --git a/tools/test/h5repack/testfiles/bounds_latest_latest.h5 b/tools/test/h5repack/testfiles/bounds_latest_latest.h5 new file mode 100644 index 0000000..6e8bcad Binary files /dev/null and b/tools/test/h5repack/testfiles/bounds_latest_latest.h5 differ -- cgit v0.12