File: Gradsdes.py.test.in

package info (click to toggle)
cdo 2.5.4-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 49,968 kB
  • sloc: cpp: 180,221; ansic: 95,352; sh: 7,292; f90: 6,089; makefile: 1,975; ruby: 1,078; csh: 1,020; python: 995; fortran: 319; pascal: 219; perl: 9
file content (25 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! @PYTHON@
#
from cdoTest import *
#
IFILE=f'{DATAPATH}/pl_data.grb'
OFILE="pl_data.grb"
RFILE1="pl_data.ctl"
RFILE2="pl_data.gmp"
#
OPER="gradsdes"
#
test_module=TestModule()
test_module.prepare(f'cp {IFILE} {OFILE}')
t = TAPTest(OPER)
#
t.add(f'{CDO} {OPER} {OFILE}')
t.add(f'head -12 {DATAPATH}/{RFILE1} > h1')
t.add(f'head -12 {RFILE1} > h2')
t.add('diff h1 h2')
t.add(f'cmp -s {DATAPATH}/{RFILE2}  {RFILE2}')
#
t.clean("h1","h2",OFILE,RFILE2,RFILE1)

test_module.add(t)
test_module.run()