aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/ftrace/Makefile
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-05-08 22:15:42 +0900
committerShuah Khan <skhan@linuxfoundation.org>2023-05-08 11:10:13 -0600
commitdbcf76390eb9a65d5d0c37b0cd57335218564e37 (patch)
tree59f0a49b659dfeaf013b9817aed52ccd72995af9 /tools/testing/selftests/ftrace/Makefile
parentselftests/sgx: Add "test_encl.elf" to TEST_FILES (diff)
downloadwireguard-linux-dbcf76390eb9a65d5d0c37b0cd57335218564e37.tar.xz
wireguard-linux-dbcf76390eb9a65d5d0c37b0cd57335218564e37.zip
selftests/ftrace: Improve integration with kselftest runner
The ftrace selftests do not currently produce KTAP output, they produce a custom format much nicer for human consumption. This means that when run in automated test systems we just get a single result for the suite as a whole rather than recording results for individual test cases, making it harder to look at the test data and masking things like inappropriate skips. Address this by adding support for KTAP output to the ftracetest script and providing a trivial wrapper which will be invoked by the kselftest runner to generate output in this format by default, users using ftracetest directly will continue to get the existing output. This is not the most elegant solution but it is simple and effective. I did consider implementing this by post processing the existing output format but that felt more complex and likely to result in all output being lost if something goes seriously wrong during the run which would not be helpful. I did also consider just writing a separate runner script but there's enough going on with things like the signal handling for that to seem like it would be duplicating too much. Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Tested-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/ftrace/Makefile')
-rw-r--r--tools/testing/selftests/ftrace/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/ftrace/Makefile b/tools/testing/selftests/ftrace/Makefile
index d6e106fbce11..a1e955d2de4c 100644
--- a/tools/testing/selftests/ftrace/Makefile
+++ b/tools/testing/selftests/ftrace/Makefile
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
all:
-TEST_PROGS := ftracetest
+TEST_PROGS_EXTENDED := ftracetest
+TEST_PROGS := ftracetest-ktap
TEST_FILES := test.d settings
EXTRA_CLEAN := $(OUTPUT)/logs/*