mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-05 16:20:10 +08:00
1299a0fcee
So it now becomes the first default test server to try. This also means that the dap4 remote testing is enabled. The only issue to watch is to see if the jetstream-based server can stay up for significant periods of time. A uptimerobot (https://uptimerobot.com) has been set ups to monitor this hourly, so we shall see.
88 lines
1.5 KiB
Bash
Executable File
88 lines
1.5 KiB
Bash
Executable File
if test $# = 0 ; then
|
|
TEST=1
|
|
else
|
|
for arg in "$@"; do
|
|
case "${arg}" in
|
|
test) TEST=1 ;;
|
|
reset) RESET=1 ;;
|
|
diff) DIFF=1 ;;
|
|
cdl) CDLDIFF=1 ;;
|
|
log) ;;
|
|
*) echo unknown argument $arg ;;
|
|
esac
|
|
done
|
|
fi
|
|
|
|
# Define input paths
|
|
WD=`pwd`
|
|
cd ${srcdir}/daptestfiles; DAPTESTFILES=`pwd` ; cd ${WD}
|
|
cd ${srcdir}/dmrtestfiles; DMRTESTFILES=`pwd` ; cd ${WD}
|
|
cd ${srcdir}/cdltestfiles; CDLTESTFILES=`pwd` ; cd ${WD}
|
|
cd ${srcdir}/baseline; BASELINE=`pwd` ; cd ${WD}
|
|
cd ${srcdir}/baselineraw; BASELINERAW=`pwd` ; cd ${WD}
|
|
cd ${srcdir}/baselineremote; BASELINEREM=`pwd` ; cd ${WD}
|
|
BASELINEH=${BASELINEREM}
|
|
|
|
setresultdir() {
|
|
rm -fr ./$1
|
|
mkdir -p ./$1
|
|
}
|
|
|
|
FAILURES=
|
|
failure() {
|
|
echo "*** Fail: $1"
|
|
FAILURES=1
|
|
if test "x$2" != x ; then
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
PUSHD() {
|
|
pushd $1 >>/dev/null
|
|
}
|
|
POPD() {
|
|
popd >>/dev/null
|
|
}
|
|
|
|
filesexist() {
|
|
for x in "$@" ; do
|
|
if ! test -e $x ; then
|
|
failure "missing file: $x"
|
|
fi
|
|
done
|
|
}
|
|
|
|
finish() {
|
|
if test "x$FAILURES" = x1 ; then
|
|
echo "*** Fail"
|
|
exit 1
|
|
else
|
|
echo "*** Pass"
|
|
exit 0
|
|
fi
|
|
}
|
|
|
|
suppress() {
|
|
F0="$1"
|
|
if test "x${SUPPRESS}" = x; then
|
|
RESULT="$F0"
|
|
else
|
|
RESULT=""
|
|
for f in ${F0} ; do
|
|
ignore=0
|
|
for s in ${SUPPRESS} ; do
|
|
if test "x$s" = "x$f" ; then
|
|
ignore=1;
|
|
echo "Suppressing: $f"
|
|
break;
|
|
fi
|
|
done
|
|
if test "x$ignore" = x0 ; then RESULT="$f ${RESULT}" ; fi
|
|
done
|
|
fi
|
|
}
|
|
|
|
VG="valgrind --leak-check=full --error-exitcode=1 --num-callers=100"
|
|
if test "x$USEVG" = x ; then VG=; fi
|
|
|