Tests: clean up temp data. Remove dependencies between tests (a test should not depend on another one having been run before)

This commit is contained in:
Shahram Najm 2013-11-13 11:51:45 +00:00
parent c60f71b119
commit a67d5a66de
13 changed files with 25 additions and 4 deletions

View File

@ -11,4 +11,4 @@
${examples_dir}precision > /dev/null
rm -f out.grib1

View File

@ -11,6 +11,11 @@
${examples_dir}set > /dev/null
# Create the grib2 file needed for this test
grib1File=${data_dir}/reduced_gaussian_pressure_level.grib1
grib2File=${data_dir}/reduced_gaussian_pressure_level.grib2
${tools_dir}grib_set -s editionNumber=2 $grib1File $grib2File
${examples_dir}set_missing > /dev/null
rm -f out.grib1 out_surface_level.grib2 $grib2File

View File

@ -10,3 +10,4 @@
. ./include.sh
${examples_dir}copy_message > /dev/null
rm -f out.grib1

View File

@ -17,3 +17,5 @@ diff index_f90.out ${data_dir}/index_f90.ok
# if an index file exists then load the index from it
${examples_dir}index > index_f90.out
diff index_f90.out ${data_dir}/index_f90.ok
rm -f index.idx index_f90.out

View File

@ -11,3 +11,4 @@
${examples_dir}multi > multi.out
diff multi.out ${data_dir}/multi.ok
rm -f multi.out

View File

@ -10,3 +10,4 @@
. ./include.sh
${examples_dir}precision > /dev/null
rm -f ${data_dir}/regular_latlon_surface_prec.grib1

View File

@ -23,3 +23,5 @@ GRIB_SAMPLES_PATH=${samples_dir}:${data_dir}
export GRIB_SAMPLES_PATH
${examples_dir}samples > /dev/null
rm -f out.grib1
rm -f ${data_dir}/regular_latlon_surface.grib1.tmpl

View File

@ -10,3 +10,4 @@
. ./include.sh
${examples_dir}set > /dev/null
rm -f out.grib1

View File

@ -9,3 +9,4 @@
. ./include.sh
${examples_dir}set_bitmap > /dev/null
rm -f out.grib

View File

@ -9,4 +9,10 @@
. ./include.sh
# Create the grib2 file needed for this test
grib1File=${data_dir}/reduced_gaussian_pressure_level.grib1
grib2File=${data_dir}/reduced_gaussian_pressure_level.grib2
${tools_dir}grib_set -s editionNumber=2 $grib1File $grib2File
${examples_dir}set_missing > /dev/null
rm -f out_surface_level.grib2 $grib2File

View File

@ -10,3 +10,4 @@
. ./include.sh
${examples_dir}set_pv > /dev/null
rm -f out.grib1

View File

@ -47,7 +47,7 @@ def main():
if VERBOSE:
traceback.print_exc(file=sys.stderr)
else:
print >>sys.stderr,err.msg
print >> sys.stderr,err.msg
return 1

View File

@ -2,7 +2,7 @@
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
#
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
#