]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chrt: (tests) Add new cases for custom slice on SCHED_{OTHER,BATCH}
authorPetre Tudor <petre-ionut.tudor@arm.com>
Wed, 29 Jan 2025 17:05:18 +0000 (17:05 +0000)
committerPetre Tudor <petre-ionut.tudor@arm.com>
Wed, 12 Feb 2025 15:56:56 +0000 (15:56 +0000)
commit96f3bacc93df4074b0e9712a547dd5271da5c4fc
treeca3074e91bac6194812c9d651c954fac223c5f4c
parent22ff43f78f4a2a44243d2eae9128933785ea02ee
chrt: (tests) Add new cases for custom slice on SCHED_{OTHER,BATCH}

Adds two new test cases setting --sched-runtime for SCHED_{OTHER,BATCH}.

The new custom slice tests are skipped for kernel versions < 6.12,
which do not have the feature. The existing chrt tests for
SCHED_{OTHER,BATCH} are skipped for kernel versions >= 6.12.

This is for two reasons:
 - the default sched_runtime value depends on target platform
 - without custom slice support, the value of sched_runtime is
   always zero for SCHED_{OTHER,BATCH}

Expected output with kernel version < 6.12:
   schedutils: chrt                           ...
                : batch                       ... OK
                : batch-custom-slice          ... SKIPPED
                : other                       ... OK
                : other-custom-slice          ... SKIPPED
: deadline                    ... OK

Expected output with kernel version >= 6.12:
   schedutils: chrt                           ...
                : batch                       ... SKIPPED
                : batch-custom-slice          ... OK
                : other                       ... SKIPPED
                : other-custom-slice          ... OK
: deadline                    ... OK

Signed-off-by: Petre Tudor <petre-ionut.tudor@arm.com>
tests/expected/schedutils/chrt-batch-custom-slice [new file with mode: 0644]
tests/expected/schedutils/chrt-other-custom-slice [new file with mode: 0644]
tests/functions.sh
tests/ts/schedutils/chrt