From 9ddb68e9f3c6ed2958f4d91942fadb6bb1876929 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Thu, 20 Jul 2006 14:24:48 -0500 Subject: [svn-r12486] added some tests to the h5copy shell script tested: shanti, mir --- tools/h5copy/testh5copy.sh | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/tools/h5copy/testh5copy.sh b/tools/h5copy/testh5copy.sh index c755503..4570341 100644 --- a/tools/h5copy/testh5copy.sh +++ b/tools/h5copy/testh5copy.sh @@ -13,6 +13,11 @@ # access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. # # Tests for the h5copy tool +# +# Pedro Vicente Nunes +# pvn@hdfgroup.org +# Thursday, July 20, 2006 +# H5COPY=h5copy # The tool name H5COPY_BIN=`pwd`/$H5COPY # The path of the tool binary @@ -38,7 +43,18 @@ TESTING() { TOOLTEST() { - TESTING $H5COPY $@ + TESTING $H5COPY $@ + ( + cd $srcdir/../testfiles + $RUNSERIAL $H5COPY_BIN $@ + ) > output.out + RET=$? + if [ $RET != 0 ] ; then + echo "*FAILED*" + nerrors="`expr $nerrors + 1`" + else + echo " PASSED" + fi } @@ -54,11 +70,13 @@ TOOLTEST() { ############################################################################## -#TOOLTEST -v test1.h5/array test1.out.h5/array +TOOLTEST -v test1.h5/array test1.out.h5/array +TOOLTEST -v test1.h5/integer test1.out.h5/integer_copy +TOOLTEST -v test1.h5/g1 test1.out.h5/g1 -#if test $nerrors -eq 0 ; then -# echo "All h5copy tests passed." -#fi +if test $nerrors -eq 0 ; then + echo "All h5copy tests passed." +fi -#exit $nerrors +exit $nerrors -- cgit v0.12