File: tst_formatx.sh

package info (click to toggle)
netcdf 1:4.7.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 104,952 kB
  • sloc: ansic: 228,683; sh: 10,980; yacc: 2,561; makefile: 1,319; lex: 1,173; xml: 173; awk: 2
file content (31 lines) | stat: -rwxr-xr-x 693 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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 "WARNING: 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_tst_formatx
${NCDUMP} -K "${URL}" >tmp_tst_formatx
if ! grep 'DAP2 mode=00000000' <tmp_tst_formatx ; then
echo "*** Fail: extended format for a DAP2 file"
ECODE=1
fi

rm tmp_tst_formatx

exit $ECODE