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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 tools/testing/selftests/kselftest.h | 5 +++++
 1 file changed, 5 insertions(+)

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;

-- 
2.41.0




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux