]> git.dujemihanovic.xyz Git - linux.git/commit
selftests: mptcp: lib: add time per subtests in TAP output
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Fri, 6 Sep 2024 18:46:07 +0000 (20:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 Sep 2024 23:52:04 +0000 (16:52 -0700)
commitf58817c852e9c9eb8116c24d8271a35159636605
tree29322aec23dbd628012d23b40da6b14147567552
parenta7e387375f22a4fd46c8ffcfa395a0ca8c186f9e
selftests: mptcp: lib: add time per subtests in TAP output

It adds 'time=<N>ms' in the diagnostic data of the TAP output, e.g.

  ok 1 - pm_netlink: defaults addr list # time=9ms

This addition is useful to quickly identify which subtests are taking a
longer time than the others, or more than expected.

Note that there are no specific formats to follow to show this time
according to the TAP 13 [1], TAP 14 [2] and KTAP [3] specifications.
Let's then define this one here.

Link: https://testanything.org/tap-version-13-specification.html
Link: https://testanything.org/tap-version-14-specification.html
Link: https://docs.kernel.org/dev-tools/ktap.html
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20240906-net-next-mptcp-ksft-subtest-time-v2-1-31d5ee4f3bdf@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_lib.sh