ECC-1172: Testing

This commit is contained in:
Shahram Najm 2022-11-08 20:47:42 +00:00
parent bee6669f43
commit da5f5aed13
1 changed files with 13 additions and 1 deletions

View File

@ -27,6 +27,13 @@ fBufrTmp=temp.${label}".bufr"
# Define filter rules file
fRules=temp.${label}.filter
set +u
use_valgrind=1
if test "x$ECCODES_TEST_WITH_VALGRIND" = "x"; then
use_valgrind=0
fi
set -u
#-----------------------------------------------------------
# NOTE: not all of our BUFR files pass this test. bufr_filter is limited
# in what it can do compared to Python or Fortran!
@ -59,7 +66,12 @@ do
${tools_dir}/bufr_dump -Efilter $f > $fRules
${tools_dir}/codes_bufr_filter -o $fBufrTmp $fRules $f
if [ $use_valgrind -eq 1 ]; then
PREFIX="valgrind --error-exitcode=1 --leak-check=full "
else
PREFIX=""
fi
$PREFIX ${tools_dir}/codes_bufr_filter -o $fBufrTmp $fRules $f
${tools_dir}/bufr_compare $fBufrTmp $f