From 2a8bf2b2335d1603ca0a93f09b9d85998767e16a Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 21 Jul 2023 14:29:47 +0100 Subject: [PATCH] Testing: BUFR operator 203YYY --- tests/bufr_ecc-680.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/bufr_ecc-680.sh b/tests/bufr_ecc-680.sh index a2abc6f05..d06f56759 100755 --- a/tests/bufr_ecc-680.sh +++ b/tests/bufr_ecc-680.sh @@ -59,5 +59,22 @@ val=`${tools_dir}/bufr_get -s unpack=1 -p heightOfStationGroundAboveMeanSeaLevel val=`${tools_dir}/bufr_get -s unpack=1 -p heightOfBarometerAboveMeanSeaLevel $tempBufr` [ "$val" = "-417" ] +# Add another instance but outside the 203YYY block. Should fail +# -------------------------------------------------------------- +cat > $tempFilt <$tempText +status=$? +[ $status -ne 0 ] +set -e +fgrep -q "Value (-416) out of range" $tempText +# Clean up rm -f $tempBufr $tempFilt $tempText