From cf6a64afad409a93a00dcb791bfa779e1ad58182 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 13 Jul 2023 10:17:00 +0000 Subject: [PATCH] Testing: ECC-1621 --- tests/grib_compare.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/grib_compare.sh b/tests/grib_compare.sh index b6386ca08..7d8cb40b5 100755 --- a/tests/grib_compare.sh +++ b/tests/grib_compare.sh @@ -13,11 +13,22 @@ label="grib_compare_test" REDIRECT=/dev/null -infile="${data_dir}/regular_latlon_surface.grib1" -outfile=${infile}.compare.$$ - +outfile=temp.$label.$$ rm -f $outfile + +# Header (meta-data) keys +infile=$ECCODES_SAMPLES_PATH/reduced_gg_pl_32_grib2.tmpl +${tools_dir}/grib_set -d4 $infile $outfile +set +e +${tools_dir}/grib_compare $infile $outfile +status=$? +set -e +[ $status -eq 1 ] +${tools_dir}/grib_compare -H $infile $outfile + + +infile="${data_dir}/regular_latlon_surface.grib1" ${tools_dir}/grib_set -s shortName=2d $infile $outfile ${tools_dir}/grib_compare -b indicatorOfParameter,paramId,shortName $infile $outfile > $REDIRECT