zephyr/tests/ztest/base/testcase.yaml
Daniel Leung 55ad66a30c tests: ztest/base: fix incorrect userspace filtering
The filter here should be used to filter for capability:
whether the platform configuration supports userspace. And if
it does support userspace, we then enable CONFIG_TEST_USERSPACE
(and thus CONFIG_USERSPACE) for testing. We should not be
filtering for whether userspace is enabled, but should really
be filtering for whether userspace is supported.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-11-20 15:58:15 -05:00

35 lines
877 B
YAML

common:
tags:
- test_framework
tests:
testing.ztest.base:
type: unit
testing.ztest.base.cpp:
extra_args: CONF_FILE=prj_cpp.conf
platform_allow:
- native_sim
- native_sim/native/64
integration_platforms:
- native_sim
testing.ztest.base.verbose_0:
extra_args: CONF_FILE=prj_verbose_0.conf
integration_platforms:
- native_sim
testing.ztest.base.verbose_0_userspace:
filter: CONFIG_ARCH_HAS_USERSPACE
extra_args: CONF_FILE=prj_verbose_0.conf
tags:
- userspace
extra_configs:
- CONFIG_TEST_USERSPACE=y
integration_platforms:
- qemu_x86
testing.ztest.base.verbose_1:
extra_args: CONF_FILE=prj_verbose_1.conf
integration_platforms:
- native_sim
testing.ztest.base.verbose_2:
extra_args: CONF_FILE=prj_verbose_2.conf
integration_platforms:
- native_sim