]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add chrt SCHED_EXT test
authorShashank Balaji <shashank.mahadasyam@sony.com>
Fri, 16 May 2025 09:35:15 +0000 (18:35 +0900)
committerShashank Balaji <shashank.mahadasyam@sony.com>
Fri, 16 May 2025 09:35:15 +0000 (18:35 +0900)
Signed-off-by: Shashank Balaji <shashank.mahadasyam@sony.com>
tests/expected/schedutils/chrt-ext [new file with mode: 0644]
tests/ts/schedutils/chrt

diff --git a/tests/expected/schedutils/chrt-ext b/tests/expected/schedutils/chrt-ext
new file mode 100644 (file)
index 0000000..9bb972b
--- /dev/null
@@ -0,0 +1,4 @@
+SCHED_EXT
+0
+SCHED_EXT
+0
index 74186c05347faaec38f0ae8a5b50a326d1f322f0..82325389345e8f6d509e3eaeca5e19c935d6e594 100755 (executable)
@@ -137,6 +137,15 @@ if [ $? == 0 ]; then
        ts_finalize_subtest
 fi
 
+ts_init_subtest "ext"
+skip_policy SCHED_EXT
+if [ $? == 0 ]; then
+       do_chrt --ext 0
+       do_chrt -e 0
+       cleanup_output
+       ts_finalize_subtest
+fi
+
 # failed -- let's report kernel limits
 #
 if [ $TS_NSUBFAILED -ne 0 ]; then