From 352d8ca27d28ff237f8e4ccb0be909abde23401e Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 27 May 2021 17:24:53 +0100 Subject: [PATCH] ECC-1247: test --- tests/grib_dump_debug.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/grib_dump_debug.sh b/tests/grib_dump_debug.sh index 8ba66bfbf..00afd1f46 100755 --- a/tests/grib_dump_debug.sh +++ b/tests/grib_dump_debug.sh @@ -11,7 +11,7 @@ . ./include.sh label="grib_dump_debug" temp=temp.$label.txt - +set -u REDIRECT=/dev/null if [ $HAVE_MEMFS -eq 1 ]; then @@ -94,4 +94,12 @@ for file in $files; do fi done +# ECC-1247: indicate which keys can have values which are 'missing' +# ------------------------------------------------------------------ +infile=${data_dir}/sample.grib2 +${tools_dir}/grib_dump -D $infile > $temp +grep -q "unsigned hoursAfterDataCutoff = 0 (can be missing)" $temp +grep -q "unsigned iDirectionIncrement = 2000000 (can be missing)" $temp + + rm -f $temp