Testing: Increase coverage

This commit is contained in:
Shahram Najm 2023-08-27 17:25:38 +01:00
parent 59dfea6dfa
commit ba0330bc05
1 changed files with 10 additions and 1 deletions

View File

@ -350,9 +350,18 @@ cat >$tempFilt <<EOF
skip;
EOF
${tools_dir}/grib_filter $tempFilt $ECCODES_SAMPLES_PATH/GRIB2.tmpl > $tempOut
cat $tempOut
cat >$tempFilt <<EOF
assert(edition == 0);
EOF
set +e
${tools_dir}/grib_filter $tempFilt $ECCODES_SAMPLES_PATH/GRIB2.tmpl > $tempOut
status=$?
set -e
[ $status -ne 0 ]
grep "Assertion failure" $tempOut
# Clean up
rm -f $tempGrib $tempFilt $tempOut $tempRef
rm -f ${data_dir}/formatint.rules ${data_dir}/binop.rules