ECC-1605: Testing

This commit is contained in:
Shahram Najm 2023-06-01 23:02:41 +01:00
parent cd35aeb2eb
commit d43491f0fa
1 changed files with 14 additions and 13 deletions

View File

@ -77,20 +77,21 @@ grep -q "Trying to encode a negative value of -1 for key of type unsigned" $temp
# ECC-1605: Out-of-bounds value for signed keys # ECC-1605: Out-of-bounds value for signed keys
# ---------------------------------------------------- # ----------------------------------------------------
input=$ECCODES_SAMPLES_PATH/GRIB2.tmpl if [ $ECCODES_ON_WINDOWS -eq 0 ]; then
set +e input=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
${tools_dir}/grib_set -s forecastTime=2147483648 $input $outfile 2>$temp set +e
status=$? ${tools_dir}/grib_set -s forecastTime=2147483648 $input $outfile 2>$temp
set -e status=$?
[ $status -ne 0 ] set -e
grep -q "Trying to encode value of 2147483648 but the allowable range is -2147483648 to 2147483647" $temp [ $status -ne 0 ]
grep -q "Trying to encode value of 2147483648 but the allowable range is -2147483648 to 2147483647" $temp
set +e
${tools_dir}/grib_set -s forecastTime=-2147483650 $input $outfile 2>$temp
status=$?
set -e
[ $status -ne 0 ]
set +e
${tools_dir}/grib_set -s forecastTime=-2147483650 $input $outfile 2>$temp
status=$?
set -e
[ $status -ne 0 ]
fi
# GRIB-941: encoding of GRIB2 angles # GRIB-941: encoding of GRIB2 angles
# ----------------------------------- # -----------------------------------