File: tst_charfill.sh

package info (click to toggle)
netcdf-parallel 1%3A4.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 101,668 kB
  • sloc: ansic: 200,241; sh: 10,807; yacc: 2,522; makefile: 1,306; lex: 1,153; xml: 173; awk: 2
file content (20 lines) | stat: -rwxr-xr-x 693 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

if test "x$srcdir" = x ; then srcdir=`pwd`; fi 
. ../test_common.sh

# This shell script runs an ncgen buf in handling character _Fillvalue.
set -e
echo ""
echo "*** Testing char _Fillvalue bug fix."

# echo "*** Create tst_charfill.nc from tst_charfill.cdl..."
rm -f tst_charfill.nc tmp_tst_charfill.cdl
${NCGEN} -b -o tst_charfill.nc $srcdir/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 -b tmp_tst_charfill.cdl $srcdir/ref_tst_charfill.cdl

echo "*** All char _Fillvalue  bug test for netCDF-4 format passed!"
exit 0