From 8c1719dadd498ae2388e5099360b5d4b2e79100e Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 15 Feb 2024 15:22:32 +0000 Subject: [PATCH] Testing: Accessor suppressed --- tests/grib_suppressed.sh | 51 ++++++++++++---------------------------- 1 file changed, 15 insertions(+), 36 deletions(-) diff --git a/tests/grib_suppressed.sh b/tests/grib_suppressed.sh index 39a42dbe4..046eebfb5 100755 --- a/tests/grib_suppressed.sh +++ b/tests/grib_suppressed.sh @@ -17,19 +17,6 @@ tempFilt=temp.${label}.filt tempRef=temp.${label}.ref sample2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl -cat > $tempFilt <$tempErr -status=$? -set -e -[ $status -ne 0 ] - -cat $tempErr - cat > $tempRef < $tempFilt + set +e + ${tools_dir}/grib_filter $tempFilt $sample2 2>$tempErr + status=$? + set -e + [ $status -ne 0 ] + cat $tempErr + diff $tempRef $tempErr +} -# Try decoding as int and double too -cat > $tempFilt <$tempErr -status=$? -set -e -[ $status -ne 0 ] -grep -q "is unavailable" $tempErr +do_tests "" +do_tests ":i" +do_tests ":d" -cat > $tempFilt <$tempErr -status=$? -set -e -[ $status -ne 0 ] -grep -q "is unavailable" $tempErr - # Clean up rm -f $tempFilt $tempErr $tempRef