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

refactor test/Expr.test

parent 6d454b48
......@@ -11,12 +11,10 @@ FORMAT="-f srv -b 32"
IFILE=$DATAPATH/pl_data
NTEST=1
#
INSETS="_clev=var130.z;pottemp=var130*((100000/_clev)^0.287);"
INSETS="$INSETS var1=(var129>0)?(var130-273.15):var152;"
FINSTR=finstr
#
for INSTR in $INSETS; do
function testfunc()
{
RSTAT=0
CDOTEST="instruction set $NTEST"
......@@ -53,8 +51,13 @@ for INSTR in $INSETS; do
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
let NTEST+=1
done
}
#
INSTR="_clev=var130.z;pottemp=var130*((100000/_clev)^0.287);"
testfunc
#
INSTR="var1=(var129>0)?(var130-273.15):var152;"
testfunc
#
rm -f $CDOOUT $CDOERR
#
......
......@@ -10,7 +10,7 @@ FORMAT="-f srv -b 32"
#
IFILE=$DATAPATH/pl_data
NTEST=1
#
function testfunc()
{
RSTAT=0
......@@ -46,7 +46,7 @@ function testfunc()
let NTEST+=1
rm -f $OFILE
}
#
INSTR="-fldmean -timmean -select,code=,129,130,152"
testfunc
#
......
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