netcdf-c/nc_test4/tst_szip.sh

30 lines
557 B
Bash
Raw Normal View History

2017-08-29 04:56:01 +08:00
#!/bin/sh
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh
set -e
rm -f testnc.h5 testszip.nc szip_dump.cdl
echo "*** Test read of known szip file"
${NCDUMP} ${srcdir}/ref_szip.h5 >szip_dump.cdl
diff -w ${srcdir}/ref_szip.cdl ./szip_dump.cdl
2017-08-29 08:11:24 +08:00
2017-08-29 04:56:01 +08:00
echo "*** Testing tst_szip "
2017-08-30 08:05:46 +08:00
${execdir}/test_szip
2017-08-29 04:56:01 +08:00
echo "***Passed"
echo "*** Testing h5testszip "
2017-08-30 08:05:46 +08:00
${execdir}/h5testszip
2017-08-29 04:56:01 +08:00
echo "***Passed"
echo "*** Testing h5testszip on testszip.nc"
2017-08-30 08:05:46 +08:00
${execdir}/h5testszip ./testszip.nc
2017-08-29 04:56:01 +08:00
echo "***Passed"
2017-08-29 08:11:24 +08:00
rm -f testnc.h5 testszip.nc
rm -f szip_dump.cdl
2017-08-29 04:56:01 +08:00
2017-08-29 08:11:24 +08:00
exit