samples/logging/syst: Use FULL_LIBC_SUPPORTED helper Kconfig symbol
This symbol detects whether there is any available full libc for a particular target, allowing tests to filter on this condition. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
214a3c5fa8
commit
973dc2a7a4
1 changed files with 21 additions and 11 deletions
|
@ -20,13 +20,15 @@ tests:
|
|||
regex:
|
||||
- "SYS-T RAW DATA: "
|
||||
- "SYST Sample Execution Completed"
|
||||
# "TOOLCHAIN_HAS_NEWLIB == 1" filter was applied
|
||||
# "CONFIG_FULL_LIBC_SUPPORTED" filter was applied
|
||||
# because of following chain of dependencies:
|
||||
# LOG_MIPI_SYST_ENABLE=y --> CONFIG_MIPI_SYST_LIB --> \
|
||||
# --> REQUIRES_FULL_LIBC --> NEWLIB_LIBC.
|
||||
# --> REQUIRES_FULL_LIBC.
|
||||
#
|
||||
# Not all compillers announced in Zephyr support NewLib.
|
||||
filter: (TOOLCHAIN_HAS_NEWLIB == 1) or CONFIG_PICOLIBC_SUPPORTED
|
||||
# Not all compillers announced in Zephyr support a full C library
|
||||
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||
extra_configs:
|
||||
- CONFIG_REQUIRES_FULL_LIBC=y
|
||||
sample.logger.syst.immediate:
|
||||
toolchain_exclude: xcc
|
||||
extra_args: OVERLAY_CONFIG=overlay_immediate.conf
|
||||
|
@ -41,7 +43,9 @@ tests:
|
|||
regex:
|
||||
- "SYS-T RAW DATA: "
|
||||
- "SYST Sample Execution Completed"
|
||||
filter: (TOOLCHAIN_HAS_NEWLIB == 1) or CONFIG_PICOLIBC_SUPPORTED
|
||||
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||
extra_configs:
|
||||
- CONFIG_REQUIRES_FULL_LIBC=y
|
||||
sample.logger.syst.catalog.deferred:
|
||||
toolchain_exclude: xcc
|
||||
extra_args: OVERLAY_CONFIG=overlay_deferred.conf
|
||||
|
@ -57,7 +61,8 @@ tests:
|
|||
- "SYS-T RAW DATA: "
|
||||
extra_configs:
|
||||
- CONFIG_LOG_MIPI_SYST_USE_CATALOG=y
|
||||
filter: (TOOLCHAIN_HAS_NEWLIB == 1) or CONFIG_PICOLIBC_SUPPORTED
|
||||
- CONFIG_REQUIRES_FULL_LIBC=y
|
||||
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||
sample.logger.syst.catalog.immediate:
|
||||
toolchain_exclude: xcc
|
||||
integration_platforms:
|
||||
|
@ -72,7 +77,8 @@ tests:
|
|||
- "SYS-T RAW DATA: "
|
||||
extra_configs:
|
||||
- CONFIG_LOG_MIPI_SYST_USE_CATALOG=y
|
||||
filter: (TOOLCHAIN_HAS_NEWLIB == 1) or CONFIG_PICOLIBC_SUPPORTED
|
||||
- CONFIG_REQUIRES_FULL_LIBC=y
|
||||
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||
sample.logger.syst.deferred_cpp:
|
||||
toolchain_exclude: xcc
|
||||
extra_args: OVERLAY_CONFIG=overlay_deferred.conf
|
||||
|
@ -89,7 +95,8 @@ tests:
|
|||
- "SYS-T RAW DATA: "
|
||||
extra_configs:
|
||||
- CONFIG_CPP=y
|
||||
filter: (TOOLCHAIN_HAS_NEWLIB == 1) or CONFIG_PICOLIBC_SUPPORTED
|
||||
- CONFIG_REQUIRES_FULL_LIBC=y
|
||||
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||
sample.logger.syst.immediate_cpp:
|
||||
toolchain_exclude: xcc
|
||||
integration_platforms:
|
||||
|
@ -105,7 +112,8 @@ tests:
|
|||
- "SYS-T RAW DATA: "
|
||||
extra_configs:
|
||||
- CONFIG_CPP=y
|
||||
filter: (TOOLCHAIN_HAS_NEWLIB == 1) or CONFIG_PICOLIBC_SUPPORTED
|
||||
- CONFIG_REQUIRES_FULL_LIBC=y
|
||||
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||
sample.logger.syst.catalog.deferred_cpp:
|
||||
toolchain_exclude: xcc
|
||||
extra_args: OVERLAY_CONFIG=overlay_deferred.conf
|
||||
|
@ -122,7 +130,8 @@ tests:
|
|||
extra_configs:
|
||||
- CONFIG_LOG_MIPI_SYST_USE_CATALOG=y
|
||||
- CONFIG_CPP=y
|
||||
filter: (TOOLCHAIN_HAS_NEWLIB == 1) or CONFIG_PICOLIBC_SUPPORTED
|
||||
- CONFIG_REQUIRES_FULL_LIBC=y
|
||||
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||
sample.logger.syst.catalog.immediate_cpp:
|
||||
toolchain_exclude: xcc
|
||||
integration_platforms:
|
||||
|
@ -138,4 +147,5 @@ tests:
|
|||
extra_configs:
|
||||
- CONFIG_LOG_MIPI_SYST_USE_CATALOG=y
|
||||
- CONFIG_CPP=y
|
||||
filter: (TOOLCHAIN_HAS_NEWLIB == 1) or CONFIG_PICOLIBC_SUPPORTED
|
||||
- CONFIG_REQUIRES_FULL_LIBC=y
|
||||
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue