netcdf-c/ncdap_test/tst_nocache3.sh

30 lines
677 B
Bash
Raw Normal View History

2010-06-03 21:24:43 +08:00
#!/bin/sh
set -e
2010-06-03 21:24:43 +08:00
# if this is part of a distcheck action, then this script
# will be executed in a different directory
# than the one containing it; so capture the path to this script
# as the location of the source directory.
if test "x$topsrcdir" != x ; then
srcdir="$topsrcdir/ncdap_test"
else
srcdir=`dirname $0`
fi
cd $srcdir
srcdir=`pwd`
2010-06-03 21:24:43 +08:00
# compute the build directory
# Do a hack to remove e.g. c: for CYGWIN
builddir=`pwd`/..
# Hack for CYGWIN
2012-07-18 04:13:17 +08:00
if [ `uname | cut -d "_" -f 1` = "MINGW32" ]; then
srcdir=`pwd | sed 's/\/c\//c:\//g'`
builddir="$srcdir"/..
fi
2010-06-03 21:24:43 +08:00
cd ${builddir}/ncdap_test
sh ${srcdir}/tst_remote.sh "$srcdir" "$builddir" "3" "nocache" ""
exit