Skip to content
Snippets Groups Projects
Commit 08284b0e authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added 4 tests in Arith.test.in.

parent 7f7ba84e
No related branches found
No related tags found
No related merge requests found
Pipeline #13156 passed
#! @BASH@
#
echo 1..8 # Number of tests to be executed.
echo 1..12 # Number of tests to be executed.
#
. ./cdoTestFunctions.test
#
......@@ -28,7 +28,7 @@ for OPERATOR in $OPERATORS; do
fi
let NTEST+=1
done
#
for OPERATOR in $OPERATORS; do
if [ -z "$1" ] || [ $NTEST == $1 ]; then
# expr,instr var
......@@ -57,4 +57,21 @@ for OPERATOR in $OPERATORS; do
let NTEST+=1
done
#
for OPERATOR in $OPERATORS; do
if [ -z "$1" ] || [ $NTEST == $1 ]; then
IFILE1=$DATAPATH/arith2.srv
IFILE2=$DATAPATH/arith2mean.srv
OFILE=arith2${OPERATOR}_res
RFILE=$DATAPATH/arith2${OPERATOR}_ref
CDOTEST="$OPERATOR"
CDOCOMMAND="$CDO $FORMAT ${OPERATOR} $IFILE1 $IFILE2 $OFILE"
TESTCOMMAND="$CDO diff $OFILE $RFILE"
runTest
rm -f $OFILE
fi
let NTEST+=1
done
#
exit 0
......@@ -89,7 +89,7 @@ DETREND = detrend_ref
EXPR = expr1_ref aexpr1_ref expr2_ref aexpr2_ref expr3_ref aexpr3_ref
THREAD = thread1_ref tsformat1_ref
GRADSDES = pl_data.ctl pl_data.gmp
ARITH = arithadd_ref arithsub_ref arithmul_ref arithdiv_ref
ARITH = arithadd_ref arithsub_ref arithmul_ref arithdiv_ref arith2.srv arith2mean.srv arith2add_ref arith2sub_ref arith2mul_ref arith2div_ref
MONARITH = monadd_ref monsub_ref monmul_ref mondiv_ref
YEARARITH = yearadd_ref yearsub_ref yearmul_ref yeardiv_ref
YMONARITH = ymonadd_ref ymonsub_ref ymonmul_ref ymondiv_ref
......
File added
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment