From f22cafca5ebe32dcfca59a36ab53ec53b2706c8c Mon Sep 17 00:00:00 2001 From: Christian Goeschel Ndjomouo Date: Thu, 29 Jan 2026 01:16:26 -0500 Subject: [PATCH] tests: move schedutils tool test scripts to dedicated subdirs Signed-off-by: Christian Goeschel Ndjomouo --- tests/expected/{schedutils => chrt}/chrt | 0 tests/expected/{schedutils => chrt}/chrt-batch | 0 tests/expected/{schedutils => chrt}/chrt-batch-custom-slice | 0 tests/expected/{schedutils => chrt}/chrt-deadline | 0 tests/expected/{schedutils => chrt}/chrt-ext | 0 tests/expected/{schedutils => chrt}/chrt-fifo | 0 tests/expected/{schedutils => chrt}/chrt-idle | 0 .../expected/{schedutils => chrt}/chrt-non-root-batch-vs-nice | 0 tests/expected/{schedutils => chrt}/chrt-other | 0 tests/expected/{schedutils => chrt}/chrt-other-custom-slice | 0 tests/expected/{schedutils => chrt}/chrt-rr | 0 .../coresched-copy-from-child-to-parent | 0 .../coresched-copy-from-parent-to-nested-child | 0 .../{schedutils => coresched}/coresched-get-cookie-own-pid | 0 .../{schedutils => coresched}/coresched-get-cookie-parent-pid | 0 .../coresched-new-child-with-new-cookie | 0 .../coresched-set-cookie-parent-pid.err | 0 tests/expected/schedutils/set-cookie-parent-pid | 1 - tests/ts/{schedutils => chrt}/chrt | 0 tests/ts/{schedutils => chrt}/chrt-non-root | 0 tests/ts/{schedutils => coresched}/coresched | 4 ++-- 21 files changed, 2 insertions(+), 3 deletions(-) rename tests/expected/{schedutils => chrt}/chrt (100%) rename tests/expected/{schedutils => chrt}/chrt-batch (100%) rename tests/expected/{schedutils => chrt}/chrt-batch-custom-slice (100%) rename tests/expected/{schedutils => chrt}/chrt-deadline (100%) rename tests/expected/{schedutils => chrt}/chrt-ext (100%) rename tests/expected/{schedutils => chrt}/chrt-fifo (100%) rename tests/expected/{schedutils => chrt}/chrt-idle (100%) rename tests/expected/{schedutils => chrt}/chrt-non-root-batch-vs-nice (100%) rename tests/expected/{schedutils => chrt}/chrt-other (100%) rename tests/expected/{schedutils => chrt}/chrt-other-custom-slice (100%) rename tests/expected/{schedutils => chrt}/chrt-rr (100%) rename tests/expected/{schedutils => coresched}/coresched-copy-from-child-to-parent (100%) rename tests/expected/{schedutils => coresched}/coresched-copy-from-parent-to-nested-child (100%) rename tests/expected/{schedutils => coresched}/coresched-get-cookie-own-pid (100%) rename tests/expected/{schedutils => coresched}/coresched-get-cookie-parent-pid (100%) rename tests/expected/{schedutils => coresched}/coresched-new-child-with-new-cookie (100%) rename tests/expected/{schedutils => coresched}/coresched-set-cookie-parent-pid.err (100%) delete mode 100644 tests/expected/schedutils/set-cookie-parent-pid rename tests/ts/{schedutils => chrt}/chrt (100%) rename tests/ts/{schedutils => chrt}/chrt-non-root (100%) rename tests/ts/{schedutils => coresched}/coresched (96%) diff --git a/tests/expected/schedutils/chrt b/tests/expected/chrt/chrt similarity index 100% rename from tests/expected/schedutils/chrt rename to tests/expected/chrt/chrt diff --git a/tests/expected/schedutils/chrt-batch b/tests/expected/chrt/chrt-batch similarity index 100% rename from tests/expected/schedutils/chrt-batch rename to tests/expected/chrt/chrt-batch diff --git a/tests/expected/schedutils/chrt-batch-custom-slice b/tests/expected/chrt/chrt-batch-custom-slice similarity index 100% rename from tests/expected/schedutils/chrt-batch-custom-slice rename to tests/expected/chrt/chrt-batch-custom-slice diff --git a/tests/expected/schedutils/chrt-deadline b/tests/expected/chrt/chrt-deadline similarity index 100% rename from tests/expected/schedutils/chrt-deadline rename to tests/expected/chrt/chrt-deadline diff --git a/tests/expected/schedutils/chrt-ext b/tests/expected/chrt/chrt-ext similarity index 100% rename from tests/expected/schedutils/chrt-ext rename to tests/expected/chrt/chrt-ext diff --git a/tests/expected/schedutils/chrt-fifo b/tests/expected/chrt/chrt-fifo similarity index 100% rename from tests/expected/schedutils/chrt-fifo rename to tests/expected/chrt/chrt-fifo diff --git a/tests/expected/schedutils/chrt-idle b/tests/expected/chrt/chrt-idle similarity index 100% rename from tests/expected/schedutils/chrt-idle rename to tests/expected/chrt/chrt-idle diff --git a/tests/expected/schedutils/chrt-non-root-batch-vs-nice b/tests/expected/chrt/chrt-non-root-batch-vs-nice similarity index 100% rename from tests/expected/schedutils/chrt-non-root-batch-vs-nice rename to tests/expected/chrt/chrt-non-root-batch-vs-nice diff --git a/tests/expected/schedutils/chrt-other b/tests/expected/chrt/chrt-other similarity index 100% rename from tests/expected/schedutils/chrt-other rename to tests/expected/chrt/chrt-other diff --git a/tests/expected/schedutils/chrt-other-custom-slice b/tests/expected/chrt/chrt-other-custom-slice similarity index 100% rename from tests/expected/schedutils/chrt-other-custom-slice rename to tests/expected/chrt/chrt-other-custom-slice diff --git a/tests/expected/schedutils/chrt-rr b/tests/expected/chrt/chrt-rr similarity index 100% rename from tests/expected/schedutils/chrt-rr rename to tests/expected/chrt/chrt-rr diff --git a/tests/expected/schedutils/coresched-copy-from-child-to-parent b/tests/expected/coresched/coresched-copy-from-child-to-parent similarity index 100% rename from tests/expected/schedutils/coresched-copy-from-child-to-parent rename to tests/expected/coresched/coresched-copy-from-child-to-parent diff --git a/tests/expected/schedutils/coresched-copy-from-parent-to-nested-child b/tests/expected/coresched/coresched-copy-from-parent-to-nested-child similarity index 100% rename from tests/expected/schedutils/coresched-copy-from-parent-to-nested-child rename to tests/expected/coresched/coresched-copy-from-parent-to-nested-child diff --git a/tests/expected/schedutils/coresched-get-cookie-own-pid b/tests/expected/coresched/coresched-get-cookie-own-pid similarity index 100% rename from tests/expected/schedutils/coresched-get-cookie-own-pid rename to tests/expected/coresched/coresched-get-cookie-own-pid diff --git a/tests/expected/schedutils/coresched-get-cookie-parent-pid b/tests/expected/coresched/coresched-get-cookie-parent-pid similarity index 100% rename from tests/expected/schedutils/coresched-get-cookie-parent-pid rename to tests/expected/coresched/coresched-get-cookie-parent-pid diff --git a/tests/expected/schedutils/coresched-new-child-with-new-cookie b/tests/expected/coresched/coresched-new-child-with-new-cookie similarity index 100% rename from tests/expected/schedutils/coresched-new-child-with-new-cookie rename to tests/expected/coresched/coresched-new-child-with-new-cookie diff --git a/tests/expected/schedutils/coresched-set-cookie-parent-pid.err b/tests/expected/coresched/coresched-set-cookie-parent-pid.err similarity index 100% rename from tests/expected/schedutils/coresched-set-cookie-parent-pid.err rename to tests/expected/coresched/coresched-set-cookie-parent-pid.err diff --git a/tests/expected/schedutils/set-cookie-parent-pid b/tests/expected/schedutils/set-cookie-parent-pid deleted file mode 100644 index e7318ffc2b..0000000000 --- a/tests/expected/schedutils/set-cookie-parent-pid +++ /dev/null @@ -1 +0,0 @@ -coresched: set cookie of PID PARENT_PID to PARENT_COOKIE diff --git a/tests/ts/schedutils/chrt b/tests/ts/chrt/chrt similarity index 100% rename from tests/ts/schedutils/chrt rename to tests/ts/chrt/chrt diff --git a/tests/ts/schedutils/chrt-non-root b/tests/ts/chrt/chrt-non-root similarity index 100% rename from tests/ts/schedutils/chrt-non-root rename to tests/ts/chrt/chrt-non-root diff --git a/tests/ts/schedutils/coresched b/tests/ts/coresched/coresched similarity index 96% rename from tests/ts/schedutils/coresched rename to tests/ts/coresched/coresched index 36e1a9ca12..1cdc3c2e78 100755 --- a/tests/ts/schedutils/coresched +++ b/tests/ts/coresched/coresched @@ -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 -- 2.47.3