1#!/bin/sh
2
3if test "x$srcdir" = x ; then srcdir=`pwd`; fi
4. ../test_common.sh
5
6# This shell script runs ncdump to verify scalar attribute and variable output
7
8set -e
9echo ""
10echo "*** Running ncdump scalar test."
11
12${execdir}/tst_h_scalar
13# echo "*** dumping tst_h_scalar.nc to tst_h_scalar.cdl..."
14${NCDUMP} tst_h_scalar.nc > tst_h_scalar.cdl
15# echo "*** comparing tst_h_scalar.cdl with ref_tst_h_scalar.cdl..."
16diff -b tst_h_scalar.cdl $srcdir/cdl/ref_tst_h_scalar.cdl
17
18echo "*** All ncdump scalar test output for netCDF-4 format passed!"
19exit 0
20
21