From b9524323378f78767f4a64e75483f82c9b1747e2 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 5 Jan 2023 17:58:38 +0000 Subject: [PATCH] ECC-1502: Add test --- tests/bufr_filter_misc.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/bufr_filter_misc.sh b/tests/bufr_filter_misc.sh index 80c68e9b5..6e2171a4f 100755 --- a/tests/bufr_filter_misc.sh +++ b/tests/bufr_filter_misc.sh @@ -564,6 +564,27 @@ set -e ${tools_dir}/codes_bufr_filter -f $fRules $f 2>>$fLog 1>>$fLog +#----------------------------------------------------------- +# Test: with invalid string key +#----------------------------------------------------------- +cat > $fRules <> $fLog +${tools_dir}/codes_bufr_filter $fRules $f 2>> $fLog 1>> $fLog +if [ $? -eq 0 ]; then + echo "bufr_filter should have failed if string key is invalid" >&2 + exit 1 +fi +set -e + + #---------------------------------------------------- # Test: format specifier for integer keys #----------------------------------------------------