ECC-1330: test

This commit is contained in:
Shahram Najm 2022-01-21 20:52:26 +00:00
parent f0e24edd1c
commit aa3657ab44
1 changed files with 10 additions and 7 deletions

View File

@ -17,15 +17,18 @@ temp=${label}.bufr
sample=$ECCODES_SAMPLES_PATH/BUFR4.tmpl
templates_file="${ECCODES_DEFINITION_PATH}/bufr/templates/BufrTemplate.def"
templates=`cat $templates_file | awk -F= '{print $1}' | tr -d '"'`
# TODO: There is a matching issue with OmpsNadirProfile: mixed up with OmpsTotalColumn.
# So exclude that one
templates=`cat $templates_file | awk -F= '{print $1}' | tr -d '"' | grep -v OmpsNadirProfile`
# Note: bufrTemplate and BufrTemplate are the same key
for t in $templates; do
${tools_dir}/bufr_set -s bufrTemplate=$t $sample $temp
# TODO: There is a matching issue with OmpsNadirProfile: mixed up with OmpsTotalColumn
if [ "$t" != "OmpsNadirProfile" ]; then
res=`${tools_dir}/bufr_get -p BufrTemplate $temp`
[ "$res" = "$t" ]
${tools_dir}/bufr_dump -p $temp > /dev/null
fi
res=`${tools_dir}/bufr_get -p BufrTemplate $temp`
[ "$res" = "$t" ]
${tools_dir}/bufr_dump -p $temp > /dev/null
done
rm -f $temp