Testing: BUFR operators

This commit is contained in:
Shahram Najm 2024-01-23 16:12:00 +00:00
parent 564d235455
commit cdf341eb95
2 changed files with 15 additions and 2 deletions

View File

@ -91,6 +91,19 @@ set -e
fgrep -q "number of overridden reference values (2) different from number of descriptors between operator 203YYY and 203255" $tempText
# No overridden ref vals provided
cat > $tempFilt <<EOF
set unexpandedDescriptors = { 203014, 7030, 203255, 307080, 203000, 7030 };
EOF
set +e
${tools_dir}/codes_bufr_filter -o $tempBufr $tempFilt $sample_bufr4 > $tempText 2>&1
status=$?
set -e
[ $status -ne 0 ]
fgrep -q "Overridden Reference Values array is empty" $tempText
# Ref val too large
cat > $tempFilt <<EOF
set inputOverriddenReferenceValues = { -50000000 }; # Value too large
set unexpandedDescriptors = { 203014, 7030, 203255, 307080, 203000, 7030 };

View File

@ -109,7 +109,7 @@ grep -q "Input output problem" $tempErr
# Test: with invalid operator
#-----------------------------------------------------------
cat > $fRules <<EOF
set unexpandedDescriptors={ 285000, 1001 };
set unexpandedDescriptors={ 263000, 1001 };
set pack=1;
write;
EOF
@ -120,7 +120,7 @@ ${tools_dir}/codes_bufr_filter $fRules $f 2>> $fLog 1>> $fLog
status=$?
set -e
[ $status -ne 0 ]
grep -q "unsupported operator" $fLog
grep -q "unsupported operator 63" $fLog
# ------------------------