Testing: filter GTS headers

This commit is contained in:
Shahram Najm 2024-01-10 16:05:58 +00:00
parent cf73750268
commit cbd277dc64
1 changed files with 15 additions and 0 deletions

View File

@ -432,7 +432,22 @@ set -e
grep -q "Invalid argument" $tempOut
# GTS header
# ---------------
input=$data_dir/gts.grib
echo 'write;' | ${tools_dir}/grib_filter -g -o $tempGrib - $input
cmp $input $tempGrib
echo 'write;' | ${tools_dir}/grib_filter -o $tempGrib - $input
set +e
cmp $input $tempGrib
status=$?
set -e
[ $status -ne 0 ]
# Bad filter
# ----------------
set +e
${tools_dir}/grib_filter a_non_existent_filter_file $ECCODES_SAMPLES_PATH/GRIB2.tmpl > $tempOut 2>&1
status=$?