Testing: unpacking ascii

This commit is contained in:
Shahram Najm 2023-08-22 20:35:46 +01:00
parent 408e186241
commit 6bf3940027
2 changed files with 10 additions and 0 deletions

View File

@ -36,6 +36,11 @@ id=`${tools_dir}/bufr_get -p edition,identifier avhn_87.bufr`
id=`${tools_dir}/bufr_get -p edition,identifier aaen_55.bufr`
[ "$id" = "4 BUFR" ]
set +e
${tools_dir}/bufr_get -p identifier:d avhn_87.bufr
status=$?
set -e
[ $status -ne 0 ]
#-------------------------------------------
# Test "-p" switch

View File

@ -201,6 +201,11 @@ set -e
[ $status -ne 0 ]
grep -q "Invalid file offset" $tempText
# Decode an ascii key as double
file=$ECCODES_SAMPLES_PATH/reduced_gg_pl_32_grib2.tmpl
grib_check_key_equals $file 'expver:d' 1
grib_check_key_equals $file 'expver:s' '0001'
# Clean up
rm -f $temp1 $temp2 $tempText $tempLog