netcdf-c/ncdap_test/tst_formatx.sh
dmh 1739c50622 Modified a number of tests
to make use of remotetest.unidata.ucar.edu
optional. Purpose is purely for testing
new dts and thredds servers.
2014-10-04 15:59:16 -06:00

30 lines
584 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 $
echo ""
echo "*** Testing extended file format output."
set -e
# Figure our dst server
DTS=`./nctestserver dts ${DTSTESTSERVER}`
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/ncdump -K $URL >tmp
if ! fgrep 'DAP2 mode=00000000' <tmp ; then
echo "*** Fail: extended format for a DAP2 file"
ECODE=1
fi
rm tmp
exit $ECODE