GRIB-527: prepare for parallel test runs

This commit is contained in:
Shahram Najm 2015-01-26 19:15:00 +00:00
parent 108ed9cce1
commit b927e5a4fe
14 changed files with 15 additions and 13 deletions

View File

@ -20,3 +20,5 @@ status=$?
set -e
# Check command did indeed fail
[ $status != 0 ]
rm $OUTPUT || true

View File

@ -15,7 +15,7 @@ import random
from eccodes import *
INPUT='../../data/constant_field.grib1'
OUTPUT='out.grib'
OUTPUT='out.clone.grib'
VERBOSE=1 # verbose error reporting
def example():

View File

@ -4,4 +4,4 @@
REDIRECT=/dev/null
$PYTHON clone.py 2> $REDIRECT > $REDIRECT
rm out.grib || true
rm -f out.clone.grib || true

View File

@ -14,7 +14,7 @@ import sys
from eccodes import *
INPUT='../../data/sample.grib2'
OUTPUT='out.grib'
OUTPUT='out.mw.grib'
VERBOSE=1 # verbose error reporting
def example():

View File

@ -4,4 +4,4 @@
REDIRECT=/dev/null
$PYTHON multi_write.py 2> $REDIRECT > $REDIRECT
rm out.grib || true
rm -f out.mw.grib || true

View File

@ -14,7 +14,7 @@ import sys
from eccodes import *
INPUT='../../data/tp_ecmwf.grib'
OUTPUT='out.grib'
OUTPUT='out.samples.grib'
VERBOSE=1 # verbose error reporting
def example():

View File

@ -4,4 +4,4 @@
REDIRECT=/dev/null
$PYTHON samples.py 2> $REDIRECT > $REDIRECT
rm out.grib || true
rm -f out.samples.grib || true

View File

@ -13,7 +13,7 @@ from eccodes import *
from datetime import date
INPUT='../../data/regular_latlon_surface_constant.grib1'
OUTPUT='out.grib'
OUTPUT='out.set.grib'
VERBOSE=1 # verbose error reporting
def example():

View File

@ -4,4 +4,4 @@
REDIRECT=/dev/null
$PYTHON set.py 2> $REDIRECT > $REDIRECT
rm out.grib || true
rm -f out.set.grib || true

View File

@ -11,7 +11,7 @@ import sys
from eccodes import *
INPUT = '../../data/regular_latlon_surface.grib1'
OUTPUT = 'out.grib'
OUTPUT = 'out.bmp.grib'
MISSING = 9999
VERBOSE = 1 # verbose error reporting

View File

@ -4,4 +4,4 @@
REDIRECT=/dev/null
$PYTHON set_bitmap.py 2> $REDIRECT > $REDIRECT
rm out.grib || true
rm out.bmp.grib || true

View File

@ -14,7 +14,7 @@ import sys
from eccodes import *
INPUT='../../data/tigge/tigge_ecmf_pl_t.grib'
OUTPUT='out.grib'
OUTPUT='out.set_missing.grib'
VERBOSE=1 # verbose error reporting
def example():

View File

@ -4,4 +4,4 @@
REDIRECT=/dev/null
$PYTHON set_missing.py 2> $REDIRECT > $REDIRECT
rm out.grib || true
rm -f out.set_missing.grib || true

View File

@ -28,7 +28,7 @@ def example():
numberOfCoefficients = 2 * (numberOfLevels + 1)
assert(len(pv) == numberOfCoefficients)
fout = open('out.grib1','w')
fout = open('out.pv.grib1','w')
gid = codes_new_from_samples('reduced_gg_sfc_grib1')
codes_set(gid,'typeOfLevel','hybrid')