This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add --enable-dynamic-test configure option
- From: Carlos O'Donell <carlos at systemhalted dot org>
- To: Nix <nix at esperi dot org dot uk>
- Cc: Andi Kleen <andi at firstfloor dot org>, Andreas Schwab <schwab at linux-m68k dot org>,"H.J. Lu" <hjl dot tools at gmail dot com>, Roland McGrath <roland at hack dot frob dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 20 Dec 2012 14:37:54 -0500
- Subject: Re: [PATCH] Add --enable-dynamic-test configure option
- References: <20121009124954.GA30448@gmail.com> <20121011000517.F33FA2C06C@topped-with-meat.com> <m27gqxmpta.fsf@igel.home> <20121011222012.5DD132C0C2@topped-with-meat.com> <20121208233610.GA22759@gmail.com> <m2fw3f77w8.fsf@igel.home> <m238zff150.fsf@firstfloor.org> <87wqwqdo68.fsf@spindle.srvr.nix>
On 12/10/2012 08:36 AM, Nix wrote:
On 9 Dec 2012, Andi Kleen told this:
Andreas Schwab <schwab@linux-m68k.org> writes:
"H.J. Lu" <hjl.tools@gmail.com> writes:
Here is the updated patch to add --enable-dynamic-test.
That's a pretty non-descriptive option name.
--enable-hardcode-build-in-tests
Or just make it default without option.
When you you ever not want to do that?
When you want to compare the behaviour of a test with an old and new C
library, or with multiple C library build trees with different changes
applied to each.
(Sure, the former is obscure becaue the old C library would hopefully
have passed the tests, but I've done the latter a few times. It's hardly
killingly useful, though, because multiple build trees are going to have
multiple copies of the test programs in them as well. On balance, I
agree, this option should be on by default.)
In general most applications aren't built with DT_RPATH, and by
making this the default we would be a little further from the
behaviour of normal applications.
I think it's a great idea to add this feature for developers
who are building/debugging glibc tests since in that case it
saves you rebuilding the test case for easy debug under gdb.
In summary: Cool new feature. Shouldn't be default.
Looking into the future I can see a time when we run the glibc
testsuite in a minimal chroot built by the glibc build process.
The higher the fidelty of the testing environment the more
things we can test reliably.
Cheers,
Carlos.