mirror of https://github.com/ecmwf/eccodes.git
Testing: compare with -f
This commit is contained in:
parent
af7778cbdd
commit
f80aa163f1
|
@ -328,6 +328,17 @@ set -e
|
||||||
[ $status -ne 0 ]
|
[ $status -ne 0 ]
|
||||||
grep -q "Failed to unpack 2nd message" $fLog
|
grep -q "Failed to unpack 2nd message" $fLog
|
||||||
|
|
||||||
|
# ----------------------------------------
|
||||||
|
# Summary mode (-f)
|
||||||
|
# ----------------------------------------
|
||||||
|
set +e
|
||||||
|
${tools_dir}/bufr_compare -f aaen_55.bufr aben_55.bufr > $fLog 2>&1
|
||||||
|
status=$?
|
||||||
|
set -e
|
||||||
|
[ $status -eq 1 ]
|
||||||
|
grep -q "Summary of different key values" $fLog
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
# -------------
|
# -------------
|
||||||
|
|
|
@ -175,6 +175,16 @@ ${tools_dir}/grib_compare -b $BLACKLIST -R all=2 $temp1 $temp2
|
||||||
cp ${data_dir}/tigge_cf_ecmwf.grib2 $temp1
|
cp ${data_dir}/tigge_cf_ecmwf.grib2 $temp1
|
||||||
${tools_dir}/grib_compare -w typeOfLevel=surface ${data_dir}/tigge_cf_ecmwf.grib2 $temp1
|
${tools_dir}/grib_compare -w typeOfLevel=surface ${data_dir}/tigge_cf_ecmwf.grib2 $temp1
|
||||||
|
|
||||||
|
# ----------------------------------------
|
||||||
|
# Summary mode (-f)
|
||||||
|
# ----------------------------------------
|
||||||
|
set +e
|
||||||
|
${tools_dir}/grib_compare -f ${data_dir}/tigge_cf_ecmwf.grib2 ${data_dir}/tigge_pf_ecmwf.grib2 > $outfile 2>&1
|
||||||
|
status=$?
|
||||||
|
set -e
|
||||||
|
[ $status -eq 1 ]
|
||||||
|
grep -q "indicatorOfUnitForTimeIncrement . 7 different" $outfile
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
# ECC-651: Two-way (symmetric) comparison
|
# ECC-651: Two-way (symmetric) comparison
|
||||||
|
|
Loading…
Reference in New Issue