Update CMake scripts

This commit is contained in:
Ward Fisher 2012-08-10 19:31:45 +00:00
parent 85f6c4cc08
commit 081f6eae22
9 changed files with 114 additions and 0 deletions

View File

@ -1,5 +1,17 @@
#!/bin/sh
# This shell script runs the backward compatibility tests.
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
set -e
echo ""

View File

@ -1,6 +1,18 @@
#!/bin/sh
# This shell script runs ncdump tests relating to the new UTF8 name stuff.
# $Id:$
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
set -e
echo ""

View File

@ -1,6 +1,18 @@
#!/bin/sh
# This shell script runs the ncdump tests.
# $Id: tst_64bit.sh,v 1.9 2006/03/04 18:50:15 ed 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 ""
echo "*** Testing ncgen and ncdump with 64-bit offset format."

View File

@ -1,6 +1,18 @@
#!/bin/sh
# This shell script tests ncdump -t option for CF calendar attributes
# $Id $
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
set -e
echo ""

View File

@ -1,5 +1,19 @@
#!/bin/sh
# This shell script runs an ncgen buf in handling character _Fillvalue.
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
set -e
echo ""
echo "*** Testing char _Fillvalue bug fix."

View File

@ -2,6 +2,18 @@
# This shell script tests ncdump -g option for specifying groups for
# which data is to be output.
# $Id$
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
set -e
echo ""

View File

@ -32,6 +32,20 @@
# chmod +x ./test-len.sh
# cc -g -o rewrite-scalar -I../libsrc rewrite-scalar.c -L../libsrc -lnetcdf
# echo "netcdf small {variables: byte t; data: t = 1;}" > small.cdl
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
set -e
echo ""
echo "*** testing length of classic file"

View File

@ -1,6 +1,20 @@
#!/bin/sh
# For a netCDF-3 build, test nccopy on netCDF files in this directory
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
set -e
if test "x$srcdir" = "x"; then
srcdir=`dirname $0`;

View File

@ -1,6 +1,18 @@
#!/bin/sh
# This shell script tests the output several previous tests.
# $Id: tst_output.sh,v 1.17 2010/05/14 16:21:15 ed 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 ""
echo "*** Testing ncgen and ncdump test output for classic format."