test_cdf_transformation.in 540 Bytes
Newer Older
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
#! @SHELL@
set -e
[ x${DEBUG+set} != xset ] || set -x
if [ @ENABLE_NETCDF@ != yes ]; then
   exit 77
fi
ncdatafile="test$$.nc"
tempfiles="${ncdatafile}"
trap "EC=\$? ; \rm -f ${tempfiles}; exit \$EC" EXIT
./test_cdf_write "${ncdatafile}"
digest=$(./test_cdf_read "${ncdatafile}")
missValueCount=$(echo "$digest" | @SED@ -n '/^missing values count =/{
s/^missing values count *= *//
p
q
}')
if [ "$missValueCount" -ne 1 ]; then
  echo "Mismatch in expected number of missing values!" >&2
  exit 1
fi
#
# Local Variables:
# mode: sh
# End:
#