mirror of https://github.com/ecmwf/eccodes.git
Testing: Detect spaces in shortNames
This commit is contained in:
parent
a2936dcecb
commit
49c0aeb461
|
@ -53,6 +53,18 @@ for paramIdFile in $paramIdFiles; do
|
|||
fi
|
||||
done
|
||||
|
||||
|
||||
# -----------------------------------
|
||||
echo "Check for bad shortNames"
|
||||
# -----------------------------------
|
||||
shortNameFile="$ECCODES_DEFINITION_PATH/grib2/shortName.def"
|
||||
grep "^'.*=" $shortNameFile | sed -e 's/ = {//' > $tempText
|
||||
set +e
|
||||
grep ' ' $tempText # This grep should fail. No spaces must be found
|
||||
status=$?
|
||||
set -e
|
||||
[ $status -ne 0 ]
|
||||
|
||||
# First check the GRIB2 paramId.def and shortName.def
|
||||
# ----------------------------------------------------
|
||||
$EXEC ${test_dir}/grib_check_param_concepts paramId $ECCODES_DEFINITION_PATH/grib2/paramId.def
|
||||
|
|
Loading…
Reference in New Issue