[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bison testing on NetBSD: FAILED tests (probably spuriously)
From: |
Akim Demaille |
Subject: |
Re: Bison testing on NetBSD: FAILED tests (probably spuriously) |
Date: |
Fri, 28 Jun 2013 08:35:40 +0200 |
Hi Stefano,
Le 26 juin 2013 à 16:06, Stefano Lattarini <address@hidden> a écrit :
> On 06/26/2013 09:57 AM, Stefano Lattarini wrote:
>> Hi Akim,
>>
>> On 06/24/2013 11:15 PM, Stefano Lattarini wrote:
>>>
>>> P.S. I'll *try* to run the bison testsuite on non-Linux systems
>>> (Solaris 10, NetBSD 5.1 and FreeBSD 8.2), but I don't know if
>>> I'll have time to do so, so don't hold your breath. Sorry :-(
>>>
> Tested on NetBSD 5.1 with GCC 4.1.3, system /usr/bin/make, and both
> /bin/ksh as a config shells. There were several testsuite failures,
> which all appears to be spurious and due to the fact that BSD find
> doesn't support the '-not' option. The complete testsuite.log file
> is attached (compressed).
Thanks for catching this!
> HTH,
It did :)
netbsd5-testsuite.log.xz
Description: Binary data
I plan to install the following patch. Thanks!
commit 4fe924e4dd374ac2934315fc534700e0c6e5c673
Author: Akim Demaille <address@hidden>
Date: Fri Jun 28 08:33:33 2013 +0200
tests: fix 'find' portability issues
Reported by Stefano Lattarini.
* tests/output.at (AT_CHECK_OUTPUT): Use Perl instead.
diff --git a/tests/output.at b/tests/output.at
index 7dbc3db..6c98ef7 100644
--- a/tests/output.at
+++ b/tests/output.at
@@ -37,10 +37,11 @@ foo: {};
]AT_BISON_CHECK([$3 $1 $5], 0)[
# Ignore the files non-generated files
-]AT_CHECK([find . -type f -and -not -path './$1' -and -not -path
'./testsuite.log' |
- sed 's,\./,,' |
- sort |
- xargs echo],
+]AT_CHECK([[find . -type f |
+ $PERL -ne '
+ s,\./,,; chomp;
+ push @file, $_ unless m{^($1|testsuite.log)$};
+ END { print join (" ", sort @file), "\n" }']],
[], [$4
])[
]$6[
- Re: Bison testing on NetBSD: FAILED tests (probably spuriously),
Akim Demaille <=