Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH 0/5] selftests: harness: Detect illegal mixing of kselftest and harness functionality
@ 2026-01-28 10:24 Thomas Weißschuh
  2026-01-28 10:24 ` [PATCH 1/5] selftests: kselftest: Treat xpass as successful result Thomas Weißschuh
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Thomas Weißschuh @ 2026-01-28 10:24 UTC (permalink / raw)
  To: Shuah Khan, Kees Cook, Andy Lutomirski, Will Drewry
  Cc: linux-kselftest, linux-kernel, Thomas Weißschuh, Yuwen Chen

Users may accidentally use the kselftest_test_result_*() functions in
their harness tests. If ksft_finished() is not used, the results
reported in this way are silently ignored.

Detect such cases and fail the test.

This should probably only go in during the next cycle.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
Thomas Weißschuh (5):
      selftests: kselftest: Treat xpass as successful result
      selftests: harness: Validate that explicit kselftest exitcodes are handled
      selftests: kselftest: Add ksft_reset_state()
      selftests: harness: Detect illegal mixing of kselftest and harness functionality
      selftests: harness: Validate intermixing of kselftest and harness functionality

 tools/testing/selftests/kselftest.h                | 12 +++++
 tools/testing/selftests/kselftest_harness.h        |  9 ++++
 .../selftests/kselftest_harness/harness-selftest.c | 40 +++++++++++++++++
 .../kselftest_harness/harness-selftest.expected    | 52 ++++++++++++++++++----
 4 files changed, 104 insertions(+), 9 deletions(-)
---
base-commit: 6d6ad32e22f028c525d5df471c5522616e645a6b
change-id: 20260128-kselftest-harness-5e07ab07f58a

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh@linutronix.de>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-01-28 23:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-28 10:24 [PATCH 0/5] selftests: harness: Detect illegal mixing of kselftest and harness functionality Thomas Weißschuh
2026-01-28 10:24 ` [PATCH 1/5] selftests: kselftest: Treat xpass as successful result Thomas Weißschuh
2026-01-28 10:24 ` [PATCH 2/5] selftests: harness: Validate that explicit kselftest exitcodes are handled Thomas Weißschuh
2026-01-28 10:24 ` [PATCH 3/5] selftests: kselftest: Add ksft_reset_state() Thomas Weißschuh
2026-01-28 22:10   ` kernel test robot
2026-01-28 23:49   ` kernel test robot
2026-01-28 10:24 ` [PATCH 4/5] selftests: harness: Detect illegal mixing of kselftest and harness functionality Thomas Weißschuh
2026-01-28 10:24 ` [PATCH 5/5] selftests: harness: Validate intermixing " Thomas Weißschuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox