mirror of https://github.com/ecmwf/eccodes.git
Testing: Add test for legacy ECMWF parameters
This commit is contained in:
parent
892efe2db8
commit
0ad92612d2
|
@ -10,6 +10,7 @@
|
|||
|
||||
. ./include.sh
|
||||
|
||||
label="grib_check_param_concepts_test"
|
||||
#
|
||||
# Do various checks on the concepts files
|
||||
#
|
||||
|
@ -26,7 +27,6 @@ $EXEC ${test_dir}/grib_check_param_concepts shortName $ECCODES_DEFINITION_PATH/g
|
|||
$EXEC ${test_dir}/grib_check_param_concepts shortName $ECCODES_DEFINITION_PATH/grib2/localConcepts/uerra/shortName.def
|
||||
$EXEC ${test_dir}/grib_check_param_concepts shortName $ECCODES_DEFINITION_PATH/grib2/localConcepts/hydro/shortName.def
|
||||
|
||||
|
||||
# Check the group: name.def paramId.def shortName.def units.def cfVarName.def
|
||||
# ----------------------------------------------------------------------------
|
||||
# Check whether the Test::More Perl module is available
|
||||
|
@ -69,3 +69,25 @@ for dir in $defs_dirs; do
|
|||
cd $dir
|
||||
$CHECK_DEFS
|
||||
done
|
||||
|
||||
cd $test_dir
|
||||
|
||||
# -------------------------------
|
||||
echo "ECMWF legacy parameters..."
|
||||
# -------------------------------
|
||||
ECMF_DIR=$ECCODES_DEFINITION_PATH/grib2/localConcepts/ecmf
|
||||
|
||||
tempDir=temp.${label}.dir
|
||||
rm -fr $tempDir
|
||||
mkdir -p $tempDir
|
||||
cd $tempDir
|
||||
cp $ECMF_DIR/cfName.legacy.def cfName.def
|
||||
cp $ECMF_DIR/cfVarName.legacy.def cfVarName.def
|
||||
cp $ECMF_DIR/name.legacy.def name.def
|
||||
cp $ECMF_DIR/paramId.legacy.def paramId.def
|
||||
cp $ECMF_DIR/shortName.legacy.def shortName.def
|
||||
cp $ECMF_DIR/units.legacy.def units.def
|
||||
$CHECK_DEFS
|
||||
|
||||
cd $test_dir
|
||||
rm -fr $tempDir
|
||||
|
|
Loading…
Reference in New Issue