public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] selftests: sched: Add default target support for sched
@ 2025-02-21 11:57 Sinadin Shan
  2025-02-21 11:57 ` [PATCH v2 1/2] selftests: sched: add sched as a default selftest target Sinadin Shan
  2025-02-21 11:57 ` [PATCH v2 2/2] selftests: sched: skip cs_prctl_test for systems with core scheduling disabled Sinadin Shan
  0 siblings, 2 replies; 7+ messages in thread
From: Sinadin Shan @ 2025-02-21 11:57 UTC (permalink / raw)
  To: shuah; +Cc: linux-kselftest, linux-kernel, chris.hyser, sshegde, Sinadin Shan

This patch series introduces changes to add default build support for
the sched tests in selftests.

The only test under sched is cs_prctl_test which validates cookies when
core scheduling is in effect. This test fails on systems where core
scheduling is disabled. The patch series also modifies this behaviour to
gracefully skip the test on such systems.

For example, such a test skip would look like:
TAP version 13
1..1
 timeout set to 45
 selftests: sched: cs_prctl_test
 Checking for CONFIG_SCHED_CORE support
 Core scheduling not enabled in kernel, hence skipping tests
ok 1 selftests: sched: cs_prctl_test # SKIP

and a successful run:
TAP version 13
1..1
 timeout set to 45
 selftests: sched: cs_prctl_test
 Checking for CONFIG_SCHED_CORE support
 CONFIG_SCHED_CORE=y
.
.
.
 SUCCESS !!!
ok 1 selftests: sched: cs_prctl_test

Signed-off-by: Sinadin Shan <sinadin.shan@oracle.com>
---
v2:
* Add patch to skip cs_prctl_test on core scheduling disabled systems
* v1 link: https://lore.kernel.org/all/20250219064658.449069-1-sinadin.shan@oracle.com
--- 

Sinadin Shan (2):
  selftests: sched: add sched as a default selftest target
  selftests: sched: skip cs_prctl_test for systems with core scheduling
    disabled

 tools/testing/selftests/Makefile              |  1 +
 tools/testing/selftests/sched/cs_prctl_test.c | 29 ++++++++++++++++++-
 2 files changed, 29 insertions(+), 1 deletion(-)

-- 
2.43.5


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-02-25  8:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-21 11:57 [PATCH v2 0/2] selftests: sched: Add default target support for sched Sinadin Shan
2025-02-21 11:57 ` [PATCH v2 1/2] selftests: sched: add sched as a default selftest target Sinadin Shan
2025-02-21 11:57 ` [PATCH v2 2/2] selftests: sched: skip cs_prctl_test for systems with core scheduling disabled Sinadin Shan
2025-02-24  8:19   ` Shrikanth Hegde
2025-02-24 12:10     ` Sinadin Shan
2025-02-24 23:02       ` Chris Hyser
2025-02-25  8:54         ` Sinadin Shan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox