Testing: BUFR operators

This commit is contained in:
Shahram Najm 2024-01-23 15:35:53 +00:00
parent f09051b3f5
commit 564d235455
1 changed files with 18 additions and 0 deletions

View File

@ -105,6 +105,24 @@ cat $tempErr
grep -q "Input output problem" $tempErr
#-----------------------------------------------------------
# Test: with invalid operator
#-----------------------------------------------------------
cat > $fRules <<EOF
set unexpandedDescriptors={ 285000, 1001 };
set pack=1;
write;
EOF
f="$ECCODES_SAMPLES_PATH/BUFR4.tmpl"
set +e
${tools_dir}/codes_bufr_filter $fRules $f 2>> $fLog 1>> $fLog
status=$?
set -e
[ $status -ne 0 ]
grep -q "unsupported operator" $fLog
# ------------------------
# Unreadable message
# ------------------------