diff --git a/tests/bufr_dump_data.sh b/tests/bufr_dump_data.sh index 4f8594755..4a62f27c0 100755 --- a/tests/bufr_dump_data.sh +++ b/tests/bufr_dump_data.sh @@ -55,6 +55,8 @@ export ECCODES_LOG_STREAM=stdout ${tools_dir}/bufr_dump -O ${data_dir}/bufr/$file > $fLog grep -q "parsing include file" $fLog +${tools_dir}/bufr_dump -p ${data_dir}/bufr/$file > $fLog + unset ECCODES_DEBUG unset ECCODES_LOG_STREAM diff --git a/tests/bufr_ecc-379.sh b/tests/bufr_ecc-379.sh index 9ce06692a..851897e71 100755 --- a/tests/bufr_ecc-379.sh +++ b/tests/bufr_ecc-379.sh @@ -23,7 +23,7 @@ tempText=temp.${label}.text tempRef=temp.${label}.ref # -------------------------------------------------------- -# Test 1 +# Test: Maximum value exceeded # -------------------------------------------------------- BufrFile=airs_57.bufr cat > $tempRules < $tempRules <$tempText +status=$? +set -e +[ $status -ne 0 ] +grep -q 'Minimum value .* out of range' $tempText + + # Now set environment variable to turn out-of-range values into 'missing' export ECCODES_BUFR_SET_TO_MISSING_IF_OUT_OF_RANGE=1 ${tools_dir}/codes_bufr_filter -o $tempOut $tempRules $BufrFile 2>$tempText