mirror of https://github.com/ecmwf/eccodes.git
ECC-1495: Additional test
This commit is contained in:
parent
ae4bea5fa9
commit
c0f38fcf88
|
@ -95,5 +95,23 @@ cp $ECMF_DIR/shortName.legacy.def shortName.def
|
||||||
cp $ECMF_DIR/units.legacy.def units.def
|
cp $ECMF_DIR/units.legacy.def units.def
|
||||||
$CHECK_DEFS
|
$CHECK_DEFS
|
||||||
|
|
||||||
|
# -------------------------------
|
||||||
|
echo "Check duplicates"
|
||||||
|
# -------------------------------
|
||||||
|
paramIdFile=$ECCODES_DEFINITION_PATH/grib2/paramId.def
|
||||||
|
pids=$(grep "^'" $paramIdFile | awk -F"'" '{printf "%s\n", $2}')
|
||||||
|
set +e
|
||||||
|
for p in $pids; do
|
||||||
|
# For each paramId found in the top-level WMO file, check if it also exists
|
||||||
|
# in the ECMWF local one
|
||||||
|
grep "'$p'" $ECCODES_DEFINITION_PATH/grib2/localConcepts/ecmf/paramId.def
|
||||||
|
if [ $? -ne 1 ]; then
|
||||||
|
echo "ERROR: check paramId $p. Is it duplicated?"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
set -e
|
||||||
|
|
||||||
|
|
||||||
cd $test_dir
|
cd $test_dir
|
||||||
rm -fr $tempDir
|
rm -fr $tempDir
|
||||||
|
|
Loading…
Reference in New Issue