File: run_nc_tests.sh

package info (click to toggle)
netcdf-cxx-legacy 4.2-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,684 kB
  • sloc: sh: 10,521; cpp: 3,134; makefile: 105
file content (21 lines) | stat: -rwxr-xr-x 710 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# This shell script runs some netCDF C++ API tests for classic and
# 64-bit offset format.

# $Id: run_nc_tests.sh,v 1.2 2006/07/31 15:17:20 ed Exp $

set -e
echo ""
echo "*** Testing C++ API test program output."

echo "*** dumping classic format file to nctst_classic.cdl and comparing..."
../ncdump/ncdump -n ref_nctst nctst_classic.nc > nctst_classic.cdl
diff -w nctst_classic.cdl $srcdir/ref_nctst.cdl

echo "*** dumping 64-bit offset format file to nctst_64bit_offset.cdl and comparing..."
../ncdump/ncdump -n ref_nctst nctst_64bit_offset.nc > nctst_64bit_offset.cdl
diff -w nctst_64bit_offset.cdl $srcdir/ref_nctst_64bit_offset.cdl

echo "*** All tests of C++ API test output passed!"
exit 0