zephyr/tests/kernel/common/testcase.yaml
Keith Packard b0585be1c4 tests/kernel/common: Add an explicit test using the minimal C library
When the default C library is switched to picolibc, we need some tests to
make sure things still build with the minimal C library.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-05-27 06:23:31 -04:00

45 lines
1.3 KiB
YAML

common:
tags:
- base
- kernel
- userspace
min_flash: 33
timeout: 120
tests:
kernel.common:
build_on_all: true
kernel.common.tls:
# ARCMWDT can't handle THREAD_LOCAL_STORAGE with USERSPACE, see #52570 for details
filter: >
CONFIG_ARCH_HAS_THREAD_LOCAL_STORAGE and CONFIG_TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
and not (CONFIG_TOOLCHAIN_ARCMWDT_SUPPORTS_THREAD_LOCAL_STORAGE and CONFIG_USERSPACE)
extra_configs:
- CONFIG_THREAD_LOCAL_STORAGE=y
kernel.common.misra:
# Some configurations are known-incompliant and won't build
filter: not ((CONFIG_I2C or CONFIG_SPI) and CONFIG_USERSPACE)
integration_platforms:
- native_posix
extra_configs:
- CONFIG_MISRA_SANE=y
kernel.common.minimallibc:
filter: CONFIG_MINIMAL_LIBC_SUPPORTED
tags: libc
extra_configs:
- CONFIG_MINIMAL_LIBC=y
kernel.common.nano32:
filter: not CONFIG_KERNEL_COHERENCE
extra_configs:
- CONFIG_CBPRINTF_NANO=y
- CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
kernel.common.nano64:
filter: not CONFIG_KERNEL_COHERENCE
extra_configs:
- CONFIG_CBPRINTF_NANO=y
- CONFIG_CBPRINTF_FULL_INTEGRAL=y
kernel.common.picolibc:
filter: CONFIG_PICOLIBC_SUPPORTED
tags: picolibc
extra_configs:
- CONFIG_PICOLIBC=y