1#!/bin/sh 2 3if test "x$srcdir" = x ; then srcdir=`pwd`; fi 4. ../test_common.sh 5 6# This shell script runs an ncgen buf in handling character _Fillvalue. 7set -e 8echo "" 9echo "*** Testing char _Fillvalue bug fix." 10 11# echo "*** Create tst_charfill.nc from tst_charfill.cdl..." 12rm -f tst_charfill.nc tmp_tst_charfill.cdl 13${NCGEN} -b -o tst_charfill.nc $srcdir/tst_charfill.cdl 14# echo "*** dumping tst_charfill.nc to tmp_tst_charfill.cdl..." 15${NCDUMP} tst_charfill.nc > tmp_tst_charfill.cdl 16# echo "*** comparing tmp_tst_charfill.cdl with ref_tst_charfill.cdl..." 17diff -b tmp_tst_charfill.cdl $srcdir/ref_tst_charfill.cdl 18 19echo "*** All char _Fillvalue bug test for netCDF-4 format passed!" 20exit 0 21