mirror of https://github.com/ecmwf/eccodes.git
Add test for grib parameter concept files
This commit is contained in:
parent
ec6ce48e45
commit
3a1783f120
|
@ -97,6 +97,7 @@ ecbuild_add_option( FEATURE ALIGN_MEMORY DESCRIPTION "enable memory align
|
||||||
ecbuild_add_option( FEATURE GRIB_TIMER DESCRIPTION "enable timer" DEFAULT OFF ADVANCED )
|
ecbuild_add_option( FEATURE GRIB_TIMER DESCRIPTION "enable timer" DEFAULT OFF ADVANCED )
|
||||||
ecbuild_add_option( FEATURE ECCODES_THREADS DESCRIPTION "enable POSIX threads" DEFAULT OFF ADVANCED )
|
ecbuild_add_option( FEATURE ECCODES_THREADS DESCRIPTION "enable POSIX threads" DEFAULT OFF ADVANCED )
|
||||||
ecbuild_add_option( FEATURE ECCODES_OMP_THREADS DESCRIPTION "enable OMP threads" DEFAULT OFF ADVANCED )
|
ecbuild_add_option( FEATURE ECCODES_OMP_THREADS DESCRIPTION "enable OMP threads" DEFAULT OFF ADVANCED )
|
||||||
|
ecbuild_add_option( FEATURE ALL_TESTS DESCRIPTION "enable extended regression testing" DEFAULT OFF ADVANCED )
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# macro processing
|
# macro processing
|
||||||
|
|
|
@ -165,3 +165,9 @@ ecbuild_add_test( TARGET eccodes_t_ccsds
|
||||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/ccsds.sh
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/ccsds.sh
|
||||||
TEST_DEPENDS eccodes_download_gribs
|
TEST_DEPENDS eccodes_download_gribs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ecbuild_add_test( TARGET eccodes_t_grib_check_param_concepts
|
||||||
|
TYPE SCRIPT
|
||||||
|
CONDITION ENABLE_ALL_TESTS
|
||||||
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_check_param_concepts.sh
|
||||||
|
)
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Copyright 2005-2016 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.sh
|
||||||
|
|
||||||
|
REDIRECT=/dev/null
|
||||||
|
|
||||||
|
# This script will check the following concept files:
|
||||||
|
# name.def paramId.def shortName.def units.def cfVarName.def
|
||||||
|
#
|
||||||
|
CHECK_DEFS=$ECCODES_DEFINITION_PATH/check_grib_defs.pl
|
||||||
|
|
||||||
|
defs_dirs="
|
||||||
|
$ECCODES_DEFINITION_PATH/grib1
|
||||||
|
$ECCODES_DEFINITION_PATH/grib2
|
||||||
|
$ECCODES_DEFINITION_PATH/grib1/localConcepts/ecmf
|
||||||
|
$ECCODES_DEFINITION_PATH/grib2/localConcepts/ecmf
|
||||||
|
"
|
||||||
|
|
||||||
|
for dir in $defs_dirs; do
|
||||||
|
cd $dir
|
||||||
|
$CHECK_DEFS
|
||||||
|
done
|
Loading…
Reference in New Issue