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