From cdf341eb95c05c313083c3fda4f9d6d953951feb Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 23 Jan 2024 16:12:00 +0000 Subject: [PATCH] Testing: BUFR operators --- tests/bufr_ecc-680.sh | 13 +++++++++++++ tests/bufr_filter_fail.sh | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/bufr_ecc-680.sh b/tests/bufr_ecc-680.sh index 6669c030e..e4faece01 100755 --- a/tests/bufr_ecc-680.sh +++ b/tests/bufr_ecc-680.sh @@ -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 < $tempText 2>&1 +status=$? +set -e +[ $status -ne 0 ] +fgrep -q "Overridden Reference Values array is empty" $tempText + + +# Ref val too large cat > $tempFilt < $fRules <> $fLog 1>> $fLog status=$? set -e [ $status -ne 0 ] -grep -q "unsupported operator" $fLog +grep -q "unsupported operator 63" $fLog # ------------------------