Skip to content

selftests: Move test output to diagnostic lines

keescook at chromium.org (Kees Cook) linux-kselftest 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6selftests: Extract single-test shell logic from lib.mktools/testing/selftests/.gitignore tools/testing/selftests/kselftest/runner.sh tools/testing/selftests/lib.mk+34 -310 replies
1/6selftests: Extract single-test shell logic from lib.mk+0 -00 replies
1/6selftests: Extract single-test shell logic from lib.mk+0 -00 replies
1/6selftests: Extract single-test shell logic from lib.mk+0 -00 replies
1/6selftests: Extract single-test shell logic from lib.mk+0 -00 replies
1/6selftests: Extract single-test shell logic from lib.mk+0 -00 replies
1/6selftests: Extract single-test shell logic from lib.mk+0 -00 replies
1/6selftests: Extract single-test shell logic from lib.mk+0 -00 replies
2/6selftests: Use runner.sh for emit targetstools/testing/selftests/Makefile tools/testing/selftests/lib.mk+7 -190 replies
3/6selftests: Extract logic for multiple test runstools/testing/selftests/Makefile tools/testing/selftests/kselftest/runner.sh tools/testing/selftests/lib.mk+22 -190 replies
4/6selftests/runner: Add plan line and fix result line syntaxtools/testing/selftests/kselftest/runner.sh+6 -40 replies
5/6selftests/runner: Distinguish between missing and non-executabletools/testing/selftests/kselftest/runner.sh+6 -10 replies
6/6selftests: Move test output to diagnostic linestools/testing/selftests/Makefile tools/testing/selftests/kselftest/prefix.pl tools/testing/selftests/kselftest/runner.sh +1 more+58 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] selftests: Move test output to diagnostic lines

This refactors the selftest Makefiles to extract the test running logic to be reused between "run_tests" and "emit_tests", while also fixing up the test output to be TAP version 13 compliant:
- added "plan" line
- fixed result line syntax
- moved all test output to be "# "-prefixed as TAP "diagnostic" lines

The prefixing code includes a fallback mode for limited execution environments.

-Kees

Kees Cook (6):
selftests: Extract single-test shell logic from lib.mk
selftests: Use runner.sh for emit targets
selftests: Extract logic for multiple test runs selftests/runner: Add plan line and fix result line syntax selftests/runner: Distinguish between missing and non-executable
selftests: Move test output to diagnostic lines

 tools/testing/selftests/.gitignore          |  1 -
 tools/testing/selftests/Makefile            | 18 +++--
 tools/testing/selftests/kselftest/prefix.pl | 23 ++++++
 tools/testing/selftests/kselftest/runner.sh | 80 +++++++++++++++++++++
 tools/testing/selftests/lib.mk              | 61 +++-------------
 5 files changed, 119 insertions(+), 64 deletions(-)
 create mode 100755 tools/testing/selftests/kselftest/prefix.pl
 create mode 100644 tools/testing/selftests/kselftest/runner.sh
Signature · 1 line
2.17.1