Re: [PATCH v2 12/17] kunit: tool: add Python wrappers for running KUnit tests

From: Kees Cook
Date: Mon May 06 2019 - 13:44:53 EST


On Sun, May 5, 2019 at 5:19 PM Frank Rowand <frowand.list@xxxxxxxxx> wrote:
> You can see the full version 14 document in the submitter's repo:
>
> $ git clone https://github.com/isaacs/testanything.github.io.git
> $ cd testanything.github.io
> $ git checkout tap14
> $ ls tap-version-14-specification.md
>
> My understanding is the the version 14 specification is not trying to
> add new features, but instead capture what is already implemented in
> the wild.

Oh! I didn't know about the work on TAP 14. I'll go read through this.

> > ## Here is what I propose for this patchset:
> >
> > - Print out test number range at the beginning of each test suite.
> > - Print out log lines as soon as they happen as diagnostics.
> > - Print out the lines that state whether a test passes or fails as a
> > ok/not ok line.
> >
> > This would be technically conforming with TAP13 and is consistent with
> > what some kselftests have done.

This is what I fixed kselftest to actually do (it wasn't doing correct
TAP13), and Shuah is testing the series now:
https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/log/?h=ksft-tap-refactor

I'll go read TAP 14 now...

--
Kees Cook