netcdf-c/ncdump/tst_charfill.sh

19 lines
599 B
Bash
Raw Normal View History

2011-12-13 11:08:56 +08:00
#!/bin/sh
# This shell script runs an ncgen buf in handling character _Fillvalue.
set -e
echo ""
echo "*** Running char _Fillvalue bug test."
echo "*** Create tst_charfill.nc from tst_charfill.cdl..."
rm -f tst_charfill.nc tmp_tst_charfill.cdl
../ncgen/ncgen -b tst_charfill.cdl
echo "*** dumping tst_charfill.nc to tmp_tst_charfill.cdl..."
./ncdump tst_charfill.nc > tmp_tst_charfill.cdl
echo "*** comparing tmp_tst_charfill.cdl with ref_tst_charfill.cdl..."
diff tmp_tst_charfill.cdl $srcdir/ref_tst_charfill.cdl
echo
echo "*** All char _Fillvalue bug test for netCDF-4 format passed!"
exit 0