RFC selftests: kselftest_harness: use common result printing helper
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest7 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | selftests: kselftest_harness: generate test name oncetools/ | +10 | 1 reply | |
| 2/7 | selftests: kselftest_harness: save full exit code in metadatatools/ tools/ | +30 | 0 replies | |
| 3/7 | selftests: kselftest_harness: use exit code to store skip and xfailtools/ | +9 | 0 replies | |
| 4/7 | selftests: kselftest: add ksft_test_result_code(), handling all exit codestools/ tools/ | +47 | 0 replies | |
| 5/7 | selftests: kselftest_harness: print test name for SKIP and XFAILtools/ tools/ | +6 | 0 replies | |
| 6/7 | selftests: kselftest_harness: let ksft_test_result_code() handle line terminationtools/ tools/ | +6 | 0 replies | |
| 7/7 | selftests: kselftest_harness: let PASS / FAIL provide diagnostictools/ | +3 | 0 replies |
Reviews trailers per patch
1 of 7 patches has a Reviewed-by or Acked-by.
| Patch | Kees Cook |
|---|---|
| 1/7 | A-b |
| 2/7 | |
| 3/7 | |
| 4/7 | |
| 5/7 | |
| 6/7 | |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC 0/7] selftests: kselftest_harness: use common result printing helper
Add a common result printing helper and always include test name in the result line. Previously when SKIP or XPASS would happen we printed:
ok 1 # SKIP unknown
without the test name. Now we'll print:
ok 1 global.no_pad # SKIP unknown
This appears to be more inline with:
https://docs.kernel.org/dev-tools/ktap.html
and makes parsing results easier.
First 3 patches rearrange kselftest_harness to use exit code as an enum rather than separate passed/skip/xfail members.
Rest of the series builds a ksft_test_result_code() helper.
This series is on top of:
https://lore.kernel.org/all/[email protected]/
Jakub Kicinski (7):
selftests: kselftest_harness: generate test name once
selftests: kselftest_harness: save full exit code in metadata
selftests: kselftest_harness: use exit code to store skip and xfail
selftests: kselftest: add ksft_test_result_code(), handling all exit
codes
selftests: kselftest_harness: print test name for SKIP and XFAIL
selftests: kselftest_harness: let ksft_test_result_code() handle line
termination
selftests: kselftest_harness: let PASS / FAIL provide diagnostic
tools/testing/selftests/kselftest.h | 45 ++++++++++ tools/testing/selftests/kselftest_harness.h | 96 ++++++++++----------- tools/testing/selftests/net/tls.c | 2 +- 3 files changed, 91 insertions(+), 52 deletions(-)
Signature · 1 line
2.43.0