ECC-1431: Preparations for testing

This commit is contained in:
Eugen Betke 2022-07-28 14:16:21 +00:00
parent c2c66903d0
commit 43c67b6049
3 changed files with 32 additions and 0 deletions

View File

@ -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)

6
tests/grib_ecc-1431.c Normal file
View File

@ -0,0 +1,6 @@
#include "grib_api_internal.h"
int main(int argc, char** argv) {
/* Assert(!"Socken"); */
return 0;
}

19
tests/grib_ecc-1431.sh Executable file
View File

@ -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