]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: move schedutils tool test scripts to dedicated subdirs
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 29 Jan 2026 06:16:26 +0000 (01:16 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 29 Jan 2026 12:43:57 +0000 (07:43 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
21 files changed:
tests/expected/chrt/chrt [moved from tests/expected/schedutils/chrt with 100% similarity]
tests/expected/chrt/chrt-batch [moved from tests/expected/schedutils/chrt-batch with 100% similarity]
tests/expected/chrt/chrt-batch-custom-slice [moved from tests/expected/schedutils/chrt-batch-custom-slice with 100% similarity]
tests/expected/chrt/chrt-deadline [moved from tests/expected/schedutils/chrt-deadline with 100% similarity]
tests/expected/chrt/chrt-ext [moved from tests/expected/schedutils/chrt-ext with 100% similarity]
tests/expected/chrt/chrt-fifo [moved from tests/expected/schedutils/chrt-fifo with 100% similarity]
tests/expected/chrt/chrt-idle [moved from tests/expected/schedutils/chrt-idle with 100% similarity]
tests/expected/chrt/chrt-non-root-batch-vs-nice [moved from tests/expected/schedutils/chrt-non-root-batch-vs-nice with 100% similarity]
tests/expected/chrt/chrt-other [moved from tests/expected/schedutils/chrt-other with 100% similarity]
tests/expected/chrt/chrt-other-custom-slice [moved from tests/expected/schedutils/chrt-other-custom-slice with 100% similarity]
tests/expected/chrt/chrt-rr [moved from tests/expected/schedutils/chrt-rr with 100% similarity]
tests/expected/coresched/coresched-copy-from-child-to-parent [moved from tests/expected/schedutils/coresched-copy-from-child-to-parent with 100% similarity]
tests/expected/coresched/coresched-copy-from-parent-to-nested-child [moved from tests/expected/schedutils/coresched-copy-from-parent-to-nested-child with 100% similarity]
tests/expected/coresched/coresched-get-cookie-own-pid [moved from tests/expected/schedutils/coresched-get-cookie-own-pid with 100% similarity]
tests/expected/coresched/coresched-get-cookie-parent-pid [moved from tests/expected/schedutils/coresched-get-cookie-parent-pid with 100% similarity]
tests/expected/coresched/coresched-new-child-with-new-cookie [moved from tests/expected/schedutils/coresched-new-child-with-new-cookie with 100% similarity]
tests/expected/coresched/coresched-set-cookie-parent-pid.err [moved from tests/expected/schedutils/coresched-set-cookie-parent-pid.err with 100% similarity]
tests/expected/schedutils/set-cookie-parent-pid [deleted file]
tests/ts/chrt/chrt [moved from tests/ts/schedutils/chrt with 100% similarity]
tests/ts/chrt/chrt-non-root [moved from tests/ts/schedutils/chrt-non-root with 100% similarity]
tests/ts/coresched/coresched [moved from tests/ts/schedutils/coresched with 96% similarity]

diff --git a/tests/expected/schedutils/set-cookie-parent-pid b/tests/expected/schedutils/set-cookie-parent-pid
deleted file mode 100644 (file)
index e7318ff..0000000
+++ /dev/null
@@ -1 +0,0 @@
-coresched: set cookie of PID PARENT_PID to PARENT_COOKIE
similarity index 100%
rename from tests/ts/schedutils/chrt
rename to tests/ts/chrt/chrt
similarity index 96%
rename from tests/ts/schedutils/coresched
rename to tests/ts/coresched/coresched
index 36e1a9ca12dae66975388378356672cabc11a95c..1cdc3c2e78a32db32aefb13e8a98e6d41f7fb4b6 100755 (executable)
@@ -31,7 +31,7 @@ fi
 # The behavior of coresched does not depend on the exact values of these cookies, so using
 # placeholder values does not change the behavior tests.
 ts_init_subtest "set-cookie-parent-pid"
-CORESCHED_OUTPUT=$( ($TS_CMD_CORESCHED -v new -d $$ \
+CORESCHED_OUTPUT=$( ($TS_CMD_CORESCHED --verbose new --dest $$ \
   | tee -a "$TS_OUTPUT") 3>&1 1>&2 2>&3 \
   | sed "s/$$/PARENT_PID/g")
 CORESCHED_PARENT_COOKIE=$(echo "$CORESCHED_OUTPUT" | sed 's/^.*\(0x.*$\)/\1/g')
@@ -44,7 +44,7 @@ echo "$CORESCHED_OUTPUT" >> "$TS_ERRLOG"
 ts_finalize_subtest
 
 ts_init_subtest "get-cookie-parent-pid"
-$TS_CMD_CORESCHED get -s $$ 2>> "$TS_ERRLOG" \
+$TS_CMD_CORESCHED get --source $$ 2>> "$TS_ERRLOG" \
   | sed -e "s/$$/PARENT_PID/g" \
         -e "s/$CORESCHED_PARENT_COOKIE/PARENT_COOKIE/g" >> "$TS_OUTPUT"
 ts_finalize_subtest