netcdf-c/ncdump/tst_netcdf4_4.sh
Russ Rew 79cde861ac Delete obsolete libdiskless directory, replaced by new diskless
implementation.  Deleted obsolete win32, soon to be replaced by Ward's
Windows 32- and 64-bit fixes for building with MSYS/MinGW.  Made
cosmetic cleanup to output of "make check" to make it easier for users
to interpret.  Fixed bug NCF-175: ncdump -t incorrectly interpreting
units attribute (such as "days") without a base time (such as "since
2007-01-01") as a time unit.

Changed name to 4.2.1-beta.
2012-06-12 21:50:02 +00:00

31 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
# This shell script runs extra tests ncdump for netcdf-4
# $Id: tst_netcdf4_4.sh,v 1.13 2009/05/06 14:51:52 ed Exp $
set -e
echo ""
echo "*** Running extra netcdf-4 tests."
echo "*** dumping tst_string_data.nc to tst_string_data.cdl..."
./ncdump tst_string_data.nc > tst_string_data.cdl
echo "*** comparing tst_string_data.cdl with ref_tst_string_data.cdl..."
diff tst_string_data.cdl $srcdir/ref_tst_string_data.cdl
#echo '*** testing non-coordinate variable of same name as dimension...'
#../ncgen/ncgen -v4 -b -o tst_noncoord.nc $srcdir/ref_tst_noncoord.cdl
echo '*** testing reference file ref_tst_compounds2.nc...'
./ncdump $srcdir/ref_tst_compounds2.nc > tst_compounds2.cdl
diff tst_compounds2.cdl $srcdir/ref_tst_compounds2.cdl
echo '*** testing reference file ref_tst_compounds3.nc...'
./ncdump $srcdir/ref_tst_compounds3.nc > tst_compounds3.cdl
diff tst_compounds3.cdl $srcdir/ref_tst_compounds3.cdl
echo '*** testing reference file ref_tst_compounds4.nc...'
./ncdump $srcdir/ref_tst_compounds4.nc > tst_compounds4.cdl
diff tst_compounds4.cdl $srcdir/ref_tst_compounds4.cdl
echo "*** All ncgen and ncdump extra test output for netCDF-4 format passed!"
exit 0