2017-03-09 08:01:10 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if test "x$srcdir" = "x"; then srcdir=`dirname $0`; fi
|
|
|
|
export srcdir;
|
|
|
|
|
|
|
|
. ${srcdir}/../test_common.sh
|
|
|
|
|
|
|
|
FRAG="#checksummode=ignore"
|
|
|
|
|
|
|
|
F="\
|
|
|
|
nc4_nc_classic_comp.nc \
|
|
|
|
nc4_nc_classic_no_comp.nc \
|
|
|
|
nc4_strings.nc \
|
|
|
|
nc4_strings_comp.nc \
|
|
|
|
nc4_unsigned_types.nc \
|
|
|
|
nc4_unsigned_types_comp.nc \
|
|
|
|
ref_tst_compounds.nc \
|
|
|
|
"
|
|
|
|
|
|
|
|
failure() {
|
|
|
|
echo "*** Fail: $1"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2018-06-27 03:58:45 +08:00
|
|
|
setresultdir results_test_hyrax
|
2017-03-09 08:01:10 +08:00
|
|
|
|
|
|
|
if test "x${RESET}" = x1 ; then rm -fr ${BASELINEH}/*.dmp ; fi
|
|
|
|
for f in $F ; do
|
|
|
|
URL="dap4://test.opendap.org:8080/opendap/nc4_test_files/${f}${FRAG}"
|
|
|
|
echo "testing: $URL"
|
2018-06-27 03:58:45 +08:00
|
|
|
if ! ${NCDUMP} "${URL}" > ./results_test_hyrax/${f}.hyrax; then
|
2017-03-09 08:01:10 +08:00
|
|
|
failure "${URL}"
|
|
|
|
fi
|
|
|
|
if test "x${TEST}" = x1 ; then
|
2018-06-27 03:58:45 +08:00
|
|
|
if ! diff -wBb ${BASELINEREM}/${f}.hyrax ./results_test_hyrax/${f}.hyrax ; then
|
2017-03-09 08:01:10 +08:00
|
|
|
failure "diff ${f}.hyrax"
|
|
|
|
fi
|
|
|
|
elif test "x${RESET}" = x1 ; then
|
|
|
|
echo "${f}:"
|
2018-06-27 03:58:45 +08:00
|
|
|
cp ./results_test_hyrax/${f}.hyrax ${BASELINEH}/${f}.hyrax
|
2017-03-09 08:01:10 +08:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2018-06-27 03:58:45 +08:00
|
|
|
rm -rf ./results_test_hyrax
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
echo "*** Pass"
|
|
|
|
exit 0
|
2017-04-04 11:39:44 +08:00
|
|
|
|