mirror of https://github.com/ecmwf/eccodes.git
ECC-1431: Preparations for testing
This commit is contained in:
parent
c2c66903d0
commit
43c67b6049
|
@ -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)
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#include "grib_api_internal.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
/* Assert(!"Socken"); */
|
||||
return 0;
|
||||
}
|
|
@ -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
|
Loading…
Reference in New Issue