sanity: do not check source files in *.dir/*

Because gal2c generates some C++ sources that do not match our coding
convention and should not be checked.

* tests/sanity/80columns.test, tests/sanity/style.test: Do not test
files in tests' work directories.
This commit is contained in:
Alexandre Duret-Lutz 2016-11-24 20:48:28 +01:00
parent 1afb76a630
commit 22292e6058
2 changed files with 5 additions and 2 deletions

View file

@ -48,7 +48,9 @@ for dir in "${srcdir-.}/../../spot" "${srcdir-.}/.."; do
-o -name "${1-*}.hxx" \ -o -name "${1-*}.hxx" \
-o -name "${1-*}.cc" \ -o -name "${1-*}.cc" \
-o -name "${1-*}.py" \ -o -name "${1-*}.py" \
-o -name "${1-*}.test" \) -a -type f -a -print | -o -name "${1-*}.test" \) \
-a -not -path '*.dir/*' \
-a -type f -a -print |
while read file; do while read file; do
if (expand $file | grep -q $x) 2>/dev/null; then if (expand $file | grep -q $x) 2>/dev/null; then
if grep 'GNU Bison' "$file" >/dev/null || if grep 'GNU Bison' "$file" >/dev/null ||

View file

@ -64,6 +64,7 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do
-o -name "${1-*}.hxx" \ -o -name "${1-*}.hxx" \
-o -name "${1-*}.cc" \ -o -name "${1-*}.cc" \
-o -name "${1-*}.test" \) \ -o -name "${1-*}.test" \) \
-a -not -path '*.dir/*' \
-a -type f -a -print | -a -type f -a -print |
while read file; do while read file; do