Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
d3a54b85
Commit
d3a54b85
authored
Nov 11, 2016
by
Uwe Schulzweida
Browse files
Added test for Timselstat.
parent
e6d8ae0a
Changes
5
Hide whitespace changes
Inline
Side-by-side
configure
View file @
d3a54b85
...
...
@@ -21058,7 +21058,7 @@ ac_config_files="$ac_config_files test/File.test test/Read_grib.test test/Read_n
ac_config_files="$ac_config_files test/Cat.test test/Gridarea.test test/Genweights.test test/Remap.test"
ac_config_files="$ac_config_files test/Select.test test/Spectral.test test/Timstat.test test/Vertint.test"
ac_config_files="$ac_config_files test/Select.test test/Spectral.test test/Timstat.test
test/Timselstat.test
test/Vertint.test"
ac_config_files="$ac_config_files test/Ymonstat.test test/Fldstat.test test/Fldpctl.test test/Ensstat.test test/Enspctl.test"
...
...
@@ -22230,6 +22230,7 @@ do
"test/Select.test") CONFIG_FILES="$CONFIG_FILES test/Select.test" ;;
"test/Spectral.test") CONFIG_FILES="$CONFIG_FILES test/Spectral.test" ;;
"test/Timstat.test") CONFIG_FILES="$CONFIG_FILES test/Timstat.test" ;;
"test/Timselstat.test") CONFIG_FILES="$CONFIG_FILES test/Timselstat.test" ;;
"test/Vertint.test") CONFIG_FILES="$CONFIG_FILES test/Vertint.test" ;;
"test/Ymonstat.test") CONFIG_FILES="$CONFIG_FILES test/Ymonstat.test" ;;
"test/Fldstat.test") CONFIG_FILES="$CONFIG_FILES test/Fldstat.test" ;;
...
...
@@ -23753,6 +23754,7 @@ _LT_EOF
"test/Select.test":F) chmod a+x "$ac_file" ;;
"test/Spectral.test":F) chmod a+x "$ac_file" ;;
"test/Timstat.test":F) chmod a+x "$ac_file" ;;
"test/Timselstat.test":F) chmod a+x "$ac_file" ;;
"test/Vertint.test":F) chmod a+x "$ac_file" ;;
"test/Ymonstat.test":F) chmod a+x "$ac_file" ;;
"test/Fldstat.test":F) chmod a+x "$ac_file" ;;
...
...
configure.ac
View file @
d3a54b85
...
...
@@ -249,7 +249,7 @@ AC_PROG_AWK
AC_CONFIG_FILES([test/File.test test/Read_grib.test test/Read_netcdf.test test/Copy_netcdf.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Cat.test test/Gridarea.test test/Genweights.test test/Remap.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Select.test test/Spectral.test test/Timstat.test test/Vertint.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Select.test test/Spectral.test test/Timstat.test
test/Timselstat.test
test/Vertint.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Ymonstat.test test/Fldstat.test test/Fldpctl.test test/Ensstat.test test/Enspctl.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Merstat.test test/Zonstat.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Afterburner.test test/Detrend.test test/Arithc.test test/Arith.test test/Expr.test],[chmod a+x "$ac_file"])
...
...
test/Makefile.am
View file @
d3a54b85
...
...
@@ -13,7 +13,7 @@ TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
# tests which should pass
TESTS
=
threads.test tsformat.test wildcard.test File.test Read_grib.test Read_netcdf.test Copy_netcdf.test Cat.test Gridarea.test
\
Detrend.test Genweights.test Remap.test Select.test Spectral.test
\
Ensstat.test Enspctl.test Fldstat.test Fldpctl.test Merstat.test Zonstat.test Timstat.test Ymonstat.test
\
Ensstat.test Enspctl.test Fldstat.test Fldpctl.test Merstat.test Zonstat.test Timstat.test
Timselstat.test
Ymonstat.test
\
Vertint.test Afterburner.test Arithc.test Arith.test Expr.test
\
Gradsdes.test Collgrid.test MapReduce.test Ninfo.test
...
...
test/Makefile.in
View file @
d3a54b85
...
...
@@ -86,16 +86,17 @@ DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(srcdir)
/Gridarea.test.in
$(srcdir)
/Genweights.test.in
\
$(srcdir)
/Remap.test.in
$(srcdir)
/Select.test.in
\
$(srcdir)
/Spectral.test.in
$(srcdir)
/Timstat.test.in
\
$(srcdir)
/Vertint.test.in
$(srcdir)
/Ymonstat.test.in
\
$(srcdir)
/Fldstat.test.in
$(srcdir)
/Fldpctl.test.in
\
$(srcdir)
/Ensstat.test.in
$(srcdir)
/Enspctl.test.in
\
$(srcdir)
/Merstat.test.in
$(srcdir)
/Zonstat.test.in
\
$(srcdir)
/Afterburner.test.in
$(srcdir)
/Detrend.test.in
\
$(srcdir)
/Arithc.test.in
$(srcdir)
/Arith.test.in
\
$(srcdir)
/Expr.test.in
$(srcdir)
/Gradsdes.test.in
\
$(srcdir)
/Collgrid.test.in
$(srcdir)
/threads.test.in
\
$(srcdir)
/tsformat.test.in
$(srcdir)
/wildcard.test.in
\
$(srcdir)
/MapReduce.test.in
$(srcdir)
/Ninfo.test.in README
$(srcdir)
/Timselstat.test.in
$(srcdir)
/Vertint.test.in
\
$(srcdir)
/Ymonstat.test.in
$(srcdir)
/Fldstat.test.in
\
$(srcdir)
/Fldpctl.test.in
$(srcdir)
/Ensstat.test.in
\
$(srcdir)
/Enspctl.test.in
$(srcdir)
/Merstat.test.in
\
$(srcdir)
/Zonstat.test.in
$(srcdir)
/Afterburner.test.in
\
$(srcdir)
/Detrend.test.in
$(srcdir)
/Arithc.test.in
\
$(srcdir)
/Arith.test.in
$(srcdir)
/Expr.test.in
\
$(srcdir)
/Gradsdes.test.in
$(srcdir)
/Collgrid.test.in
\
$(srcdir)
/threads.test.in
$(srcdir)
/tsformat.test.in
\
$(srcdir)
/wildcard.test.in
$(srcdir)
/MapReduce.test.in
\
$(srcdir)
/Ninfo.test.in README
ACLOCAL_M4
=
$(top_srcdir)
/aclocal.m4
am__aclocal_m4_deps
=
$(top_srcdir)
/m4/acx_options.m4
\
$(top_srcdir)
/m4/ax_pthread.m4
$(top_srcdir)
/m4/libtool.m4
\
...
...
@@ -108,12 +109,12 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER
=
$(top_builddir)
/src/config.h
CONFIG_CLEAN_FILES
=
File.test Read_grib.test Read_netcdf.test
\
Copy_netcdf.test Cat.test Gridarea.test Genweights.test
\
Remap.test Select.test Spectral.test Timstat.test
Vertint.test
\
Ymon
stat.test
Fldsta
t.test
Fldpctl
.test
Ens
stat.test
\
Ens
pctl.test
Mer
stat.test
Zonstat.test Afterburner
.test
\
Detrend.test Arithc.test Arith.test Expr.test Gradsdes
.test
\
Collgrid.test threads.test tsformat.test wildcard
.test
\
MapReduce.test Ninfo.test
Remap.test Select.test Spectral.test Timstat.test
\
Timsel
stat.test
Vertin
t.test
Ymonstat
.test
Fld
stat.test
\
Fld
pctl.test
Ens
stat.test
Enspctl.test Merstat
.test
\
Zonstat.test Afterburner.test Detrend.test Arithc
.test
\
Arith.test Expr.test Gradsdes.test Collgrid.test threads
.test
\
tsformat.test wildcard.test
MapReduce.test Ninfo.test
CONFIG_CLEAN_VPATH_FILES
=
AM_V_P
=
$
(
am__v_P_@AM_V@
)
am__v_P_
=
$
(
am__v_P_@AM_DEFAULT_V@
)
...
...
@@ -524,7 +525,7 @@ TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
# tests which should pass
TESTS
=
threads.test tsformat.test wildcard.test File.test Read_grib.test Read_netcdf.test Copy_netcdf.test Cat.test Gridarea.test
\
Detrend.test Genweights.test Remap.test Select.test Spectral.test
\
Ensstat.test Enspctl.test Fldstat.test Fldpctl.test Merstat.test Zonstat.test Timstat.test Ymonstat.test
\
Ensstat.test Enspctl.test Fldstat.test Fldpctl.test Merstat.test Zonstat.test Timstat.test
Timselstat.test
Ymonstat.test
\
Vertint.test Afterburner.test Arithc.test Arith.test Expr.test
\
Gradsdes.test Collgrid.test MapReduce.test Ninfo.test
...
...
@@ -597,6 +598,8 @@ Spectral.test: $(top_builddir)/config.status $(srcdir)/Spectral.test.in
cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/
$@
Timstat.test
:
$(top_builddir)/config.status $(srcdir)/Timstat.test.in
cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/
$@
Timselstat.test
:
$(top_builddir)/config.status $(srcdir)/Timselstat.test.in
cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/
$@
Vertint.test
:
$(top_builddir)/config.status $(srcdir)/Vertint.test.in
cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/
$@
Ymonstat.test
:
$(top_builddir)/config.status $(srcdir)/Ymonstat.test.in
...
...
test/Timselstat.test.in
0 → 100644
View file @
d3a54b85
#! @SHELL@
echo 1..9 # Number of tests to be executed.
#
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout$$
CDOERR=cerr$$
TYPE=timsel
STATS="min max sum avg mean std std1 var var1"
NTEST=1
#
IFILE=$DATAPATH/ts_mm_5years
#
for STAT in $STATS; do
RSTAT=0
RFILE=$DATAPATH/year${STAT}_ref
OFILE=${TYPE}${STAT}_res
CDOTEST="${TYPE}$STAT"
CDOCOMMAND="$CDO ${TYPE}${STAT},12 $IFILE $OFILE"
echo "Running test: $NTEST"
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT+=1
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
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+=1
rm -f $OFILE
done
#
rm -f $CDOOUT $CDOERR
#
exit 0
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment