tests: ztest: fix tags for testsuite and unify them

Use test_framework as unified tag so we can filter tests in a consistent
way.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-06-01 07:05:07 -04:00
commit cec8fd1c6e
11 changed files with 23 additions and 16 deletions

View file

@ -5,4 +5,4 @@ tests:
platform_allow: native_posix platform_allow: native_posix
integration_platforms: integration_platforms:
- native_posix - native_posix
tags: testing tags: test_framework

View file

@ -5,7 +5,7 @@ tests:
harness_config: harness_config:
pytest_args: ["--custom-pytest-arg", "foo", "--cmdopt", "."] pytest_args: ["--custom-pytest-arg", "foo", "--cmdopt", "."]
tags: tags:
- testing - test_framework
- pytest - pytest
integration_platforms: integration_platforms:
- native_posix - native_posix

View file

@ -9,6 +9,6 @@ tests:
- native_posix - native_posix
- qemu_cortex_m3 - qemu_cortex_m3
tags: tags:
- testing - test_framework
- pytest - pytest
- shell - shell

View file

@ -46,9 +46,12 @@ bluetooth:
- subsys/bluetooth/ - subsys/bluetooth/
- subsys/net/l2/bluetooth/ - subsys/net/l2/bluetooth/
testsuite: test_framework:
files: files:
- subsys/testsuite/ - subsys/testsuite/
- samples/subsys/testsuite/
- tests/subsys/testsuite/
- tests/ztest/
cmsis_dsp: cmsis_dsp:
files: files:

View file

@ -1,21 +1,20 @@
common:
tags:
- test_framework
tests: tests:
testing.ztest.base: testing.ztest.base:
tags: test_framework
type: unit type: unit
testing.ztest.base.cpp: testing.ztest.base.cpp:
extra_args: CONF_FILE=prj_cpp.conf extra_args: CONF_FILE=prj_cpp.conf
tags: test_framework
platform_allow: native_posix platform_allow: native_posix
testing.ztest.base.verbose_0: testing.ztest.base.verbose_0:
extra_args: CONF_FILE=prj_verbose_0.conf extra_args: CONF_FILE=prj_verbose_0.conf
tags: test_framework
integration_platforms: integration_platforms:
- native_posix - native_posix
testing.ztest.base.verbose_0_userspace: testing.ztest.base.verbose_0_userspace:
filter: CONFIG_USERSPACE filter: CONFIG_USERSPACE
extra_args: CONF_FILE=prj_verbose_0.conf extra_args: CONF_FILE=prj_verbose_0.conf
tags: tags:
- test_framework
- userspace - userspace
extra_configs: extra_configs:
- CONFIG_TEST_USERSPACE=y - CONFIG_TEST_USERSPACE=y
@ -23,11 +22,9 @@ tests:
- native_posix - native_posix
testing.ztest.base.verbose_1: testing.ztest.base.verbose_1:
extra_args: CONF_FILE=prj_verbose_1.conf extra_args: CONF_FILE=prj_verbose_1.conf
tags: test_framework
integration_platforms: integration_platforms:
- native_posix - native_posix
testing.ztest.base.verbose_2: testing.ztest.base.verbose_2:
extra_args: CONF_FILE=prj_verbose_2.conf extra_args: CONF_FILE=prj_verbose_2.conf
tags: test_framework
integration_platforms: integration_platforms:
- native_posix - native_posix

View file

@ -1,5 +1,6 @@
common: common:
tags: test_framework tags:
- test_framework
depends_on: counter depends_on: counter
tests: tests:
testing.ztest.busy_sim: testing.ztest.busy_sim:

View file

@ -1,11 +1,12 @@
common:
tags:
- test_framework
tests: tests:
testing.ztest.error_hook: testing.ztest.error_hook:
filter: CONFIG_ARCH_HAS_USERSPACE filter: CONFIG_ARCH_HAS_USERSPACE
tags: tags:
- test_framework
- userspace - userspace
ignore_faults: true ignore_faults: true
testing.ztest.error_hook.no_userspace: testing.ztest.error_hook.no_userspace:
extra_args: CONF_FILE=prj_no_userspace.conf extra_args: CONF_FILE=prj_no_userspace.conf
tags: test_framework
ignore_faults: true ignore_faults: true

View file

@ -2,7 +2,8 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
common: common:
tags: ztest tags:
- test_framework
# test has dependencies on host libc # test has dependencies on host libc
platform_allow: native_posix platform_allow: native_posix
tests: tests:

View file

@ -1,3 +1,4 @@
tests: tests:
testing.ztest.summary.shared_unit_test: testing.ztest.summary.shared_unit_test:
tags: test_framework tags:
- test_framework

View file

@ -4,6 +4,8 @@
common: common:
integration_platforms: integration_platforms:
- native_posix - native_posix
tags:
- test_framework
tests: tests:
testing.ztest.expect: testing.ztest.expect:
integration_platforms: integration_platforms:

View file

@ -1,5 +1,6 @@
common: common:
tags: test_framework tags:
- test_framework
platform_type: platform_type:
- qemu - qemu
tests: tests: