This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 3/3] Isolate test case execution from externalenvironment
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 2 May 2012 08:49:15 +0530
- Subject: Re: [PATCH 3/3] Isolate test case execution from externalenvironment
- References: <20120406201902.404c2068@spoyarek><Pine.LNX.4.64.1204061545530.23195@digraph.polyomino.org.uk><20120409225424.16c748a0@spoyarek><20120425204719.3bc1178c@spoyarek>
ping?
On Wed, 25 Apr 2012 20:47:19 +0530, Siddhesh wrote:
> Hi,
>
> This is the second take of the patch I had posted earlier
> (http://sourceware.org/ml/libc-alpha/2012-04/msg00229.html). The aim
> of this patch is to isolate the test case execution to ensure that the
> test cases only pick libraries from within the test environment unless
> absolutely necessary. Any external libraries needed are evaluated and
> linked into a single directory within the build directory (tests/lib).
> Tested on x86_64.
>
> This patch needs the patch I had submitted earlier because it uses
> LIBGCC_S_SO in the right header:
>
> http://sourceware.org/ml/libc-alpha/2012-04/msg00911.html
>
> Regards,
> Siddhesh
>
> ChangeLog:
>
> 2012-04-25 Siddhesh Poyarekar <siddhesh@redhat.com>
>
> * Makeconfig (run-program-prefix): Use --inhibit-cache.
> (test-lib-paths): Get library search path used by compiler.
> (list-deps-cmd): Define.
> (rtld-verify-binary): Define.
> * Makerules (extra-modules-build): Call $(symlink-deps) for
> built modules. Remove the tests/lib directory on cleanup.
> * Rules (tests-init): New target. Perform tasks before
> executing test cases.
> (libgcc-test): Program to print the value of LIBGCC_S_SO.
> (tests-init, libgcc-done): New targets. Run libgcc-test and
> look for it in test-lib-paths. Use rtld-verify-binary.
> (tests): Depend on tests-init.
> (symlink-deps): Define. Use list-deps-cmd.
> ($(objpfx)%.out): Use symlink-deps.
> * posix/tst-exec.c (do_test): Adjust for --inhibit-cache.
> * posix/tst-spawn.c (do_test): Adjust for --inhibit-cache.