mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
tests: fix 'find' portability issues
Reported by Stefano Lattarini. http://lists.gnu.org/archive/html/bug-bison/2013-06/msg00000.html * tests/output.at (AT_CHECK_OUTPUT): Use Perl instead.
This commit is contained in:
@@ -37,10 +37,11 @@ foo: {};
|
|||||||
|
|
||||||
]AT_BISON_CHECK([$3 $1 $5], 0)[
|
]AT_BISON_CHECK([$3 $1 $5], 0)[
|
||||||
# Ignore the files non-generated files
|
# Ignore the files non-generated files
|
||||||
]AT_CHECK([find . -type f -and -not -path './$1' -and -not -path './testsuite.log' |
|
]AT_CHECK([[find . -type f |
|
||||||
sed 's,\./,,' |
|
$PERL -ne '
|
||||||
sort |
|
s,\./,,; chomp;
|
||||||
xargs echo],
|
push @file, $_ unless m{^($1|testsuite.log)$};
|
||||||
|
END { print join (" ", sort @file), "\n" }']],
|
||||||
[], [$4
|
[], [$4
|
||||||
])[
|
])[
|
||||||
]$6[
|
]$6[
|
||||||
|
|||||||
Reference in New Issue
Block a user