Commit 9b387872 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

simplified Cat.test.in

parent f4fcd76f
#! @BASH@
. ./cdoTestFunctions.test
echo 1..1 # Number of tests to be executed.
#
test -n "$CDO" || CDO="@abs_top_builddir@/src/cdo $CDO_DEBUG"
......@@ -22,19 +23,9 @@ rm -f ${OFILE}
#
CDOTEST="cat"
CDOCOMMAND="$CDO $STATS $IFILE ${OFILE}"
TESTCOMMAND="$CDO diff $OFILE $RFILE"
#
$CDOCOMMAND
test $? -eq 0 || let RSTAT+=1
$CDOCOMMAND
test $? -eq 0 || let RSTAT+=1
#
$CDO diff $OFILE $RFILE
test $? -eq 0 || let RSTAT+=1
#
test $RSTAT -eq 0 && echo "ok 1 - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok 1 - $CDOTEST"
runTest "1" "$CDOTEST" "$CDODOMMAND" "$TESTCOMMAND"
#
rm -f $OFILE $RFILE
#
......
Markdown is supported
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