2010-06-03 21:24:43 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# This shell script runs an ncdump bug test for netcdf-4
|
|
|
|
# $Id: tst_fillbug.sh,v 1.1 2008/10/02 19:49:52 russ Exp $
|
|
|
|
|
|
|
|
set -e
|
2015-04-21 03:08:26 +08:00
|
|
|
if test "x$srcdir" = "x"; then
|
|
|
|
srcdir=`dirname $0`;
|
|
|
|
fi
|
|
|
|
export srcdir
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
echo ""
|
|
|
|
echo "*** Running ncdump bug test."
|
|
|
|
|
2012-06-13 05:50:02 +08:00
|
|
|
# echo "*** dumping tst_fillbug.nc to tst_fillbug.cdl..."
|
2010-06-03 21:24:43 +08:00
|
|
|
./ncdump tst_fillbug.nc > tst_fillbug.cdl
|
2012-06-13 05:50:02 +08:00
|
|
|
# echo "*** comparing tst_fillbug.cdl with ref_tst_fillbug.cdl..."
|
2012-05-09 03:36:27 +08:00
|
|
|
diff -b tst_fillbug.cdl $srcdir/ref_tst_fillbug.cdl
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
echo "*** All ncdump bug test output for netCDF-4 format passed!"
|
|
|
|
exit 0
|