Testing: Detect spaces in shortNames

This commit is contained in:
Shahram Najm 2024-11-11 11:23:22 +00:00
parent a2936dcecb
commit 49c0aeb461
1 changed files with 12 additions and 0 deletions

View File

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