[PATCH 0/3] selftests: allow wildcards in TARGETS and SKIP_TARGETS

From: Jori Koolstra (CIQ)

Date: Sun Nov 15 2026 - 11:45:05 EST


It would be nice if you could "make run_tests" all the tests related to
e.g. filesystems by using a wildcard like TARGETS="filesystems*". There
is run_kselftest.sh but that requires installing any tests first. This
series implements this wildcard (in "selftests: allow wildcards in
TARGETS and SKIP_TARGETS"). The other two patches are a sorting clean-up
and a refactor to allow the kselftest Makefile access to the full list
of TARGETS for matching the wildcard. That is churn, but cleaner than
other options.

Actually, it might be better to let the wildcard be the default
behavior, i.e. that "make TARGETS=filesystems run_tests" runs the whole
suite recursively (this is what I expected and what run_kselftest.sh
does). But this would change user visible behavior. If we can do that,
it would have my preference instead.

Signed-off-by: Jori Koolstra (CIQ) <jkoolstra@xxxxxxxxx>
---
Jori Koolstra (CIQ) (3):
selftests: sort the TARGETS list
selftests: move the default target list into TARGETS_LIST
selftests: allow wildcards in TARGETS and SKIP_TARGETS

Documentation/dev-tools/kselftest.rst | 19 +-
tools/testing/selftests/Makefile | 320 ++++++++++++++++--------------
tools/testing/selftests/kselftest_deps.sh | 4 +-
3 files changed, 185 insertions(+), 158 deletions(-)
---
base-commit: 23c62304dde29abe92013d85910d03a77dada35d
change-id: 20261115-ksft-targets-wildcard-aafde8715b17

Best regards,
--
Jori Koolstra (CIQ) <jkoolstra@xxxxxxxxx>