This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: test-in-container: Moving a test to a particular location *before* execution?
- From: Carlos O'Donell <carlos at redhat dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 10 Dec 2019 15:24:43 -0500
- Subject: Re: test-in-container: Moving a test to a particular location *before* execution?
- References: <xnimmot1a5.fsf@greed.delorie.com>
On 12/10/19 2:42 PM, DJ Delorie wrote:
>
> You mean something that copies the test to a specified location, and
> execs that instead of the in-build one?
Yes.
> I suppose the easiest way to implement that is to add yet another
> command to the setup script, like this:
>
> exec /bin/foo
I like it.
> which means "whatever you were about to exec, copy it to this path, and
> exec that instead"
>
> Bonus: if the destination path ends in "/", append the basename of the
> specified test.
Sure, it avoids needing to keep the test name in sync in the file.
--
Cheers,
Carlos.