2018-03-30 08:30:16 +08:00
|
|
|
#!/bin/bash
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
2017-01-19 12:46:47 +08:00
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
set -e
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2018-03-21 11:31:31 +08:00
|
|
|
. ${srcdir}/tst_utils.sh
|
|
|
|
|
|
|
|
# get the list of test url targets
|
|
|
|
. ${srcdir}/tst_urls.sh
|
|
|
|
|
|
|
|
PARAMS="${PARAMS}[netcdf3]"
|
|
|
|
|
|
|
|
# Choose tests to run
|
|
|
|
if test "x$longtests" != x; then
|
|
|
|
WHICHTESTS="L1 LC1 LC2"
|
|
|
|
else # Standard test set
|
|
|
|
WHICHTESTS="S1 C1"
|
|
|
|
fi
|
|
|
|
|
|
|
|
TITLE="DAP to netCDF-3 translation using remote server"
|
|
|
|
EXPECTED="$expected3"
|
|
|
|
RESULTSDIR="remote_results"
|
|
|
|
|
|
|
|
rm -fr ${RESULTSDIR}
|
2021-08-26 03:33:49 +08:00
|
|
|
mkdir -p "${RESULTSDIR}"
|
2018-03-21 11:31:31 +08:00
|
|
|
|
|
|
|
echo "*** Testing $TITLE "
|
|
|
|
echo " Base URL: ${DTS}"
|
|
|
|
echo " Client Parameters: ${PARAMS}"
|
|
|
|
if test "$cache" = 0; then echo " Caching: off"; else echo " Caching: on"; fi
|
|
|
|
echo " Note: The remote tests may be slow or even fail if the server is overloaded"
|
|
|
|
|
|
|
|
cd ${RESULTSDIR}
|
|
|
|
for i in $WHICHTESTS ; do
|
|
|
|
computewhich $i
|
|
|
|
doremotetests remote
|
|
|
|
done
|
|
|
|
cd ..
|
|
|
|
summarize
|
|
|
|
cleanup
|
|
|
|
doexit
|
|
|
|
|