diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7de14c053..7c9ccc23f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -181,6 +181,8 @@ if( HAVE_BUILD_TOOLS ) bufr_wmo_tables bufr_extract_headers extract_offsets + bufr_ecc-147 + bufr_ecc-389 bufr_ecc-673 bufr_ecc-428 bufr_ecc-286 diff --git a/tests/bufr_ecc-147.sh b/tests/bufr_ecc-147.sh new file mode 100755 index 000000000..06514f151 --- /dev/null +++ b/tests/bufr_ecc-147.sh @@ -0,0 +1,42 @@ +#!/bin/sh +# (C) Copyright 2005- ECMWF. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by +# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. +# + +. ./include.ctest.sh + +# Define a common label for all the tmp files +label="bufr_ecc-147_test" + +tempBufr=temp.$label.bufr +tempFilt=temp.$label.filt + +cat > $tempFilt < $tempFilt < $tempFilt < $tempOut + +cat > $tempRef <> $fLog 1>> $fLog ${tools_dir}/bufr_compare $fout ${fout}.ref #2>> $fLog 1>> $fLog +rm -f $fout -#----------------------------------------------------------- -# ECC-147 -#----------------------------------------------------------- -cat > $fRules < $fRules <> $fLog -echo "file: $f" >> $fLog - -${tools_dir}/codes_bufr_filter -o ${f}.out $fRules $f - -cat > $fRules < ${f}.log - -cat > ${f}.log.ref <