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

add Cond2.py.test.in

parent d8698d4c
No related branches found
No related tags found
1 merge request!119M214003/develop
Pipeline #41229 passed
#! @PYTHON@
from cdoTest import *
FORMAT="-f srv -b 32"
OPERATORS=["ifthenelse"]
CONST=-77
IFILE1="infile1"
IFILE2="infile2"
CFILE="cfile"
test_module = TestModule()
test_module.prepare(f'{CDO} {FORMAT} mul -topo,global_10 -mask,global_10 {IFILE1}')
test_module.prepare(f'{CDO} {FORMAT} -temp,global_10 {IFILE2}')
test_module.prepare(f'{CDO} {FORMAT} const,{CONST},{IFILE1} {CFILE}')
for OPERATOR in OPERATORS:
RFILE=f'{DATAPATH}/cond_{OPERATOR}_ref'
OFILE=f'cond_{OPERATOR}_res'
t=TAPTest(OPERATOR)
t.add(f'{CDO} {FORMAT} {OPERATOR} {IFILE1} {IFILE2} {CFILE} {OFILE}')
t.add(f'{CDO} diff {OFILE} {RFILE}')
t.clean(OFILE)
test_module.add(t)
t.clean(IFILE1,IFILE2,CFILE)
test_module.run()
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