Testing: Add tests for large constant fields (GRIB1 and GRIBEX mode)

This commit is contained in:
Shahram Najm 2022-06-01 15:18:56 +01:00
parent 5d7c42617e
commit c1e85cff6d
1 changed files with 7 additions and 0 deletions

View File

@ -142,5 +142,12 @@ grib_check_key_equals $temp const,bitsPerValue,section7Length '1 0 5'
${tools_dir}/grib_set -s produceLargeConstantFields=1 -d1 $input $temp
grib_check_key_equals $temp const,bitsPerValue,section7Length '1 16 997'
# GRIB1: when GRIBEX mode is enabled, we also get a large constant field
input=${data_dir}/simple.grib
${tools_dir}/grib_set -d1 $input $temp
grib_check_key_equals $temp const,bitsPerValue,section4Length '1 0 12'
ECCODES_GRIBEX_MODE_ON=1 ${tools_dir}/grib_set -d1 $input $temp
grib_check_key_equals $temp const,bitsPerValue,section4Length '1 12 8966'
rm -f $temp $temp_err