diff mbox series

[RFC,5/7] kselftest: support KTAP format

Message ID 20230719-nolibc-ktap-tmp-v1-5-930bd0c52ff1@weissschuh.net (mailing list archive)
State New
Headers show
Series selftests/nolibc: KTAP output | expand

Commit Message

Thomas Weißschuh July 18, 2023, 10 p.m. UTC
KTAP supports nested suites which we want to use for nolibc tests.
The TAP parser at tools/testing/kunit/kunit.py requires the header
"KTAP version 1" to parse nested suites.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
 tools/testing/selftests/kselftest.h | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h
index 829be379545a..811d720d50dd 100644
--- a/tools/testing/selftests/kselftest.h
+++ b/tools/testing/selftests/kselftest.h
@@ -117,6 +117,11 @@  static inline void ksft_print_header(void)
 		printf("TAP version 13\n");
 }
 
+static inline void ksft_print_header_ktap(void)
+{
+	printf("KTAP version 1\n");
+}
+
 static inline void ksft_set_plan(unsigned int plan)
 {
 	ksft_plan = plan;