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

test: changed ++ to +=1

parent 1d234fa8
......@@ -24,13 +24,13 @@ CDOTEST="cat"
CDOCOMMAND="$CDO cat $IFILE ${OFILE}"
#
$CDOCOMMAND
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
$CDOCOMMAND
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
#
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT++
test -s $CDOOUT && let RSTAT++
test $? -eq 0 || let RSTAT+=1
test -s $CDOOUT && let RSTAT+=1
cat $CDOOUT $CDOERR
#
test $RSTAT -eq 0 && echo "ok 1 - $CDOTEST"
......
......@@ -33,14 +33,14 @@ for GRIDTYPE in "regular" "curvilinear" "unstructured"; do
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
$CDO $FORMAT remap,$GRID,remapweights $SETGRID $IFILE ${OFILE}
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
$CDO diff,$ABSLIM $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT++
test -s $CDOOUT && let RSTAT++
test $? -eq 0 || let RSTAT+=1
test -s $CDOOUT && let RSTAT+=1
cat $CDOOUT $CDOERR
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
......@@ -49,7 +49,7 @@ for GRIDTYPE in "regular" "curvilinear" "unstructured"; do
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST # SKIP netCDF not enabled"
fi
let NTEST++
let NTEST+=1
rm -f $OFILE
done
done
......
......@@ -28,7 +28,7 @@ for GRID in $GRIDS; do
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
let NTEST++
let NTEST+=1
done
#
rm -f $CDOOUT $CDOERR
......
......@@ -32,17 +32,17 @@ for GRIDTYPE in "regular" "curvilinear" "unstructured"; do
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
$CDO diff,$ABSLIM $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT++
test -s $CDOOUT && let RSTAT++
test $? -eq 0 || let RSTAT+=1
test -s $CDOOUT && let RSTAT+=1
cat $CDOOUT $CDOERR
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
let NTEST++
let NTEST+=1
rm -f $OFILE
done
done
......
......@@ -21,7 +21,7 @@ else
fi
TNUM=0
for SELECT in $SELARGS; do
let TNUM++
let TNUM+=1
RFILE=$DATAPATH/select${TNUM}_ref
OFILE=${OPERATOR}${TNUM}_res
......@@ -33,17 +33,17 @@ for SELECT in $SELARGS; do
#echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT++
test -s $CDOOUT && let RSTAT++
test $? -eq 0 || let RSTAT+=1
test -s $CDOOUT && let RSTAT+=1
cat $CDOOUT $CDOERR
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
let NTEST++
let NTEST+=1
rm -f $OFILE
done
done
......
......@@ -18,17 +18,17 @@ CDOTEST="gp2sp"
CDOCOMMAND="$CDO $FORMAT gp2sp $IFILE $OFILE"
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
#
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT++
test -s $CDOOUT && let RSTAT++
test $? -eq 0 || let RSTAT+=1
test -s $CDOOUT && let RSTAT+=1
cat $CDOOUT $CDOERR
#
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
#
let NTEST++
let NTEST+=1
rm -f $OFILE
######################################################
IFILE=$DATAPATH/gp2sp_ref
......@@ -40,17 +40,17 @@ CDOTEST="sp2gp"
CDOCOMMAND="$CDO $FORMAT sp2gp $IFILE $OFILE"
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
#
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT++
test -s $CDOOUT && let RSTAT++
test $? -eq 0 || let RSTAT+=1
test -s $CDOOUT && let RSTAT+=1
cat $CDOOUT $CDOERR
#
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
#
let NTEST++
let NTEST+=1
rm -f $OFILE
######################################################
IFILE=$DATAPATH/t21_geosp_tsurf.grb
......@@ -61,17 +61,17 @@ CDOTEST="gp2spl"
CDOCOMMAND="$CDO $FORMAT gp2spl $IFILE $OFILE"
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
#
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT++
test -s $CDOOUT && let RSTAT++
test $? -eq 0 || let RSTAT+=1
test -s $CDOOUT && let RSTAT+=1
cat $CDOOUT $CDOERR
#
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
#
let NTEST++
let NTEST+=1
rm -f $OFILE
######################################################
IFILE=$DATAPATH/gp2spl_ref
......@@ -82,17 +82,17 @@ CDOTEST="sp2gpl"
CDOCOMMAND="$CDO $FORMAT sp2gpl $IFILE $OFILE"
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
#
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT++
test -s $CDOOUT && let RSTAT++
test $? -eq 0 || let RSTAT+=1
test -s $CDOOUT && let RSTAT+=1
cat $CDOOUT $CDOERR
#
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
#
let NTEST++
let NTEST+=1
rm -f $OFILE
#
exit 0
......@@ -23,17 +23,17 @@ for STAT in $STATS; do
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT++
test -s $CDOOUT && let RSTAT++
test $? -eq 0 || let RSTAT+=1
test -s $CDOOUT && let RSTAT+=1
cat $CDOOUT $CDOERR
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
let NTEST++
let NTEST+=1
rm -f $OFILE
done
#
......
......@@ -20,11 +20,11 @@ CDOCOMMAND="$CDO $FORMAT ml2pl,92500,85000,50000,20000 $IFILE $OFILE"
echo "$CDOCOMMAND"
#
$CDOCOMMAND
test $? -eq 0 || let RSTAT++
test $? -eq 0 || let RSTAT+=1
#
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT++
test -s $CDOOUT && let RSTAT++
test $? -eq 0 || let RSTAT+=1
test -s $CDOOUT && let RSTAT+=1
cat $CDOOUT $CDOERR
#
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
......
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