mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-05 16:20:10 +08:00
27 lines
629 B
Bash
Executable File
27 lines
629 B
Bash
Executable File
#!/bin/sh
|
|
# This shell script runs the ncgen tests.
|
|
# $Id: run_tests.sh,v 1.10 2010/04/04 22:06:03 dmh Exp $
|
|
|
|
srcdir=`dirname $0`
|
|
cd $srcdir
|
|
srcdir=`pwd`
|
|
|
|
# compute the build directory
|
|
builddir=`pwd`/..
|
|
# Hack for CYGWIN
|
|
cd $srcdir
|
|
if [ `uname | cut -d "_" -f 1` = "MINGW32" ]; then
|
|
srcdir=`pwd | sed 's/\/c\//c:\//g'`
|
|
builddir="$srcdir"/..
|
|
fi
|
|
|
|
echo "*** Testing ncgen."
|
|
set -e
|
|
echo "*** creating classic file c0.nc from c0.cdl..."
|
|
./ncgen -b -o c0.nc $srcdir/c0.cdl
|
|
echo "*** creating 64-bit offset file c0_64.nc from c0.cdl..."
|
|
./ncgen -k 64-bit-offset -b -o c0_64.nc $srcdir/c0.cdl
|
|
|
|
echo "*** Test successful!"
|
|
exit 0
|