2011-12-13 11:08:56 +08:00
|
|
|
#!/bin/sh
|
2017-03-09 08:01:10 +08:00
|
|
|
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
|
|
|
|
2011-12-13 11:08:56 +08:00
|
|
|
# This shell script runs an ncgen buf in handling character _Fillvalue.
|
|
|
|
set -e
|
|
|
|
echo ""
|
2012-06-13 05:50:02 +08:00
|
|
|
echo "*** Testing char _Fillvalue bug fix."
|
2011-12-13 11:08:56 +08:00
|
|
|
|
2012-06-13 05:50:02 +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
|
2017-03-09 08:01:10 +08:00
|
|
|
${NCGEN} -b -o tst_charfill.nc $srcdir/tst_charfill.cdl
|
2012-06-13 05:50:02 +08:00
|
|
|
# echo "*** dumping tst_charfill.nc to tmp_tst_charfill.cdl..."
|
2017-03-09 08:01:10 +08:00
|
|
|
${NCDUMP} tst_charfill.nc > tmp_tst_charfill.cdl
|
2012-06-13 05:50:02 +08:00
|
|
|
# echo "*** comparing tmp_tst_charfill.cdl with ref_tst_charfill.cdl..."
|
2012-05-09 03:36:27 +08:00
|
|
|
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
|