From e637b26e76a0fc2afc0baf3a8baffdc6f5259c33 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 19 Jan 2024 14:57:30 +0000 Subject: [PATCH] Testing: Increase coverage --- tests/grib_dump.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/grib_dump.sh b/tests/grib_dump.sh index ef84af3f1..6355ea2f2 100755 --- a/tests/grib_dump.sh +++ b/tests/grib_dump.sh @@ -104,15 +104,26 @@ ${tools_dir}/grib_dump -s year=1909 $file > $temp 2>&1 grep -q "dataDate = 19090206" $temp # Skip handle +file=$data_dir/sample.grib2 ${tools_dir}/grib_dump -w count=4 $file > $temp 2>&1 -ECCODES_DEBUG=1 ${tools_dir}/grib_dump $data_dir/sample.grib2 > $temp 2>&1 +file=$data_dir/sample.grib2 +ECCODES_DEBUG=1 ${tools_dir}/grib_dump $file > $temp 2>&1 + + +# Dump long array +# ---------------- +input=$data_dir/lfpw.grib1 +${tools_dir}/grib_dump -w count=1 -p SPD $input + # Error conditions #----------------------------------------------------------- +file=$data_dir/sample.grib2 ${tools_dir}/grib_dump -p nonexist $file > $temp 2>&1 grep -q "Key/value not found" $temp + # Unreadable message #----------------------------------------------------------- tempOut=temp.$label.out