From: "Ricardo B. Marlière" <ricardo@marliere.net>
To: "Jori Koolstra (CIQ)" <jkoolstra@xs4all.nl>,
"Shuah Khan" <shuah@kernel.org>,
"David Ahern" <dsahern@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
"Hangbin Liu" <hangbin.liu@linux.dev>,
"Ricardo B. Marlière" <ricardo@marliere.net>
Cc: <linux-kselftest@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 0/2] selftests: add option to print the time spent per test
Date: Tue, 01 Dec 2026 19:31:49 -0300 [thread overview]
Message-ID: <DN9R3WLBPNIM.3L8LP9B4LJD4R@marliere.net> (raw)
In-Reply-To: <20261120-kselftest-run-timer-v2-0-9802690a370b@xs4all.nl>
On Fri Nov 20, 2026 at 8:25 AM -03, Jori Koolstra (CIQ) wrote:
> For CI/CD purposes it is useful to know how much time each selftest
> took to complete, for instance, to know which suites to run for a
> quick-fail diagnostic, or what percentage of tests you can expect to
> complete on a paricular --override-timeout value.
>
> Add a -T/--timed option to run_kselftest.sh. When it is set, run_one()
> prints a KTAP diagnostic line with the elapsed wall-clock time just
> before the result line of each test that is actually run, e.g.:
>
> # selftests: timers: nanosleep
> # time: 12.34s
> ok 3 selftests: timers: nanosleep
>
> The other patch of runner.sh fixes a bug when using --netns in
> run_kselftest.sh.
>
> Signed-off-by: Jori Koolstra (CIQ) <jkoolstra@xs4all.nl>
> ---
> Changes in v2:
> - Dropped convention change from the series (as Shuah requested)
> - Link to v1: https://lore.kernel.org/r/20261118-kselftest-run-timer-v1-0-53a838b2d62b@xs4all.nl
>
> ---
> Jori Koolstra (CIQ) (2):
> selftests: pass the timeout override to tests run in a netns
> selftests: add option to print the time spent per test
>
> tools/testing/selftests/kselftest/runner.sh | 21 +++++++++++++++++++++
> tools/testing/selftests/run_kselftest.sh | 8 ++++++++
> 2 files changed, 29 insertions(+)
For the series,
Reviewed-by: Ricardo B. Marlière (SUSE) <ricardo@marliere.net>
Thanks!
> ---
> base-commit: 65e4fd942f72a9dba0e4e257290c4fa1aa756854
> change-id: 20261117-kselftest-run-timer-df3ac531652e
>
> Best regards,
prev parent reply other threads:[~2026-12-01 22:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 11:25 [PATCH v2 0/2] selftests: add option to print the time spent per test Jori Koolstra (CIQ)
2026-11-20 11:25 ` [PATCH v2 1/2] selftests: pass the timeout override to tests run in a netns Jori Koolstra (CIQ)
2026-11-23 6:25 ` Hangbin Liu
2026-12-02 1:02 ` Hangbin Liu
2026-11-20 11:25 ` [PATCH v2 2/2] selftests: add option to print the time spent per test Jori Koolstra (CIQ)
2026-12-02 1:02 ` Hangbin Liu
2026-12-01 22:31 ` Ricardo B. Marlière [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=DN9R3WLBPNIM.3L8LP9B4LJD4R@marliere.net \
--to=ricardo@marliere.net \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=hangbin.liu@linux.dev \
--cc=jkoolstra@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
/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