Integrate the SCHED_DEADLINE test suite with the kselftest framework by adding it to the parent sched/Makefile. This allows the tests to be run via the standard kselftest mechanisms alongside other scheduler tests.
The integration adds deadline/runner to TEST_PROGS for automatic execution during test runs, and deadline/cpuhog to TEST_GEN_PROGS_EXTENDED as a helper program that should be built but not executed directly. Build rules recursively build the deadline/ subdirectory tests when the sched test suite is built. The tests can now be run using standard kselftest invocations such as 'make -C tools/testing/selftests TARGETS=sched run_tests' or 'make -C tools/testing/selftests/sched run_tests'. The deadline/runner will be executed as part of the sched test suite, providing structured output that integrates with the kselftest reporting infrastructure. Assisted-by: Claude Code: claude-sonnet-4-5@20250929 Signed-off-by: Juri Lelli <[email protected]> --- tools/testing/selftests/sched/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/sched/Makefile b/tools/testing/selftests/sched/Makefile index 099ee9213557a..8ee7620cc214c 100644 --- a/tools/testing/selftests/sched/Makefile +++ b/tools/testing/selftests/sched/Makefile @@ -11,4 +11,12 @@ LDLIBS += -lpthread TEST_GEN_FILES := cs_prctl_test TEST_PROGS := cs_prctl_test +# SCHED_DEADLINE tests in subdirectory +TEST_PROGS += deadline/runner +TEST_GEN_PROGS_EXTENDED := deadline/cpuhog + include ../lib.mk + +# Build deadline tests +$(OUTPUT)/deadline/runner $(OUTPUT)/deadline/cpuhog: + $(MAKE) -C deadline OUTPUT=$(OUTPUT)/deadline/ -- 2.53.0

