netcdf-c/ncdap_test/tst_formatx.sh
Dennis Heimbigner 6d8809100f Fix pull request https://github.com/Unidata/netcdf-c/pull/374 (dap4.dmh)
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.
2017-04-03 21:39:44 -06:00

32 lines
636 B
Bash
Executable File

#!/bin/sh
# This shell script tests the output several previous tests.
# $Id: tst_output.sh,v 1.17 2010/05/14 16:21:15 ed Exp $
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh
echo ""
echo "*** Testing extended file format output."
set -e
# Figure our dst server
DTS=`./findtestserver dap2 dts`
if test "x$DTS" = "x" ; then
echo "cannot locate test server for dts"
exit
fi
URL="$DTS/test.03"
ECODE=0
echo "Test extended format output for a DAP2 file"
rm -f tmp
${NCDUMP} -K "${URL}" >tmp
if ! grep 'DAP2 mode=00000000' <tmp ; then
echo "*** Fail: extended format for a DAP2 file"
ECODE=1
fi
rm tmp
exit $ECODE