netcdf-c/ncdap_test/tst_ber.sh

19 lines
332 B
Bash
Raw Normal View History

#!/bin/sh
#export NCPATHDEBUG=1
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh
2017-07-15 09:37:35 +08:00
F="ber-2002-10-01.nc"
2017-07-16 09:16:45 +08:00
EXPECTED="${srcdir}/expected3"
2017-07-15 09:37:35 +08:00
URL='[log][cache]file://'
2017-07-16 09:16:45 +08:00
URL="${URL}${srcdir}/testdata3/$F"
2017-07-15 09:37:35 +08:00
rm -f ./tmp
${NCDUMP} "${URL}" | sed 's/\\r//g' > ./tmp
2017-07-15 09:37:35 +08:00
diff -w ${EXPECTED}/$F.dmp ./tmp
2017-07-16 10:21:24 +08:00
#cleanup
rm -f ./tmp
2017-07-15 09:37:35 +08:00
exit