zephyr/tests/lib/cbprintf_package/testcase.yaml
Anas Nashif a6f924db7f twister: add support for platform_type filter
Instead of relying on runtime filter to limit scope to emulation
platforms, use the type attribute for each platform and do the filtering
very early on. This will speed things up for tests where we only run on
emulation platforms.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-05-14 14:49:59 -04:00

109 lines
3.0 KiB
YAML

common:
platform_type:
- qemu
- native
tags: cbprintf
# FIXME: qemu_arc_hs6x excluded, see #38041
platform_exclude: qemu_arc_hs6x
integration_platforms:
- native_posix
min_flash: 48
tests:
libraries.cbprintf_package:
extra_configs:
- CONFIG_CBPRINTF_COMPLETE=y
libraries.cbprintf_package_no_generic:
extra_configs:
- CONFIG_CBPRINTF_COMPLETE=y
- CONFIG_COMPILER_OPT="-DZ_C_GENERIC=0"
libraries.cbprintf_package_fp:
filter: CONFIG_CPU_HAS_FPU
extra_configs:
- CONFIG_CBPRINTF_FP_SUPPORT=y
- CONFIG_CBPRINTF_COMPLETE=y
- CONFIG_FPU=y
libraries.cbprintf_package_fp_align_offset:
filter: CONFIG_CPU_HAS_FPU
extra_configs:
- CONFIG_CBPRINTF_FP_SUPPORT=y
- CONFIG_CBPRINTF_COMPLETE=y
- CONFIG_COMPILER_OPT="-DCBPRINTF_PACKAGE_ALIGN_OFFSET=1"
- CONFIG_FPU=y
libraries.cbprintf_package_long_double:
filter: CONFIG_CPU_HAS_FPU
extra_configs:
- CONFIG_CBPRINTF_FP_SUPPORT=y
- CONFIG_CBPRINTF_COMPLETE=y
- CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE=y
- CONFIG_FPU=y
libraries.cbprintf_package_long_double_align_offset:
filter: CONFIG_CPU_HAS_FPU
extra_configs:
- CONFIG_CBPRINTF_FP_SUPPORT=y
- CONFIG_CBPRINTF_COMPLETE=y
- CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE=y
- CONFIG_COMPILER_OPT="-DCBPRINTF_PACKAGE_ALIGN_OFFSET=1"
- CONFIG_FPU=y
libraries.cbprintf_package_nano:
extra_configs:
- CONFIG_CBPRINTF_NANO=y
# Same test but with test compiled as C++
libraries.cbprintf_package_cpp:
extra_configs:
- CONFIG_CPLUSPLUS=y
- CONFIG_CBPRINTF_COMPLETE=y
libraries.cbprintf_package_no_generic_cpp:
extra_configs:
- CONFIG_CPLUSPLUS=y
- CONFIG_CBPRINTF_COMPLETE=y
- CONFIG_COMPILER_OPT="-DZ_C_GENERIC=0"
libraries.cbprintf_package_fp_cpp:
filter: CONFIG_CPU_HAS_FPU
extra_configs:
- CONFIG_CPLUSPLUS=y
- CONFIG_CBPRINTF_FP_SUPPORT=y
- CONFIG_CBPRINTF_COMPLETE=y
- CONFIG_FPU=y
libraries.cbprintf_package_fp_align_offset_cpp:
filter: CONFIG_CPU_HAS_FPU
extra_configs:
- CONFIG_CPLUSPLUS=y
- CONFIG_CBPRINTF_FP_SUPPORT=y
- CONFIG_CBPRINTF_COMPLETE=y
- CONFIG_COMPILER_OPT="-DCBPRINTF_PACKAGE_ALIGN_OFFSET=1"
- CONFIG_FPU=y
libraries.cbprintf_package_long_double_cpp:
filter: CONFIG_CPU_HAS_FPU
extra_configs:
- CONFIG_CPLUSPLUS=y
- CONFIG_CBPRINTF_FP_SUPPORT=y
- CONFIG_CBPRINTF_COMPLETE=y
- CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE=y
- CONFIG_FPU=y
libraries.cbprintf_package_long_double_align_offset_cpp:
filter: CONFIG_CPU_HAS_FPU
extra_configs:
- CONFIG_CPLUSPLUS=y
- CONFIG_CBPRINTF_FP_SUPPORT=y
- CONFIG_CBPRINTF_COMPLETE=y
- CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE=y
- CONFIG_COMPILER_OPT="-DCBPRINTF_PACKAGE_ALIGN_OFFSET=1"
- CONFIG_FPU=y
libraries.cbprintf_package_nano_cpp:
extra_configs:
- CONFIG_CPLUSPLUS=y
- CONFIG_CBPRINTF_NANO=y