This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] list of tests in makefile.
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 29 May 2013 15:00:41 +0200
- Subject: Re: [RFC] list of tests in makefile.
- References: <20130528134406 dot GA11989 at domone dot kolej dot mff dot cuni dot cz> <20130528173923 dot 567052C06E at topped-with-meat dot com> <51A50707 dot 1050102 at redhat dot com> <20130528193711 dot F08F02C073 at topped-with-meat dot com> <51A5F706 dot 4000305 at redhat dot com>
On Wed, May 29, 2013 at 02:39:34PM +0200, Florian Weimer wrote:
> On 05/28/2013 09:37 PM, Roland McGrath wrote:
> >>Agreed. Though I think a data-driven approach might also be acceptable
> >>e.g. the list of tests is in a file e.g. nptl.tests, libc.tests etc.
> >
> >Sure. Lists in the source tree, not wildcards.
>
> And we could add a script that could generate them from "git
> ls-files" (auto-resolving conflicts).
>
Yes, I wrote similar script for myself, here it is.
Ondra
for I in test*.c tst*.c bug*.c; do
if git ls-files $I --error-unmatch > /dev/null; then
I=`basename $I .c`
echo -n $I ""
fi
done