From 2715578e9d4d0e85c89a312967f6e037b78c83e8 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 7 Apr 2022 17:14:35 +0100 Subject: [PATCH] ECC-1379: Add a test --- tests/grib_dump_samples.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/grib_dump_samples.sh b/tests/grib_dump_samples.sh index 10fda5a2d..db5baaaa4 100755 --- a/tests/grib_dump_samples.sh +++ b/tests/grib_dump_samples.sh @@ -52,4 +52,13 @@ if [ $HAVE_AEC -eq 1 ]; then ${tools_dir}/grib_dump -O $temp fi +# Check ifs_samples/grib1_mlgrib2_ccsds +# Those that are GRIB2 and for grid-point data must be CCSDS packed +g2_samples="gg_ml.tmpl gg_sfc_grib2.tmpl" +for s in $g2_samples; do + sf=${proj_dir}/ifs_samples/grib1_mlgrib2_ccsds/$s + grib_check_key_equals $sf "edition,packingType" "2 grid_ccsds" +done + + rm -f $temp