From 02ffe193156f0ea931b2b5e36f66dcaf1fca1133 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 21 Jul 2023 16:56:57 +0100 Subject: [PATCH] Testing: Split long tests --- tests/CMakeLists.txt | 1 + tests/bufr_filter_misc.sh | 82 ----------------------------- tests/bufr_operators.sh | 106 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 82 deletions(-) create mode 100755 tests/bufr_operators.sh diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7c9ccc23f..baeda6ef4 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -126,6 +126,7 @@ if( HAVE_BUILD_TOOLS ) bufr_ecc-359 bufr_ecc-517 bufr_rdbSubTypes + bufr_operators grib_efas grib_sh_imag grib_spectral diff --git a/tests/bufr_filter_misc.sh b/tests/bufr_filter_misc.sh index 495184149..de6c6d527 100755 --- a/tests/bufr_filter_misc.sh +++ b/tests/bufr_filter_misc.sh @@ -1255,43 +1255,6 @@ diff ${f}.log.ref ${f}.log rm -f ${f}.log ${f}.log.ref ${f}.out $fLog $fRules -#----------------------------------------------------------- -# Test: change width using operator 201YYY -#----------------------------------------------------------- -HIGH_TEMPERATURE=10000 -cat > $fRules < $fRules <width]"; - write; -EOF -${tools_dir}/codes_bufr_filter -o ${f}.out $fRules $f > ${f}.log - -cat > ${f}.log.ref < $fRules < $f.log - -cat > $f.log.ref < $fRules < $tempFilt </dev/null +status=$? +set -e +[ $status -ne 0 ] + +# Now change the width of airTemperature to allow high value +cat > $tempFilt <width]"; + write; +EOF +${tools_dir}/codes_bufr_filter -o $tempBufr $tempFilt $input > $tempLog + +cat > $tempRef < $tempFilt < $tempLog + +cat > $tempRef < $tempFilt <