Skip to contentSkip to conversation

Documentation: dev-tools: Add KTAP specification

RFC PATCH Superseded David Gow 1 participant 1 message Dec 3, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

David Gow

author
#0 lore raw

RFC PATCH 1/1 Documentation: dev-tools: Add KTAP specification

From: Rae Moar <[email protected]>

Document the kernel-specific variant of the Test Anything Protocol (TAP)[1] used by the kernel and kernel test frameworks. This version is called KTAP, and this version of the specification should describe how results produced by kselftest and KUnit (with some trivial changes to bring the two into alignment).

It does not make any significant additions or changes other than those already in use in the kernel: additional features can be added as they become necessary and used.

See prior discussion in the following RFC:
https://lore.kernel.org/linux-kselftest/CA+GJov6tdjvY9x12JsJT14qn6c7NViJxqaJk+r-K1YJzPggFDQ@mail.gmail.com/.

[1]: https://testanything.org/tap-version-13-specification.html

---

Hi all,

This is a version of the KTAP RFC from [1], with a greater focus on being compatible with what's currently used, rather than prescribing a new format. The format here should be a superset of what KUnit and kselftest output, with a couple of notable exceptions:
- KUnit currently uses the TAP14-style "Subtest" header instead of nested TAP version headers. This will be fixed in KUnit once this goes in.
- The (unused) XPASS option is not mentioned (it'll devolve into a harmless comment)

Cheers,
-- David

[1]https://lore.kernel.org/linux-kselftest/CA+GJov6tdjvY9x12JsJT14qn6c7NViJxqaJk+r-K1YJzPggFDQ@mail.gmail.com/

---
 Documentation/dev-tools/index.rst |   1 +
 Documentation/dev-tools/ktap.rst  | 287 ++++++++++++++++++++++++++++++
 2 files changed, 288 insertions(+)
 create mode 100644 Documentation/dev-tools/ktap.rst
Documentation/dev-tools/index.rst +1 -0
index 010a2af1e7d9..4621eac290f4 100644
@@ -32,6 +32,7 @@ Documentation/dev-tools/testing-overview.rst
    kgdb
    kselftest
    kunit/index
+   ktap
 
 
 .. only::  subproject and html
Documentation/dev-tools/ktap.rst new file +287 -0

287 lines not on this page · raw message

Signature · 1 line
2.34.1.400.ga245620fadb-goog