netcdf-c/ncgen3/run_nc4_tests.sh

18 lines
458 B
Bash
Raw Normal View History

2010-06-03 21:24:43 +08:00
#!/bin/sh
# This shell script runs the ncdump tests.
# $Id: run_nc4_tests.sh,v 1.3 2009/09/24 18:19:10 dmh Exp $
2015-08-16 06:26:35 +08:00
if test "x$srcdir" = x ; then
srcdir=`pwd`
fi
2010-06-03 21:24:43 +08:00
echo "*** Testing ncgen3 for netCDF-4."
set -e
echo "*** creating netCDF-4 file c0_4.nc from c0.cdl..."
./ncgen3 -k3 -b -o c0_4.nc $srcdir/c0.cdl
echo "*** creating netCDF-4 classic model file c0_4c.nc from c0.cdl..."
./ncgen3 -k4 -b -o c0_4c.nc $srcdir/c0.cdl
echo "*** Test successful!"
exit 0