[svn-r15052] Add a test for the 1.6.7 -i infile -o outifle for backward compability

Used the function TOOLTEST  from 1.6.7

Tested: linux
This commit is contained in:
Pedro Vicente Nunes 2008-05-21 09:53:53 -05:00
parent e0e2b131ea
commit 0c40ae2d42

View File

@ -137,6 +137,34 @@ TOOLTEST()
rm -f $outfile rm -f $outfile
} }
TOOLTEST0()
{
# Run test.
# Tflops interprets "$@" as "" when no parameter is given (e.g., the
# case of missing file name). Changed it to use $@ till Tflops fixes it.
TESTING $H5REPACK $@
infile=$srcdir/../testfiles/$1
path=`pwd`
outfile=$path/out.$1
shift
if [ "`uname -s`" = "TFLOPS O/S" ]; then
$RUNSERIAL $H5REPACK_BIN -i $infile -o $outfile $@
else
$RUNSERIAL $H5REPACK_BIN -i $infile -o $outfile "$@"
fi
RET=$?
if [ $RET != 0 ] ; then
echo "*FAILED*"
nerrors="`expr $nerrors + 1`"
else
echo " PASSED"
DIFFTEST $infile $outfile
fi
rm -f $outfile
}
# #
# The tests # The tests
# We use the files generated by h5repacktst # We use the files generated by h5repacktst
@ -453,6 +481,15 @@ else
TOOLTEST $arg TOOLTEST $arg
fi fi
# syntax of -i infile -o outfile
# latest file format with short switches. use FILE4=h5repack_layout.h5 (no filters)
arg="$FILE4 -l CHUNK=20x10 -f GZIP=1 -m 10 -n -L -c 8 -d 6 -s 8[:dtype]"
if test $USE_FILTER_DEFLATE != "yes" ; then
SKIP $arg
else
TOOLTEST0 $arg
fi
if test $nerrors -eq 0 ; then if test $nerrors -eq 0 ; then
echo "All $H5REPACK tests passed." echo "All $H5REPACK tests passed."