Testing: Exclude symlinks

This commit is contained in:
shahramn 2024-08-22 13:55:53 +01:00
parent 4ded321aab
commit 189f1dcd1b
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,9 @@ tempOut=temp.$label.txt
[ -z "$ECCODES_DEFINITION_PATH" ] || ECCODES_DEFINITION_PATH=`${tools_dir}/codes_info -d` [ -z "$ECCODES_DEFINITION_PATH" ] || ECCODES_DEFINITION_PATH=`${tools_dir}/codes_info -d`
for file in `find ${ECCODES_DEFINITION_PATH}/ -name '*.def' -print | grep -v grib3/ | grep -v metar/ | grep -v taf/` # Ignore symbolic links
# Ignore unsupported formats e.g., TAF, METAR
for file in `find ${ECCODES_DEFINITION_PATH}/ -name '*.def' -type f -print | grep -v grib3/ | grep -v metar/ | grep -v taf/`
do do
${bin_dir}/codes_parser $file > $REDIRECT ${bin_dir}/codes_parser $file > $REDIRECT
done done
@ -29,4 +31,5 @@ set -e
[ $status -ne 0 ] [ $status -ne 0 ]
grep -q "Parser: syntax error" $tempOut grep -q "Parser: syntax error" $tempOut
# Clean up
rm -f $tempOut rm -f $tempOut