From 62caaf55845216838484d8f6a915bded163f9f21 Mon Sep 17 00:00:00 2001 From: shahramn Date: Tue, 20 Aug 2024 17:16:40 +0100 Subject: [PATCH] Testing: grib_compare options -A -T --- tests/grib_compare.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/grib_compare.sh b/tests/grib_compare.sh index 0f310e768..1ac1f1462 100755 --- a/tests/grib_compare.sh +++ b/tests/grib_compare.sh @@ -157,6 +157,13 @@ set -e [ $status -eq 1 ] grep -q "Invalid absolute error" $outfile +set +e +${tools_dir}/grib_compare -A badnum -R 88 $infile $temp1 >$outfile 2>&1 +status=$? +set -e +[ $status -eq 1 ] +grep -q "Invalid absolute error" $outfile + # ---------------------------------------- # ECC-355: -R with "all" option @@ -175,6 +182,12 @@ ${tools_dir}/grib_compare -b $BLACKLIST -R all=2 $temp1 $temp2 cp ${data_dir}/tigge_cf_ecmwf.grib2 $temp1 ${tools_dir}/grib_compare -w typeOfLevel=surface ${data_dir}/tigge_cf_ecmwf.grib2 $temp1 + +# ---------------------------------------- +# Use -T switch +# ---------------------------------------- +${tools_dir}/grib_compare -T5 ${data_dir}/tigge_cf_ecmwf.grib2 ${data_dir}/tigge_cf_ecmwf.grib2 + # ---------------------------------------- # Summary mode (-f) # ----------------------------------------