mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Update CMake scripts
This commit is contained in:
parent
85f6c4cc08
commit
081f6eae22
@ -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 ""
|
||||
|
@ -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 ""
|
||||
|
@ -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."
|
||||
|
@ -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 ""
|
||||
|
@ -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."
|
||||
|
@ -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 ""
|
||||
|
@ -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"
|
||||
|
@ -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`;
|
||||
|
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user