From a1cae6e47b3299ead931c7774a8f811f2e4eeb68 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 26 Nov 2024 04:23:37 -0500 Subject: [PATCH] tests: benchmarks: optimize filters and use platform_key. Benchmarks are not tests, we run them to verify they still work and do not bitrot. Running them on each architecture should be sufficient. This reduces amount of churn in CI and still allows them to be run individually on platforms. Signed-off-by: Anas Nashif --- tests/benchmarks/app_kernel/testcase.yaml | 2 ++ tests/benchmarks/data_structure_perf/dlist_perf/testcase.yaml | 2 ++ tests/benchmarks/data_structure_perf/rbtree_perf/testcase.yaml | 2 ++ tests/benchmarks/latency_measure/testcase.yaml | 2 ++ tests/benchmarks/sched/testcase.yaml | 2 ++ tests/benchmarks/sched_queues/testcase.yaml | 3 +++ tests/benchmarks/sched_userspace/testcase.yaml | 1 - tests/benchmarks/sys_kernel/testcase.yaml | 2 ++ tests/benchmarks/thread_metric/testcase.yaml | 2 ++ tests/benchmarks/wait_queues/testcase.yaml | 2 ++ 10 files changed, 19 insertions(+), 1 deletion(-) diff --git a/tests/benchmarks/app_kernel/testcase.yaml b/tests/benchmarks/app_kernel/testcase.yaml index 32790a43e4e1be..64f8cafaa6a8a1 100644 --- a/tests/benchmarks/app_kernel/testcase.yaml +++ b/tests/benchmarks/app_kernel/testcase.yaml @@ -1,4 +1,6 @@ common: + platform_key: + - arch tags: - benchmark - kernel diff --git a/tests/benchmarks/data_structure_perf/dlist_perf/testcase.yaml b/tests/benchmarks/data_structure_perf/dlist_perf/testcase.yaml index 87abef0773fac4..ffbf3e60dd1b4b 100644 --- a/tests/benchmarks/data_structure_perf/dlist_perf/testcase.yaml +++ b/tests/benchmarks/data_structure_perf/dlist_perf/testcase.yaml @@ -1,5 +1,7 @@ tests: benchmark.data_structure_perf.dlist: + platform_key: + - arch tags: - benchmark - dlist diff --git a/tests/benchmarks/data_structure_perf/rbtree_perf/testcase.yaml b/tests/benchmarks/data_structure_perf/rbtree_perf/testcase.yaml index d8b48be3acffb9..0d6b819034591c 100644 --- a/tests/benchmarks/data_structure_perf/rbtree_perf/testcase.yaml +++ b/tests/benchmarks/data_structure_perf/rbtree_perf/testcase.yaml @@ -1,5 +1,7 @@ tests: benchmark.data_structure_perf.rbtree: + platform_key: + - arch tags: - benchmark - rbtree diff --git a/tests/benchmarks/latency_measure/testcase.yaml b/tests/benchmarks/latency_measure/testcase.yaml index 73a4dcb66c9b50..a56dc6dedb7754 100644 --- a/tests/benchmarks/latency_measure/testcase.yaml +++ b/tests/benchmarks/latency_measure/testcase.yaml @@ -1,4 +1,6 @@ common: + platform_key: + - arch tags: - kernel - benchmark diff --git a/tests/benchmarks/sched/testcase.yaml b/tests/benchmarks/sched/testcase.yaml index 34b0a290617105..3372e4476845bc 100644 --- a/tests/benchmarks/sched/testcase.yaml +++ b/tests/benchmarks/sched/testcase.yaml @@ -1,5 +1,7 @@ tests: benchmark.kernel.scheduler: + platform_key: + - arch tags: - benchmark - kernel diff --git a/tests/benchmarks/sched_queues/testcase.yaml b/tests/benchmarks/sched_queues/testcase.yaml index e3ecc3b34264ed..a61a8e5a295b44 100644 --- a/tests/benchmarks/sched_queues/testcase.yaml +++ b/tests/benchmarks/sched_queues/testcase.yaml @@ -1,4 +1,7 @@ common: + platform_key: + - arch + min_ram: 32 tags: - kernel - benchmark diff --git a/tests/benchmarks/sched_userspace/testcase.yaml b/tests/benchmarks/sched_userspace/testcase.yaml index 60b6f2f3808205..27f52853dda79a 100644 --- a/tests/benchmarks/sched_userspace/testcase.yaml +++ b/tests/benchmarks/sched_userspace/testcase.yaml @@ -5,7 +5,6 @@ tests: - kernel - benchmark - userspace - slow: true filter: CONFIG_ARCH_HAS_USERSPACE arch_exclude: - posix diff --git a/tests/benchmarks/sys_kernel/testcase.yaml b/tests/benchmarks/sys_kernel/testcase.yaml index 871bd5dc47c430..d4d36382c690b1 100644 --- a/tests/benchmarks/sys_kernel/testcase.yaml +++ b/tests/benchmarks/sys_kernel/testcase.yaml @@ -1,5 +1,7 @@ tests: benchmark.kernel.core: + platform_key: + - arch tags: - kernel - benchmark diff --git a/tests/benchmarks/thread_metric/testcase.yaml b/tests/benchmarks/thread_metric/testcase.yaml index 474d02cf011ebd..dbe5f7442c7ca9 100644 --- a/tests/benchmarks/thread_metric/testcase.yaml +++ b/tests/benchmarks/thread_metric/testcase.yaml @@ -1,4 +1,6 @@ common: + platform_key: + - arch tags: - kernel - benchmark diff --git a/tests/benchmarks/wait_queues/testcase.yaml b/tests/benchmarks/wait_queues/testcase.yaml index 50fd4251fb66bf..dfaa92e30e1b29 100644 --- a/tests/benchmarks/wait_queues/testcase.yaml +++ b/tests/benchmarks/wait_queues/testcase.yaml @@ -1,4 +1,6 @@ common: + platform_key: + - arch tags: - kernel - benchmark