[PATCH] elf: Run tst-rtld-* and tst-nolink-libc-* tests through test-wrapper
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Thu Nov 19 19:34:33 GMT 2026
On 19/11/26 16:23, Adhemerval Zanella wrote:
> The tst-rtld-* and tst-nolink-libc-* rules execute the built binaries
> directly and with a remote test-wrapper (scripts/cross-test-ssh.sh)
> they run on the build machine instead of the test machine.
>
> Checked on x86_64-linux-gnu and on powerpc64le-linux-gnu (power10, with
> cross-test-ssh.sh).
OOps, I forgot to mark this as committed.
> ---
> elf/Makefile | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/elf/Makefile b/elf/Makefile
> index 5774f719884..d267317a815 100644
> --- a/elf/Makefile
> +++ b/elf/Makefile
> @@ -735,14 +735,14 @@ ifeq ($(run-built-tests),yes)
> tests-special += $(objpfx)tst-rtld-does-not-exist.out
> endif
> $(objpfx)tst-rtld-does-not-exist.out: tst-rtld-does-not-exist.sh $(objpfx)ld.so
> - $(SHELL) $< $(objpfx)ld.so > $@; \
> + $(SHELL) $< '$(test-wrapper) $(objpfx)ld.so' > $@; \
> $(evaluate-test)
>
> ifeq ($(run-built-tests),yes)
> tests-special += $(objpfx)tst-rtld-dash-dash.out
> endif
> $(objpfx)tst-rtld-dash-dash.out: tst-rtld-dash-dash.sh $(objpfx)ld.so
> - $(SHELL) $< $(objpfx)ld.so > $@; \
> + $(SHELL) $< '$(test-wrapper) $(objpfx)ld.so' > $@; \
> $(evaluate-test)
>
> tests += $(tests-execstack-$(have-z-execstack))
> @@ -3752,12 +3752,12 @@ $(objpfx)tst-nolink-libc-1: $(objpfx)tst-nolink-libc.o $(objpfx)ld.so
> $(LINK.o) -nostdlib -nostartfiles -o $@ $< \
> -Wl,--dynamic-linker=$(objpfx)ld.so,--no-as-needed $(objpfx)ld.so
> $(objpfx)tst-nolink-libc-1.out: $(objpfx)tst-nolink-libc-1 $(objpfx)ld.so
> - $< > $@ 2>&1; $(evaluate-test)
> + $(test-wrapper) $< > $@ 2>&1; $(evaluate-test)
> $(objpfx)tst-nolink-libc-2: $(objpfx)tst-nolink-libc.o
> $(LINK.o) -nostdlib -nostartfiles -o $@ $< \
> -Wl,--dynamic-linker=$(objpfx)ld.so
> $(objpfx)tst-nolink-libc-2.out: $(objpfx)tst-nolink-libc-2 $(objpfx)ld.so
> - $< > $@ 2>&1; $(evaluate-test)
> + $(test-wrapper) $< > $@ 2>&1; $(evaluate-test)
>
> $(objpfx)tst-version-hash-zero.out: \
> $(objpfx)tst-version-hash-zero-mod.so \
More information about the Libc-alpha
mailing list