From 43c67b604999e8b9033abb4dd2b95ab4826b0c7f Mon Sep 17 00:00:00 2001 From: Eugen Betke Date: Thu, 28 Jul 2022 14:16:21 +0000 Subject: [PATCH] ECC-1431: Preparations for testing --- tests/CMakeLists.txt | 7 +++++++ tests/grib_ecc-1431.c | 6 ++++++ tests/grib_ecc-1431.sh | 19 +++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 tests/grib_ecc-1431.c create mode 100755 tests/grib_ecc-1431.sh diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 734b9a63f..ca3307366 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -49,6 +49,10 @@ list(APPEND test_bins grib_lam_bf grib_lam_gp) +if( HAVE_AEC AND ENABLE_EXTRA_TESTS ) + list(APPEND test_bins grib_ecc-1431) +endif() + foreach( tool ${test_bins} ) # here we use the fact that each tool has only one C file that matches its name ecbuild_add_executable( TARGET ${tool} @@ -265,6 +269,9 @@ if( HAVE_BUILD_TOOLS ) codes_split_file grib_mars_keys) + if( HAVE_AEC AND ENABLE_EXTRA_TESTS ) + list(APPEND tests_extra grib_ecc-1431) + endif() if( HAVE_FORTRAN AND ENABLE_EXTRA_TESTS ) list(APPEND tests_extra bufr_dump_encode_fortran) list(APPEND tests_extra bufr_dump_decode_fortran) diff --git a/tests/grib_ecc-1431.c b/tests/grib_ecc-1431.c new file mode 100644 index 000000000..be51c3040 --- /dev/null +++ b/tests/grib_ecc-1431.c @@ -0,0 +1,6 @@ +#include "grib_api_internal.h" + +int main(int argc, char** argv) { +/* Assert(!"Socken"); */ + return 0; +} diff --git a/tests/grib_ecc-1431.sh b/tests/grib_ecc-1431.sh new file mode 100755 index 000000000..08614d0da --- /dev/null +++ b/tests/grib_ecc-1431.sh @@ -0,0 +1,19 @@ +#!/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 +set -u +REDIRECT=/dev/null +label="grib_ECC-1431_test" # Change prod to bufr or grib etc +temp=temp.$label + +$EXEC $test_dir/grib_ecc-1431 + +rm -f $temp