2013-07-11 05:07:53 +08:00
|
|
|
#!/bin/sh
|
2017-03-09 08:01:10 +08:00
|
|
|
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
|
|
|
|
2013-07-11 05:07:53 +08:00
|
|
|
# This shell script runs ncdump to verify scalar attribute and variable output
|
|
|
|
|
|
|
|
set -e
|
|
|
|
echo ""
|
|
|
|
echo "*** Running ncdump scalar test."
|
|
|
|
|
|
|
|
# echo "*** dumping tst_h_scalar.nc to tst_h_scalar.cdl..."
|
2017-03-09 08:01:10 +08:00
|
|
|
${NCDUMP} tst_h_scalar.nc > tst_h_scalar.cdl
|
2013-07-11 05:07:53 +08:00
|
|
|
# echo "*** comparing tst_h_scalar.cdl with ref_tst_h_scalar.cdl..."
|
2014-09-19 08:26:06 +08:00
|
|
|
diff -b tst_h_scalar.cdl $srcdir/cdl/ref_tst_h_scalar.cdl
|
2013-07-11 05:07:53 +08:00
|
|
|
|
|
|
|
echo "*** All ncdump scalar test output for netCDF-4 format passed!"
|
|
|
|
exit 0
|
|
|
|
|