#!/bin/sh # This shell script runs tst_interops2 to create a HDF4 file, and read # it with netCDF. Then the script runs ncdump on the HDF4 file. # Ed Hartnett if test "x$srcdir" = x ; then srcdir=`pwd`; fi . ../test_common.sh FILE=tst_interops2.h4 ECODE=0 echo "" echo "*** Testing extended file format output." set -e echo "Creating HDF4 file" ${execdir}/tst_interops2 echo "Test extended format output for a HDF4 file" rm -f tmp_tst_formatx_hdf4 ${NCDUMP} -K $FILE >tmp_tst_formatx_hdf4 if ! fgrep 'HDF4 mode=00001000'