diff options
author | Alexandra Hájková <ahajkova@redhat.com> | 2021-10-26 11:42:44 +0200 |
---|---|---|
committer | Alexandra Hájková <ahajkova@redhat.com> | 2022-01-22 17:31:16 +0100 |
commit | 6c2f050dbe11fb4ed0a401a5f25731f2aa53046b (patch) | |
tree | d18ef8608320942fe90b94aacfa007c8a32fe970 /elf/Makefile | |
parent | 8c86ba446367fd676457e51eb44d7af2e5d9a392 (diff) | |
download | glibc-6c2f050dbe11fb4ed0a401a5f25731f2aa53046b.zip glibc-6c2f050dbe11fb4ed0a401a5f25731f2aa53046b.tar.gz glibc-6c2f050dbe11fb4ed0a401a5f25731f2aa53046b.tar.bz2 |
Add valgrind smoke test
Check if whether valgrind is available in the test environment.
If not, skip the test. Run smoke tests with valgrind to verify dynamic loader.
First, check if algrind works with the system ld.so in the test
environment. Then run the actual test inside the test environment,
using the just build ld.so and new libraries.
Co-authored-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile index 692a65b..6cc53c3 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -450,6 +450,7 @@ tests += \ unload6 \ unload7 \ unload8 \ + valgrind-test \ # tests tests-cxx = \ tst-dlopen-nodelete-reloc \ @@ -524,6 +525,12 @@ tests-special += \ endif endif endif + +tests-special += $(objpfx)tst-valgrind-smoke.out +$(objpfx)tst-valgrind-smoke.out: tst-valgrind-smoke.sh $(objpfx)ld.so $(objpfx)valgrind-test + $(SHELL) $< $(objpfx)ld.so $(rtlddir)/$(rtld-installed-name) '$(test-wrapper-env)' \ + '$(run-program-env)' '$(rpath-link)' $(objpfx)valgrind-test > $@; $(evaluate-test) + tests += $(tests-execstack-$(have-z-execstack)) ifeq ($(run-built-tests),yes) tests-special += \ |