From 16c99d7f36f3abcacbe7ab25b426eec864a653c3 Mon Sep 17 00:00:00 2001 From: shahramn Date: Thu, 29 Feb 2024 21:38:15 +0000 Subject: [PATCH] Testing: dump on repeated keys --- tests/grib_dump.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/grib_dump.sh b/tests/grib_dump.sh index c2844ec0d..c413f93f1 100755 --- a/tests/grib_dump.sh +++ b/tests/grib_dump.sh @@ -111,6 +111,16 @@ file=$data_dir/sample.grib2 ECCODES_DEBUG=1 ${tools_dir}/grib_dump $file > $temp 2>&1 +# Repeated key numberOfSection +file=$data_dir/sample.grib2 +${tools_dir}/grib_dump -O $file > $temp +grep -q "numberOfSection = 1" $temp +grep -q "numberOfSection = 3" $temp +grep -q "numberOfSection = 4" $temp +grep -q "numberOfSection = 5" $temp +grep -q "numberOfSection = 7" $temp + + # Dump long array # ---------------- input=$data_dir/lfpw.grib1