From: Kees Cook <keescook@chromium.org>
To: Rae Moar <rmoar@google.com>
Cc: frowand.list@gmail.com, davidgow@google.com, Tim.Bird@sony.com,
shuah@kernel.org, brendanhiggins@google.com, dlatypov@google.com,
tytso@google.com, gustavo.padovan@collabora.com,
ricardo.canuelo@collabora.com, corbet@lwn.net,
kernelci@lists.linux.dev, linux-kselftest@vger.kernel.org,
kunit-dev@googlegroups.com, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [KTAP V2 PATCH v3] ktap_v2: add test metadata
Date: Thu, 15 Feb 2024 09:38:08 -0800 [thread overview]
Message-ID: <202402150937.3CAD9E69D5@keescook> (raw)
In-Reply-To: <20240215171859.1907668-1-rmoar@google.com>
On Thu, Feb 15, 2024 at 05:18:59PM +0000, Rae Moar wrote:
> Add specification for test metadata to the KTAP v2 spec.
>
> KTAP v1 only specifies the output format of very basic test information:
> test result and test name. Any additional test information either gets
> added to general diagnostic data or is not included in the output at all.
>
> The purpose of KTAP metadata is to create a framework to include and
> easily identify additional important test information in KTAP.
>
> KTAP metadata could include any test information that is pertinent for
> user interaction before or after the running of the test. For example,
> the test file path or the test speed.
>
> Since this includes a large variety of information, this specification
> will recognize notable types of KTAP metadata to ensure consistent format
> across test frameworks. See the full list of types in the specification.
>
> Example of KTAP Metadata:
>
> KTAP version 2
> #:ktap_test: main
> #:ktap_arch: uml
> 1..1
> KTAP version 2
> #:ktap_test: suite_1
> #:ktap_subsystem: example
> #:ktap_test_file: lib/test.c
> 1..2
> ok 1 test_1
> #:ktap_test: test_2
> #:ktap_speed: very_slow
> # test_2 has begun
> #:custom_is_flaky: true
> ok 2 test_2
> # suite_1 has passed
> ok 1 suite_1
>
> The changes to the KTAP specification outline the format, location, and
> different types of metadata.
>
> Reviewed-by: David Gow <davidgow@google.com>
> Signed-off-by: Rae Moar <rmoar@google.com>
Thanks for the updates!
Reviewed-by: Kees Cook <keescook@chromium.org>
We'll need to update the test runners to adjust their outputs...
--
Kees Cook
prev parent reply other threads:[~2024-02-15 17:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 17:18 [KTAP V2 PATCH v3] ktap_v2: add test metadata Rae Moar
2024-02-15 17:38 ` Kees Cook [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202402150937.3CAD9E69D5@keescook \
--to=keescook@chromium.org \
--cc=Tim.Bird@sony.com \
--cc=brendanhiggins@google.com \
--cc=corbet@lwn.net \
--cc=davidgow@google.com \
--cc=dlatypov@google.com \
--cc=frowand.list@gmail.com \
--cc=gustavo.padovan@collabora.com \
--cc=kernelci@lists.linux.dev \
--cc=kunit-dev@googlegroups.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=ricardo.canuelo@collabora.com \
--cc=rmoar@google.com \
--cc=shuah@kernel.org \
--cc=tytso@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox