From 0e45a1b7d42ea4af5824f9862590b64bcb0e2b13 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 11 Aug 2022 13:57:25 +0100 Subject: [PATCH] ECC-1425: Add tests --- tests/CMakeLists.txt | 1 + tests/grib_ecc-1425.sh | 72 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100755 tests/grib_ecc-1425.sh diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 2d1fce5dc..344004292 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -209,6 +209,7 @@ if( HAVE_BUILD_TOOLS ) grib_ecc-1001 grib_ecc-1030 grib_ecc-1397 + grib_ecc-1425 grib_set_bytes grib_set_force bufr_ecc-556 diff --git a/tests/grib_ecc-1425.sh b/tests/grib_ecc-1425.sh new file mode 100755 index 000000000..16af3d11a --- /dev/null +++ b/tests/grib_ecc-1425.sh @@ -0,0 +1,72 @@ +#!/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 + +label="grib_ecc-1425_test" + +tempGrib=temp.$label.grib +tempFilt=temp.${label}.filt + +sample_grib1=$ECCODES_SAMPLES_PATH/GRIB1.tmpl +sample_grib2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl + +cat > $tempFilt < $tempFilt <