diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-06-02 17:41:33 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-06-02 18:37:30 +0200 |
commit | bb8887379f59a3efde90569acd47e63e0f6a3863 (patch) | |
tree | eeb9630ffc7ca308c228d6435c71c7e8e7ad9f4c | |
parent | 4b527650e0d559a5f693275c598667e06cd6455c (diff) | |
download | glibc-bb8887379f59a3efde90569acd47e63e0f6a3863.tar glibc-bb8887379f59a3efde90569acd47e63e0f6a3863.tar.gz glibc-bb8887379f59a3efde90569acd47e63e0f6a3863.tar.bz2 glibc-bb8887379f59a3efde90569acd47e63e0f6a3863.zip |
testrun.sh: Support passing strace and valgrind arguments
This is a bit of a hack, but it works quite well in practice.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -143,7 +143,8 @@ Usage: $$0 [OPTIONS] <program> [ARGUMENTS...] --tool=TOOL Run with the specified TOOL. It can be strace, rpctrace, valgrind or container. The container will run within - support/test-container. + support/test-container. For strace and valgrind, + additional arguments can be passed after the tool name. EOF exit 1 @@ -174,16 +175,16 @@ case "$$toolname" in exec $(subst $(common-objdir),"$${builddir}", $(test-program-prefix)) \ $${1+"$$@"} ;; - strace) - exec strace $(patsubst %, -E%, $(run-program-env)) \ + strace*) + exec $$toolname $(patsubst %, -E%, $(run-program-env)) \ $(test-via-rtld-prefix) $${1+"$$@"} ;; rpctrace) exec rpctrace $(patsubst %, -E%, $(run-program-env)) \ $(test-via-rtld-prefix) $${1+"$$@"} ;; - valgrind) - exec env $(run-program-env) valgrind $(test-via-rtld-prefix) $${1+"$$@"} + valgrind*) + exec env $(run-program-env) $$toolname $(test-via-rtld-prefix) $${1+"$$@"} ;; container) exec env $(run-program-env) $(test-via-rtld-prefix) \ |