mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
6d8809100f
1. When running under windows (as opposed to cygwin) we need to make sure to not user /cygdrive/ file paths. This was ocurring in libdap4/d4read.c, but may occur elsewhere. 2. Shell scripts in the git repo are not being checked-out with the executable mode set. Had core.filemode set to false. Was a major hassle to fix.
48 lines
956 B
Bash
Executable File
48 lines
956 B
Bash
Executable File
#!/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
|
|
}
|
|
|
|
rm -fr ./results
|
|
mkdir -p ./results
|
|
|
|
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"
|
|
if ! ${NCDUMP} "${URL}" > ./results/${f}.hyrax; then
|
|
failure "${URL}"
|
|
fi
|
|
if test "x${TEST}" = x1 ; then
|
|
if ! diff -wBb ${BASELINEREM}/${f}.hyrax ./results/${f}.hyrax ; then
|
|
failure "diff ${f}.hyrax"
|
|
fi
|
|
elif test "x${RESET}" = x1 ; then
|
|
echo "${f}:"
|
|
cp ./results/${f}.hyrax ${BASELINEH}/${f}.hyrax
|
|
fi
|
|
done
|
|
|
|
echo "*** Pass"
|
|
exit 0
|
|
|