2013-12-23 03:53:20 +08:00
|
|
|
#!/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
|
2014-10-05 05:59:16 +08:00
|
|
|
DTS=`./nctestserver dts ${DTSTESTSERVER}`
|
|
|
|
if test "x$DTS" = "x" ; then
|
|
|
|
echo "cannot locate test server for dts"
|
2013-12-23 03:53:20 +08:00
|
|
|
exit
|
|
|
|
fi
|
2014-10-05 05:59:16 +08:00
|
|
|
URL="$DTS/test.03"
|
2013-12-23 03:53:20 +08:00
|
|
|
|
|
|
|
ECODE=0
|
|
|
|
echo "Test extended format output for a DAP2 file"
|
|
|
|
rm -f tmp
|
|
|
|
../ncdump/ncdump -K $URL >tmp
|
2015-01-31 03:55:46 +08:00
|
|
|
if ! grep 'DAP2 mode=00000000' <tmp ; then
|
2013-12-23 03:53:20 +08:00
|
|
|
echo "*** Fail: extended format for a DAP2 file"
|
|
|
|
ECODE=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm tmp
|
|
|
|
|
|
|
|
exit $ECODE
|