Commit 0d6b02e0 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

test: added processID to tmp files

parent 6c19b1ca
......@@ -11,8 +11,8 @@ test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
ABSLIMMAX=0.0001
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
FORMAT=""
NTEST=1
######################################################
......
......@@ -4,8 +4,8 @@ echo 1..4 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
FORMAT="-f srv -b 32"
STATS="add sub mul div"
#
......
......@@ -4,8 +4,8 @@ echo 1..1 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
FORMAT="-f srv -b 32"
RSTAT=0
#
......
......@@ -4,8 +4,8 @@ echo 1..9 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
#
GRIDTYPES="regular generic curvilinear"
DISTS="4,3 12,1 1,6"
......
......@@ -4,8 +4,8 @@ echo 1..5 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
#
FILES="datar.nc datag.nc datac.nc datau.nc testfile01c.nc"
#
......
......@@ -4,8 +4,8 @@ echo 1..2 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
#
IFILE=$DATAPATH/detrend_data
NTEST=1
......
......@@ -4,14 +4,14 @@ echo 1..1 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
PCTLS="1 20 25 33 50 66 75 80 99 100"
#
IFILE=$DATAPATH/ts_mm_5years
export CDO_FILE_SUFFIX=NULL
$CDO splityear $IFILE ts_year
IFILE="ts_year????"
$CDO splityear $IFILE ${$}ts_year
IFILES="${$}ts_year????"
#
NTEST=1
RSTAT=0
......@@ -22,7 +22,7 @@ for PCTL in $PCTLS; do
OFILE=enspctl${STAT}_res
CDOTEST="enspctl"
CDOCOMMAND="$CDO enspctl,${PCTL} $IFILE $OFILE"
CDOCOMMAND="$CDO enspctl,${PCTL} $IFILES $OFILE"
echo "$CDOCOMMAND"
......@@ -42,6 +42,6 @@ test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
#
rm -f $CDOOUT $CDOERR
rm -f $IFILE
rm -f $IFILES
#
exit 0
......@@ -4,14 +4,14 @@ echo 1..9 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
STATS="min max sum avg mean std std1 var var1"
#
IFILE=$DATAPATH/ts_mm_5years
export CDO_FILE_SUFFIX=NULL
$CDO splityear $IFILE ts_year
IFILE="ts_year????"
$CDO splityear $IFILE ${$}ts_year
IFILES="${$}ts_year????"
#
NTEST=1
#
......@@ -21,7 +21,7 @@ for STAT in $STATS; do
OFILE=ens${STAT}_res
CDOTEST="ens$STAT"
CDOCOMMAND="$CDO ens${STAT} $IFILE $OFILE"
CDOCOMMAND="$CDO ens${STAT} $IFILES $OFILE"
echo "Running test: $NTEST"
echo "$CDOCOMMAND"
......@@ -42,6 +42,6 @@ for STAT in $STATS; do
done
#
rm -f $CDOOUT $CDOERR
rm -f $IFILE
rm -f $IFILES
#
exit 0
......@@ -4,8 +4,8 @@ echo 1..2 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
FORMAT="-f srv -b 32"
#
IFILE=$DATAPATH/pl_data
......
......@@ -4,8 +4,8 @@ echo 1..16 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
FORMATS="srv ext ieg grb grb2 nc nc2 nc4"
#
NTEST=1
......
......@@ -4,8 +4,8 @@ echo 1..1 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
FORMAT="-f srv -b 32"
#
PCTLS="1 20 25 33 50 66 75 80 99 100"
......
......@@ -4,8 +4,8 @@ echo 1..9 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
FORMAT="-f srv -b 32"
#
STATS="min max sum avg mean std std1 var var1"
......
......@@ -11,8 +11,8 @@ test -n "$DATAPATH" || DATAPATH=./data
ABSLIMMAX=0.001
ABSLIMDIS=0.2
ABSLIMYCON=0.25
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
FORMAT="-f srv -b 32"
GRIDS="n16 n32"
#
......@@ -32,8 +32,8 @@ for GRIDTYPE in "regular" "curvilinear" "unstructured"; do
if [ $RMOD = dis ]; then ABSLIM=$ABSLIMDIS; fi
if [ $RMOD = ycon ]; then ABSLIM=$ABSLIMYCON; fi
RSTAT=0
OFILE=${GRID}_${RMOD}
RFILE=$DATAPATH/${OFILE}_ref
OFILE=${GRID}_${RMOD}_$$
RFILE=$DATAPATH/${GRID}_${RMOD}_ref
CDOTEST="gen${RMOD} $GRID $GRIDTYPE"
CDOCOMMAND="$CDO $FORMAT gen${RMOD},$GRID $SETGRID $IFILE remapweights"
......
......@@ -4,8 +4,8 @@ echo 1..1 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
#
IFILE=$DATAPATH/pl_data.grb
OFILE=pl_data.grb
......
......@@ -4,8 +4,8 @@ echo 1..7 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
REFVAL="12.5663706"
GRIDS="global_5 global_2 global_1 global_.5 n32 n80 n160"
RSTAT=0;
......
......@@ -4,8 +4,8 @@ echo 1..4 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
#
NTEST=1
#
......
......@@ -4,8 +4,8 @@ echo 1..4 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
#
NTEST=1
#
......
......@@ -11,8 +11,8 @@ test -n "$DATAPATH" || DATAPATH=./data
ABSLIMMAX=0.001
ABSLIMDIS=0.2
ABSLIMYCON=0.25
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
FORMAT="-f srv -b 32"
GRIDS="n16 n32"
#
......@@ -32,8 +32,8 @@ for GRIDTYPE in "regular" "curvilinear" "unstructured"; do
if [ $RMOD = dis ]; then ABSLIM=$ABSLIMDIS; fi
if [ $RMOD = ycon ]; then ABSLIM=$ABSLIMYCON; fi
RSTAT=0
OFILE=${GRID}_${RMOD}
RFILE=$DATAPATH/${OFILE}_ref
OFILE=${GRID}_${RMOD}_$$
RFILE=$DATAPATH/${GRID}_${RMOD}_ref
CDOTEST="remap${RMOD} $GRID $GRIDTYPE"
CDOCOMMAND="$CDO $FORMAT remap${RMOD},$GRID $SETGRID $IFILE ${OFILE}"
......
......@@ -4,8 +4,8 @@ echo 1..8 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
FORMAT="-f srv -b 32"
RSTAT=0;
#
......
......@@ -4,8 +4,8 @@ echo 1..4 # Number of tests to be executed.
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
CDOOUT=cout$$
CDOERR=cerr$$
FORMAT=""
NTEST=1
#####################################################
......
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