From: Sergey Bugaev Date: Tue, 7 Sep 2021 13:33:25 +0000 (+0300) Subject: testrun.sh: Add support for --tool=rpctrace X-Git-Tag: glibc-2.35~532 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27ae52e4d149fc2dc5ef109426753ad3d5126582;p=thirdparty%2Fglibc.git testrun.sh: Add support for --tool=rpctrace rpctrace(1) is a Hurd RPC tracer tool, which is used similar to how strace(1) is used on GNU/Linux. Signed-off-by: Sergey Bugaev Message-Id: <20210907133325.255690-6-bugaevc@gmail.com> Acked-by: Florian Weimer Signed-off-by: Samuel Thibault --- diff --git a/Makefile b/Makefile index f98d5a9e673..a49870d3d1e 100644 --- a/Makefile +++ b/Makefile @@ -141,8 +141,9 @@ usage () { cat << EOF Usage: $$0 [OPTIONS] [ARGUMENTS...] - --tool=TOOL Run with the specified TOOL. It can be strace, valgrind or - container. The container will run within support/test-container. + --tool=TOOL Run with the specified TOOL. It can be strace, rpctrace, + valgrind or container. The container will run within + support/test-container. EOF exit 1 @@ -177,6 +178,10 @@ case "$$toolname" in exec strace $(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+"$$@"} ;;