mirror of https://github.com/ecmwf/eccodes.git
Testing: unpacking ascii
This commit is contained in:
parent
408e186241
commit
6bf3940027
|
@ -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=`${tools_dir}/bufr_get -p edition,identifier aaen_55.bufr`
|
||||||
[ "$id" = "4 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
|
# Test "-p" switch
|
||||||
|
|
|
@ -201,6 +201,11 @@ set -e
|
||||||
[ $status -ne 0 ]
|
[ $status -ne 0 ]
|
||||||
grep -q "Invalid file offset" $tempText
|
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
|
# Clean up
|
||||||
rm -f $temp1 $temp2 $tempText $tempLog
|
rm -f $temp1 $temp2 $tempText $tempLog
|
||||||
|
|
Loading…
Reference in New Issue