2017-03-09 08:01:10 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
|
|
|
|
|
|
|
. ${srcdir}/d4test_common.sh
|
|
|
|
|
2018-06-27 03:58:45 +08:00
|
|
|
set -e
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
#BIG=1
|
2022-11-16 11:29:21 +08:00
|
|
|
#CSUM=1
|
2017-03-09 08:01:10 +08:00
|
|
|
|
2022-11-14 04:15:11 +08:00
|
|
|
computetestablefiles
|
2017-03-09 08:01:10 +08:00
|
|
|
|
2018-06-27 03:58:45 +08:00
|
|
|
setresultdir results_test_remote
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
TESTSERVER=`${execdir}/findtestserver4 dap4 d4ts`
|
|
|
|
if test "x$TESTSERVER" = x ; then
|
|
|
|
echo "***XFAIL: Cannot find d4ts testserver"
|
2018-06-27 03:58:45 +08:00
|
|
|
exit 1
|
2017-03-09 08:01:10 +08:00
|
|
|
fi
|
|
|
|
|
2022-11-14 04:15:11 +08:00
|
|
|
if test "x${RESET}" = x1 ; then rm -fr ${BASELINEREM}/*.ncdump ; fi
|
2017-03-09 08:01:10 +08:00
|
|
|
for f in $F ; do
|
2022-11-16 11:29:21 +08:00
|
|
|
FRAG="#dap4&log&show=fetch"
|
|
|
|
QUERY=""
|
2017-03-09 08:01:10 +08:00
|
|
|
if test "x$BIG" = x1; then
|
2022-11-16 11:29:21 +08:00
|
|
|
FRAG="${FRAG}&ucar.littleendian=0"
|
2017-03-09 08:01:10 +08:00
|
|
|
fi
|
2022-11-16 11:29:21 +08:00
|
|
|
if test "x$CSUM" = x1 ; then
|
2023-01-19 10:47:29 +08:00
|
|
|
QUERY="dap4.checksum=true"
|
2022-11-16 11:29:21 +08:00
|
|
|
else
|
2023-01-19 10:47:29 +08:00
|
|
|
QUERY="dap4.checksum=false"
|
2017-03-09 08:01:10 +08:00
|
|
|
fi
|
2022-11-16 11:29:21 +08:00
|
|
|
# Fix up QUERY
|
2023-01-19 10:47:29 +08:00
|
|
|
QUERY="?${QUERY}"
|
|
|
|
# Built test URL
|
2022-11-16 11:29:21 +08:00
|
|
|
URL="${TESTSERVER}/testfiles/${f}${QUERY}${FRAG}"
|
2022-11-14 04:15:11 +08:00
|
|
|
${NCDUMP} ${DUMPFLAGS} "${URL}" > ${builddir}/results_test_remote/${f}.ncdump
|
2017-03-09 08:01:10 +08:00
|
|
|
if test "x${TEST}" = x1 ; then
|
2022-11-14 04:15:11 +08:00
|
|
|
diff -wBb "${BASELINEREM}/${f}.ncdump" "${builddir}/results_test_remote/${f}.ncdump"
|
2017-03-09 08:01:10 +08:00
|
|
|
elif test "x${RESET}" = x1 ; then
|
|
|
|
echo "${f}:"
|
2022-11-14 04:15:11 +08:00
|
|
|
cp "${builddir}/results_test_remote/${f}.ncdump" "${BASELINEREM}/${f}.ncdump"
|
2017-03-09 08:01:10 +08:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
finish
|
2017-04-04 11:39:44 +08:00
|
|
|
|