Commit d36b05a1 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added test/test_Cat.sh

parent db6f87f8
......@@ -630,6 +630,7 @@ test/data/ts_mm_5years -text
test/testStreams.py -text
test/test_Arith.py -text
test/test_Arithc.py -text
test/test_Cat.sh -text
test/test_Gridarea.sh -text
test/test_Remap.sh -text
test/test_Selvar.py -text
......
......@@ -4,6 +4,7 @@ export
TESTS = $(top_srcdir)/test/test_Gridarea.sh \
$(top_srcdir)/test/test_Remap.sh \
$(top_srcdir)/test/test_Cat.sh \
$(top_srcdir)/test/test_Spectral.sh \
$(top_srcdir)/test/test_Timstat.sh \
$(top_srcdir)/test/test_Vertint.sh
......
......@@ -253,6 +253,7 @@ top_srcdir = @top_srcdir@
CLEANFILES = `ls *.pyc`
TESTS = $(top_srcdir)/test/test_Gridarea.sh \
$(top_srcdir)/test/test_Remap.sh \
$(top_srcdir)/test/test_Cat.sh \
$(top_srcdir)/test/test_Spectral.sh \
$(top_srcdir)/test/test_Timstat.sh \
$(top_srcdir)/test/test_Vertint.sh
......
#!/bin/sh
#
#CDO=cdo
#DATAPATH=data
#
CDODEBUG=0
#
if [ "$CDO_TEST_DEBUG" = 1 ]; then CDODEBUG=1; fi
#
if [ "$CDODEBUG" = 0 ]; then CDO="$CDO -s"; fi
CDOOUT=cout
CDOERR=cerr
FORMAT="-f srv -b 32"
RSTAT=0;
#
IFILE=$DATAPATH/t21_geosp_tsurf.grb
#
RFILE=catdata_ref
OFILE=catdata
#
cp $IFILE ${RFILE}
cat $IFILE >> ${RFILE}
#
rm -f ${OFILE}
$CDO cat $IFILE ${OFILE}
$CDO cat $IFILE ${OFILE}
#
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ -s $CDOOUT ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
rm -f $OFILE $RFILE
#
rm -f $CDOOUT $CDOERR
#
if [ "$CDODEBUG" = 1 ]; then
echo "rstat: $RSTAT"
fi
#
exit $RSTAT
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment