From 49ae510df2fd23627ee3463cb1729be3d7082513 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Sat, 29 Aug 2020 12:30:03 +0100 Subject: [PATCH] Testing: use bufr_filter instead of bufr_ls --- tests/bufr_ecc-765.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/bufr_ecc-765.sh b/tests/bufr_ecc-765.sh index fafac9945..d4879573e 100755 --- a/tests/bufr_ecc-765.sh +++ b/tests/bufr_ecc-765.sh @@ -17,6 +17,7 @@ label="bufr_ecc-765-test" tempLog=temp.${label}.log tempSupp=temp.${label}.supp +tempFilt=temp.${label}.filt if test "x$ECCODES_TEST_WITH_VALGRIND" = "x"; then echo "Environment variable ECCODES_TEST_WITH_VALGRIND not defined. Test disabled" @@ -30,10 +31,14 @@ tools_dir=$build_dir/bin files=`cat ${data_dir}/bufr/bufr_data_files.txt` VALGRIND_OPTIONS="--error-exitcode=1 --leak-check=full --log-file=$tempLog" +cat > $tempFilt </dev/null + valgrind $VALGRIND_OPTIONS ${tools_dir}/codes_bufr_filter $tempFilt ${data_dir}/bufr/$bf >/dev/null done @@ -56,4 +61,4 @@ done # Clean up -rm -f $tempLog $tempSupp +rm -f $tempLog $tempSupp $tempFilt