mirror of https://github.com/ecmwf/eccodes.git
Testing: Failing cases
This commit is contained in:
parent
9b5452d002
commit
1643dcd31f
|
@ -43,6 +43,12 @@ cmp $ECCODES_DEFINITION_PATH/$f $temp
|
|||
|
||||
# Failing cases
|
||||
# ----------------
|
||||
set +e
|
||||
${tools_dir}/codes_export_resource
|
||||
status=$?
|
||||
set -e
|
||||
[ $status -eq 1 ]
|
||||
|
||||
set +e
|
||||
${tools_dir}/codes_export_resource -d nonexistent $temp
|
||||
status=$?
|
||||
|
@ -55,6 +61,11 @@ status=$?
|
|||
set -e
|
||||
[ $status -eq 1 ]
|
||||
|
||||
set +e
|
||||
${tools_dir}/codes_export_resource -z A B
|
||||
status=$?
|
||||
set -e
|
||||
[ $status -eq 1 ]
|
||||
|
||||
|
||||
# Clean up
|
||||
|
|
|
@ -16,6 +16,7 @@ temp=$label.temp.grib
|
|||
|
||||
# Do all the work in a temporary directory
|
||||
temp_dir=tempdir.${label}
|
||||
rm -rf $temp_dir
|
||||
mkdir -p $temp_dir
|
||||
cd $temp_dir
|
||||
|
||||
|
@ -59,6 +60,14 @@ total=`${tools_dir}/codes_count tigge_ecmwf.grib2_[0-9]*`
|
|||
cat tigge_ecmwf.grib2_[0-9][0-9][0-9] > $temp
|
||||
${tools_dir}/grib_compare $input $temp
|
||||
|
||||
# Failing cases
|
||||
# ----------------
|
||||
set +e
|
||||
${tools_dir}/codes_split_file
|
||||
status=$?
|
||||
set -e
|
||||
[ $status -eq 1 ]
|
||||
|
||||
|
||||
# Clean up
|
||||
cd $test_dir
|
||||
|
|
Loading…
Reference in New Issue