summaryrefslogtreecommitdiffstats
path: root/hl/tools/gif2h5/h52giftest.sh
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2007-04-02 20:47:29 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2007-04-02 20:47:29 (GMT)
commit5b02211e762bad3ab6037aef314000ddc0bd81a5 (patch)
tree197d2860eacc257cf97cdd0bae73a9503571014c /hl/tools/gif2h5/h52giftest.sh
parent104e1cd848e26eda1c774937c3beb38ff5861fd8 (diff)
downloadhdf5-5b02211e762bad3ab6037aef314000ddc0bd81a5.zip
hdf5-5b02211e762bad3ab6037aef314000ddc0bd81a5.tar.gz
hdf5-5b02211e762bad3ab6037aef314000ddc0bd81a5.tar.bz2
[svn-r13574]
bug fix check if a palette is to be linked and correct wrong calls in some functions with missing arguments
Diffstat (limited to 'hl/tools/gif2h5/h52giftest.sh')
-rw-r--r--hl/tools/gif2h5/h52giftest.sh24
1 files changed, 20 insertions, 4 deletions
diff --git a/hl/tools/gif2h5/h52giftest.sh b/hl/tools/gif2h5/h52giftest.sh
index fa439aa..1300f03 100644
--- a/hl/tools/gif2h5/h52giftest.sh
+++ b/hl/tools/gif2h5/h52giftest.sh
@@ -15,7 +15,8 @@
#
# HDF Utilities Test script
-TESTFILE="$srcdir/../testfiles/h52giftst.h5"
+TESTFILE1="$srcdir/../testfiles/h52giftst.h5"
+TESTFILE2="$srcdir/../testfiles/image1.gif"
# initialize errors variable
errors=0
@@ -25,7 +26,7 @@ TESTING() {
echo "Testing $* $SPACES" | cut -c1-70 | tr -d '\012'
}
-TOOLTEST()
+TOOLTEST1()
{
err=0
$RUNSERIAL ./h52gif $*
@@ -38,10 +39,25 @@ else
fi
}
+TOOLTEST2()
+{
+err=0
+$RUNSERIAL ./gif2h5 $*
+
+if [ $err -eq 1 ]; then
+errors="` expr $errors + 1 `";
+ echo "*FAILED*"
+else
+ echo " PASSED"
+fi
+}
+
-TESTING "h52giftst.h5 image1.gif -i 12345678 -p palette" ;
-TOOLTEST $TESTFILE image1.gif -i 12345678 -p palette
+TESTING "./h52gif h52giftst.h5 image1.gif -i 12345678 -p palette"
+TOOLTEST1 $TESTFILE1 image1.gif -i 12345678 -p palette
+TESTING "./gif2h5 image1.gif image1.h5"
+TOOLTEST2 $TESTFILE2 image1.h5
exit $errors