From befc96f22e9b1c1632a5c6f5d4e9ecb9c0f792ed Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Mon, 23 Oct 2023 11:34:55 +0200 Subject: [PATCH] userspace tests/samples: Exclude in posix arch These samples & tests cannot be run in this architecture as it does not support userspace. Today they are filtered by kconfig, which works but spends time running cmake. As native_posix is a default test platform it is better to filter it alltogether by arch, which saves quite a lot of time. Signed-off-by: Alberto Escolar Piedras --- samples/userspace/hello_world_user/sample.yaml | 2 ++ samples/userspace/prod_consumer/sample.yaml | 2 ++ samples/userspace/shared_mem/sample.yaml | 2 ++ tests/benchmarks/sched_userspace/testcase.yaml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/samples/userspace/hello_world_user/sample.yaml b/samples/userspace/hello_world_user/sample.yaml index 1a0a407e893..f782f36cad4 100644 --- a/samples/userspace/hello_world_user/sample.yaml +++ b/samples/userspace/hello_world_user/sample.yaml @@ -14,4 +14,6 @@ common: tests: sample.helloworld: filter: CONFIG_ARCH_HAS_USERSPACE + arch_exclude: + - posix tags: introduction diff --git a/samples/userspace/prod_consumer/sample.yaml b/samples/userspace/prod_consumer/sample.yaml index 791f103b6ef..cc4aaa5d118 100644 --- a/samples/userspace/prod_consumer/sample.yaml +++ b/samples/userspace/prod_consumer/sample.yaml @@ -13,3 +13,5 @@ common: tests: sample.userspace.prod_consumer: filter: CONFIG_ARCH_HAS_USERSPACE + arch_exclude: + - posix diff --git a/samples/userspace/shared_mem/sample.yaml b/samples/userspace/shared_mem/sample.yaml index 3e45ba1bbd6..954b6a9d3d6 100644 --- a/samples/userspace/shared_mem/sample.yaml +++ b/samples/userspace/shared_mem/sample.yaml @@ -14,6 +14,8 @@ common: tests: sample.kernel.memory_protection.shared_mem: filter: CONFIG_ARCH_HAS_USERSPACE + arch_exclude: + - posix platform_exclude: - twr_ke18f - cy8cproto_062_4343w diff --git a/tests/benchmarks/sched_userspace/testcase.yaml b/tests/benchmarks/sched_userspace/testcase.yaml index e4da7bc1bcf..60b6f2f3808 100644 --- a/tests/benchmarks/sched_userspace/testcase.yaml +++ b/tests/benchmarks/sched_userspace/testcase.yaml @@ -7,6 +7,8 @@ tests: - userspace slow: true filter: CONFIG_ARCH_HAS_USERSPACE + arch_exclude: + - posix harness: console harness_config: type: multi_line