summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJoel Granados <joel.granados@kernel.org>2026-09-14 14:40:19 +0200
committerJoel Granados <joel.granados@kernel.org>2026-09-23 15:22:55 +0200
commitccb5bf46e31cef31d0ed1957b1fd3dbf8c774243 (patch)
tree18e7cf165571ccf30fdafc5769e506dd0001b366 /tools/perf/scripts/python
parent1068f1c5f71a829cfde89536b358644a694ccfe8 (diff)
downloadlinux-next-ccb5bf46e31cef31d0ed1957b1fd3dbf8c774243.tar.gz
linux-next-ccb5bf46e31cef31d0ed1957b1fd3dbf8c774243.zip
sysctl: Rewrite selftests on top of KTAP helpers
Use kselftest/ktap_helpers.sh so that each test reports its own KTAP result. A failure names the test but continues with the rest of the suite. Tests are functions prefixed by "test_", they run in a subshell and do not leak state to other tests. Sysctl test assertions (assert*) emit a KTAP diagnostic and return a status, never exit. The sysctl selftests arguments are: -r N repeat selected tests N times (default 1) -l list discovered tests -t T space separated tests list. For example "test_1 test_2" -s N base seed for the randomized bitmap iterations. -h, --help help It is a single commit to avoid intermediate states where the runner exists with no tests or where scaffolding is added only to be deleted later in the same series. Neither bisects usefully. Assisted-by: Claude:claude-opus-5 Signed-off-by: Joel Granados <joel.granados@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions