tests: samples: cleanup test tags, add integration_platforms

Use integration platforms and sanitize tags.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-06-01 10:44:47 -04:00
commit 0064b6e8b6
36 changed files with 125 additions and 70 deletions

View file

@ -12,7 +12,11 @@ common:
tests:
sample.smp.pktqueue:
tags: introduction
tags:
- introduction
- kernel
depends_on:
- smp
filter: (CONFIG_MP_MAX_NUM_CPUS > 1)
platform_exclude:
- esp32

View file

@ -5,6 +5,8 @@ tests:
# theoretically EVB can be connected to Intel RVP as well,
# but HW setup is not documented, hence qualifying as unsupported.
platform_exclude: mec15xxevb_assy6853
integration_platforms:
- npcx9m6f_evb
filter: dt_alias_exists("peci-0")
tags:
- drivers

View file

@ -2,6 +2,8 @@ sample:
name: UART driver sample
tests:
sample.drivers.uart:
integration_platforms:
- qemu_x86
tags:
- serial
- uart

View file

@ -5,8 +5,9 @@ tests:
sample.sensor.die_temperature_polling:
tags:
- sensors
- tests
filter: dt_alias_exists("die-temp0")
integration_platforms:
- stm32f3_disco
harness: console
harness_config:
type: one_line

View file

@ -5,7 +5,8 @@ tests:
sample.sensor.esp32_temp_sensor:
tags:
- sensors
- tests
integration_platforms:
- esp32c3_devkitm
filter: dt_compat_enabled("espressif,esp32-temp")
harness: console
harness_config:

View file

@ -3,9 +3,12 @@ sample:
tests:
sample.sensor.lsm6dso:
harness: console
tags: sensors
tags:
- sensors
timeout: 15
filter: dt_compat_enabled("st,lsm6dso")
integration_platforms:
- stm32l562e_dk
harness_config:
type: multi_line
ordered: true

View file

@ -4,3 +4,5 @@ tests:
sample.input.input_dump:
tags: input
build_only: true
integration_platforms:
- native_posix

View file

@ -24,6 +24,8 @@ tests:
- posix
- xtensa
platform_exclude: qemu_x86_64
integration_platforms:
- qemu_x86
sample.tracing.transport.uart:
platform_allow:
- qemu_x86

View file

@ -1,5 +1,5 @@
sample:
name: Benchmark
name: Zbus Benchmark
tests:
sample.zbus.benchmark_async:
tags: zbus
@ -22,6 +22,8 @@ tests:
- arch:nios2:CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
- CONFIG_IDLE_STACK_SIZE=1024
platform_exclude: nrf52_bsim
integration_platforms:
- qemu_x86
sample.zbus.benchmark_sync:
tags: zbus
min_ram: 16
@ -43,3 +45,5 @@ tests:
- arch:nios2:CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
- CONFIG_IDLE_STACK_SIZE=1024
platform_exclude: nrf52_bsim
integration_platforms:
- qemu_x86

View file

@ -18,3 +18,5 @@ tests:
sample.zbus.uart_bridge_build:
tags: zbus
filter: dt_nodelabel_enabled("uart1")
integration_platforms:
- qemu_x86

View file

@ -12,3 +12,6 @@ tests:
extra_configs:
- CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0
- arch:riscv64:CONFIG_ZTEST_STACK_SIZE=8192
integration_platforms:
- qemu_x86
- native_posix

View file

@ -1,34 +1,22 @@
tests:
crypto.rand32:
common:
tags:
- crypto
- random
- security
integration_platforms:
- qemu_x86
tests:
crypto.rand32:
min_ram: 16
crypto.rand32.random_sw_systimer:
extra_args: CONF_FILE=prj_sw_random_systimer.conf
tags:
- crypto
- random
- security
min_ram: 16
crypto.rand32.random_hw_xoshiro:
extra_args: CONF_FILE=prj_hw_random_xoshiro.conf
filter: CONFIG_ENTROPY_HAS_DRIVER
tags:
- crypto
- entropy
- random
- security
min_ram: 16
crypto.rand32.random_ctr_drbg:
extra_args: CONF_FILE=prj_ctr_drbg.conf
filter: CONFIG_ENTROPY_HAS_DRIVER
tags:
- crypto
- entropy
- random
- security
min_ram: 16
drivers.rand32.random_psa_crypto:
filter: CONFIG_BUILD_WITH_TFM
@ -36,8 +24,4 @@ tests:
- DTC_OVERLAY_FILE=./entropy_psa_crypto.overlay
- CONF_FILE=prj_hw_random_psa_crypto.conf
tags:
- crypto
- entropy
- random
- security
- psa-crypto

View file

@ -11,8 +11,14 @@ common:
tests:
drivers.bbram.it8xxx2:
filter: dt_compat_enabled("ite,it8xxx2-bbram")
integration_platforms:
- it82xx2_evb
drivers.bbram.npcx:
filter: dt_compat_enabled("nuvoton,npcx-bbram")
integration_platforms:
- npcx9m6f_evb
drivers.bbram.stm32:
extra_args: OVERLAY_CONFIG="stm32.conf"
filter: dt_compat_enabled("st,stm32-bbram")
integration_platforms:
- stm32f746g_disco

View file

@ -2,7 +2,8 @@
# SPDX-License-Identifier: Apache-2.0
common:
tags: coredump
tags:
- coredump
ignore_faults: true
ignore_qemu_crash: true
tests:
@ -33,6 +34,8 @@ tests:
filter: CONFIG_ARCH_SUPPORTS_COREDUMP
platform_exclude: qemu_riscv32
harness: console
integration_platforms:
- qemu_x86
harness_config:
type: multi_line
# Verify core dump contains test values saved in memory

View file

@ -32,6 +32,8 @@ tests:
drivers.flash.common.default:
filter: ((CONFIG_FLASH_HAS_DRIVER_ENABLED and not CONFIG_TRUSTED_EXECUTION_NONSECURE)
and dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions"))
integration_platforms:
- qemu_x86
drivers.flash.common.tfm_ns:
build_only: true
filter: (CONFIG_FLASH_HAS_DRIVER_ENABLED and CONFIG_TRUSTED_EXECUTION_NONSECURE

View file

@ -6,3 +6,5 @@ tests:
tags:
- drivers
- ipc
integration_platforms:
- qemu_x86

View file

@ -4,3 +4,5 @@ tests:
- drivers
- mm
filter: dt_compat_enabled("intel,adsp-mtl-tlb") or dt_compat_enabled("intel,adsp-tlb")
integration_platforms:
- intel_adsp_ace15_mtpm

View file

@ -1,6 +1,9 @@
common:
tags: clib
tags:
- clib
arch_exclude: posix
integration_platforms:
- mps2_an385
tests:
libraries.libc:
ignore_faults: true
@ -11,10 +14,12 @@ tests:
extra_configs:
- CONFIG_PICOLIBC=y
libraries.libc.minimal.strerror_table:
tags: minimal_libc
extra_configs:
- CONFIG_MINIMAL_LIBC=y
- CONFIG_MINIMAL_LIBC_STRING_ERROR_TABLE=y
libraries.libc.minimal.no_strerror_table:
tags: minimal_libc
extra_configs:
- CONFIG_MINIMAL_LIBC=y
- CONFIG_MINIMAL_LIBC_STRING_ERROR_TABLE=n

View file

@ -15,3 +15,6 @@ tests:
- esp32s3_devkitm
filter: not CONFIG_SOC_NSIM
timeout: 480
integration_platforms:
- native_posix
- qemu_x86

View file

@ -3,3 +3,6 @@ tests:
tags:
- heap
- heap_align
integration_platforms:
- native_posix
- mps2_an521

View file

@ -1,47 +1,38 @@
common:
arch_exclude: posix
tags:
- clib
- userspace
integration_platforms:
- qemu_x86
tests:
libraries.libc.minimal.mem_alloc:
extra_args: CONF_FILE=prj.conf
platform_exclude: twr_ke18f
tags:
- clib
- minimal_libc
- userspace
libraries.libc.minimal.mem_alloc_negative_testing:
extra_args: CONF_FILE=prj_negative_testing.conf
platform_exclude: twr_ke18f
tags:
- clib
- minimal_libc
- userspace
libraries.libc.newlib.mem_alloc:
extra_args: CONF_FILE=prj_newlib.conf
filter: TOOLCHAIN_HAS_NEWLIB == 1
min_ram: 16
platform_exclude:
- twr_ke18f
- native_posix_64
- nrf52_bsim
tags:
- clib
- newlib
- userspace
libraries.libc.newlib_nano.mem_alloc:
extra_args: CONF_FILE=prj_newlibnano.conf
filter: CONFIG_HAS_NEWLIB_LIBC_NANO
tags:
- clib
- newlib
- userspace
libraries.libc.picolibc.mem_alloc:
extra_args: CONF_FILE=prj_picolibc.conf
filter: CONFIG_PICOLIBC_SUPPORTED
platform_exclude:
- twr_ke18f
- native_posix_64
- nrf52_bsim
tags:
- clib
- picolibc
- userspace

View file

@ -4,3 +4,6 @@ tests:
- clib
- newlib
filter: TOOLCHAIN_HAS_NEWLIB == 1
integration_platforms:
- mps2_an385
- qemu_x86

View file

@ -1,25 +1,23 @@
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
tests:
libraries.libc.newlib.thread_safety:
tags:
- clib
- newlib
integration_platforms:
- mps2_an521
- qemu_x86
tests:
libraries.libc.newlib.thread_safety:
min_ram: 64
libraries.libc.newlib.thread_safety.stress:
extra_configs:
- CONFIG_NEWLIB_THREAD_SAFETY_TEST_STRESS=y
slow: true
tags:
- clib
- newlib
min_ram: 192
libraries.libc.newlib.thread_safety.userspace:
extra_args: CONF_FILE=prj_userspace.conf
filter: CONFIG_ARCH_HAS_USERSPACE
tags:
- clib
- newlib
- userspace
min_ram: 64
libraries.libc.newlib.thread_safety.userspace.stress:
@ -30,8 +28,6 @@ tests:
filter: CONFIG_ARCH_HAS_USERSPACE
slow: true
tags:
- clib
- newlib
- userspace
min_ram: 192
timeout: 120
@ -39,9 +35,6 @@ tests:
extra_configs:
- CONFIG_NEWLIB_LIBC_NANO=y
filter: CONFIG_HAS_NEWLIB_LIBC_NANO
tags:
- clib
- newlib
min_ram: 64
libraries.libc.newlib_nano.thread_safety.stress:
extra_configs:
@ -49,9 +42,6 @@ tests:
- CONFIG_NEWLIB_LIBC_NANO=y
filter: CONFIG_HAS_NEWLIB_LIBC_NANO
slow: true
tags:
- clib
- newlib
min_ram: 192
libraries.libc.newlib_nano.thread_safety.userspace:
extra_args: CONF_FILE=prj_userspace.conf
@ -59,8 +49,6 @@ tests:
- CONFIG_NEWLIB_LIBC_NANO=y
filter: CONFIG_ARCH_HAS_USERSPACE and CONFIG_HAS_NEWLIB_LIBC_NANO
tags:
- clib
- newlib
- userspace
min_ram: 64
libraries.libc.newlib_nano.thread_safety.userspace.stress:
@ -72,8 +60,6 @@ tests:
filter: CONFIG_ARCH_HAS_USERSPACE and CONFIG_HAS_NEWLIB_LIBC_NANO
slow: true
tags:
- clib
- newlib
- userspace
min_ram: 192
timeout: 120

View file

@ -1,3 +1,7 @@
tests:
libraries.p4wq:
tags: p4wq
tags:
- kernel
integration_platforms:
- qemu_x86
- native_posix

View file

@ -1,3 +1,6 @@
common:
tags:
- libc
tests:
libraries.libc.sprintf:
extra_args: CONF_FILE=prj.conf
@ -5,31 +8,34 @@ tests:
integration_platforms:
- qemu_x86
arch_exclude: posix
tags: libc
ignore_faults: true
libraries.libc.sprintf_new:
extra_args: CONF_FILE=prj_new.conf
arch_exclude: posix
tags: libc
integration_platforms:
- qemu_x86
libraries.libc.picolibc.sprintf:
extra_args: CONF_FILE=prj_picolibc.conf
tags:
- libc
- picolibc
ignore_faults: true
filter: CONFIG_PICOLIBC_SUPPORTED
integration_platforms:
- qemu_x86
libraries.libc.picolibc.sprintf_new:
extra_args: CONF_FILE=prj_picolibc_new.conf
tags:
- libc
- picolibc
filter: CONFIG_PICOLIBC_SUPPORTED
integration_platforms:
- qemu_x86
libraries.libc.picolibc.sprintf_inexact:
extra_args: CONF_FILE=prj_picolibc_new.conf
extra_configs:
- CONFIG_PICOLIBC_USE_MODULE=y
- CONFIG_PICOLIBC_IO_FLOAT_EXACT=n
tags:
- libc
- picolibc
filter: CONFIG_PICOLIBC_SUPPORTED
integration_platforms:
- qemu_x86

View file

@ -1,4 +1,7 @@
common:
integration_platforms:
- native_posix
- qemu_x86
harness: console
harness_config:
type: multi_line

View file

@ -5,6 +5,8 @@ tests:
ignore_qemu_crash: true
filter: CONFIG_ARCH_SUPPORTS_COREDUMP
platform_exclude: acrn_ehl_crb
integration_platforms:
- qemu_x86
harness: console
harness_config:
type: multi_line

View file

@ -2,6 +2,8 @@ common:
tags: coredump
ignore_faults: true
ignore_qemu_crash: true
integration_platforms:
- qemu_x86
tests:
coredump.backends.logging:
filter: CONFIG_ARCH_SUPPORTS_COREDUMP

View file

@ -11,3 +11,5 @@ tests:
build_only: true
tags: modbus
filter: CONFIG_UART_CONSOLE and CONFIG_UART_INTERRUPT_DRIVEN
integration_platforms:
- frdm_k64f

View file

@ -1,3 +1,5 @@
tests:
pm.device_runtime.api:
tags: pm
integration_platforms:
- native_posix

View file

@ -3,3 +3,5 @@ tests:
tags: cmsis_rtos
min_ram: 32
min_flash: 34
integration_platforms:
- native_posix

View file

@ -7,11 +7,15 @@ tests:
rtio.api:
filter: not CONFIG_ARCH_HAS_USERSPACE
tags: rtio
integration_platforms:
- native_posix
rtio.api.submit_sem:
filter: not CONFIG_ARCH_HAS_USERSPACE
tags: rtio
extra_configs:
- CONFIG_RTIO_SUBMIT_SEM=y
integration_platforms:
- native_posix
rtio.api.userspace:
filter: CONFIG_ARCH_HAS_USERSPACE
extra_configs:
@ -19,6 +23,8 @@ tests:
tags:
- rtio
- userspace
integration_platforms:
- qemu_x86
rtio.api.userspace.submit_sem:
filter: CONFIG_ARCH_HAS_USERSPACE
extra_configs:
@ -27,3 +33,5 @@ tests:
tags:
- rtio
- userspace
integration_platforms:
- qemu_x86

View file

@ -2,3 +2,5 @@ tests:
message_bus.zbus.dyn_channel.static_and_dynamic_channels:
platform_exclude: fvp_base_revc_2xaemv8a_smp_ns
tags: zbus
integration_platforms:
- native_posix

View file

@ -1,3 +1,5 @@
tests:
message_bus.zbus.runtime_obs_reg.add_and_remove_observers:
tags: zbus
integration_platforms:
- native_posix

View file

@ -2,3 +2,5 @@ tests:
message_bus.zbus.hard_and_readonly_channels:
platform_exclude: fvp_base_revc_2xaemv8a_smp_ns
tags: zbus
integration_platforms:
- native_posix

View file

@ -2,3 +2,5 @@ tests:
message_bus.zbus.user_data.channel_user_data:
platform_exclude: fvp_base_revc_2xaemv8a_smp_ns
tags: zbus
integration_platforms:
- native_posix