Skip to content

selftests: run_kselftest.sh cleanup and fixes

Ricardo B. Marlière kernelci linux-kbuild linux-kselftest lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20260320-selftests-fixes-dad2b1df50d9

Versions newest first

  1. v1 Latest6 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6selftests/run_kselftest.sh: Remove unused $ROOTtools/testing/selftests/run_kselftest.sh+0 -10 replies
2/6selftests/run_kselftest.sh: Add missing quotestools/testing/selftests/run_kselftest.sh+4 -40 replies
3/6selftests/run_kselftest.sh: Resolve BASE_DIR with pwd -Ptools/testing/selftests/run_kselftest.sh+1 -60 replies
4/6selftests/run_kselftest.sh: Allow choosing per-test log directorytools/testing/selftests/kselftest/runner.sh tools/testing/selftests/run_kselftest.sh+30 -30 replies
5/6selftests: Preserve subtarget failures in all/installtools/testing/selftests/Makefile+4 -415 replies
6/6kbuild: remove kselftest output in mrproperMakefile+1 -04 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: run_kselftest.sh cleanup and fixes

Hi Shuah,

Please consider merging the following patches. They are mostly small fixes to run_kselftest.sh, plus one feature: adding the option of passing a directory to the "-p --per-test-log" argument.

There is a small corner case spotted in tools/testing/selftests/Makefile regarding failing sub-targets, and also the removal of the default install directory for out of tree builds in the top-level Makefile.

Thank you!

---
Ricardo B. Marlière (6):
selftests/run_kselftest.sh: Remove unused $ROOT selftests/run_kselftest.sh: Add missing quotes selftests/run_kselftest.sh: Resolve BASE_DIR with pwd -P selftests/run_kselftest.sh: Allow choosing per-test log directory
selftests: Preserve subtarget failures in all/install
kbuild: remove kselftest output in mrproper

 Makefile                                    |  1 +
 tools/testing/selftests/Makefile            |  8 ++---
 tools/testing/selftests/kselftest/runner.sh |  3 +-
 tools/testing/selftests/run_kselftest.sh    | 46 +++++++++++++++++++++--------
 4 files changed, 40 insertions(+), 18 deletions(-)

---
base-commit: c612261bedd6bbab7109f798715e449c9d20ff2f
change-id: 20260320-selftests-fixes-dad2b1df50d9

Best regards,

Signature · 1 line
Ricardo B. Marlière <[email protected]>