netcdf-c/ncdump/tst_charfill.sh

18 lines
685 B
Bash
Raw Normal View History

2011-12-13 11:08:56 +08:00
#!/bin/sh
2015-11-20 04:44:07 +08:00
if test "x$SETX" = x1 ; then echo "file=$0"; set -x ; fi
2011-12-13 11:08:56 +08:00
# This shell script runs an ncgen buf in handling character _Fillvalue.
set -e
echo ""
echo "*** Testing char _Fillvalue bug fix."
2011-12-13 11:08:56 +08:00
# echo "*** Create tst_charfill.nc from tst_charfill.cdl..."
2011-12-13 11:08:56 +08:00
rm -f tst_charfill.nc tmp_tst_charfill.cdl
2011-12-14 07:16:16 +08:00
../ncgen/ncgen -b -o tst_charfill.nc $srcdir/tst_charfill.cdl
# echo "*** dumping tst_charfill.nc to tmp_tst_charfill.cdl..."
2011-12-13 11:08:56 +08:00
./ncdump tst_charfill.nc > tmp_tst_charfill.cdl
# echo "*** comparing tmp_tst_charfill.cdl with ref_tst_charfill.cdl..."
diff -b tmp_tst_charfill.cdl $srcdir/ref_tst_charfill.cdl
2011-12-13 11:08:56 +08:00
echo "*** All char _Fillvalue bug test for netCDF-4 format passed!"
exit 0