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 <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-10-23 11:34:55 +02:00 committed by Carles Cufí
parent c6fd2b2d44
commit befc96f22e
4 changed files with 8 additions and 0 deletions

View file

@ -14,4 +14,6 @@ common:
tests:
sample.helloworld:
filter: CONFIG_ARCH_HAS_USERSPACE
arch_exclude:
- posix
tags: introduction

View file

@ -13,3 +13,5 @@ common:
tests:
sample.userspace.prod_consumer:
filter: CONFIG_ARCH_HAS_USERSPACE
arch_exclude:
- posix

View file

@ -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

View file

@ -7,6 +7,8 @@ tests:
- userspace
slow: true
filter: CONFIG_ARCH_HAS_USERSPACE
arch_exclude:
- posix
harness: console
harness_config:
type: multi_line