mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-15 08:30:11 +08:00
d1d2808919
This change-set modifies PR https://github.com/Unidata/netcdf-c/pull/2555 to add the changes listed below. Most of these changes are required by changes to the Java remotetest.unidata.ucar.edu server. ## DAP4 Related Changes * Add tests *dap4_test/test_constraints.sh* and *dap4_test/test_hyrax.sh*. * Provide explicit list of remotetest files to test. * Cleanup local checksum computing and verification. * Define a temporary Hyrax hack flag to deal with the way Hyrax handles checksums and add "#hyrax" fragment flag for it. * Add a hack to get past an LGTM problem with using "http:". * Improve debug support. ## Other Changes * Cleanup the recipe in *docs/nczarr.md* for building *aws-sdk-cpp* library.
50 lines
1.1 KiB
Bash
Executable File
50 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
. ../test_common.sh
|
|
|
|
. ${srcdir}/d4test_common.sh
|
|
|
|
set -e
|
|
|
|
#BIG=1
|
|
#CSUM=1
|
|
|
|
computetestablefiles
|
|
|
|
setresultdir results_test_remote
|
|
|
|
TESTSERVER=`${execdir}/findtestserver4 dap4 d4ts`
|
|
if test "x$TESTSERVER" = x ; then
|
|
echo "***XFAIL: Cannot find d4ts testserver"
|
|
exit 1
|
|
fi
|
|
|
|
if test "x${RESET}" = x1 ; then rm -fr ${BASELINEREM}/*.ncdump ; fi
|
|
for f in $F ; do
|
|
FRAG="#dap4&log&show=fetch"
|
|
QUERY=""
|
|
if test "x$BIG" = x1; then
|
|
FRAG="${FRAG}&ucar.littleendian=0"
|
|
fi
|
|
if test "x$CSUM" = x1 ; then
|
|
QUERY="dap4.checksum=true"
|
|
else
|
|
QUERY="dap4.checksum=false"
|
|
fi
|
|
# Fix up QUERY
|
|
QUERY="?${QUERY}"
|
|
# Built test URL
|
|
URL="${TESTSERVER}/testfiles/${f}${QUERY}${FRAG}"
|
|
${NCDUMP} ${DUMPFLAGS} "${URL}" > ${builddir}/results_test_remote/${f}.ncdump
|
|
if test "x${TEST}" = x1 ; then
|
|
diff -wBb "${BASELINEREM}/${f}.ncdump" "${builddir}/results_test_remote/${f}.ncdump"
|
|
elif test "x${RESET}" = x1 ; then
|
|
echo "${f}:"
|
|
cp "${builddir}/results_test_remote/${f}.ncdump" "${BASELINEREM}/${f}.ncdump"
|
|
fi
|
|
done
|
|
|
|
finish
|
|
|