File: tst_formatx.sh

package info (click to toggle)
netcdf-parallel 1%3A4.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 101,668 kB
  • sloc: ansic: 200,241; sh: 10,807; yacc: 2,522; makefile: 1,306; lex: 1,153; xml: 173; awk: 2
file content (31 lines) | stat: -rwxr-xr-x 684 bytes parent folder | download | duplicates (2)
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 "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