samples: add module requirement into samples

Do not build those samples if the needed modules are not available in
the workspace.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-04-18 22:31:18 -04:00
commit 2d97bdd85d
16 changed files with 48 additions and 18 deletions

View file

@ -2,6 +2,8 @@ sample:
name: CANopenNode sample
common:
tags: can canopen
modules:
- canopennode
depends_on: can
filter: dt_chosen_enabled("zephyr,canbus")
harness: console

View file

@ -5,6 +5,8 @@ sample:
tests:
sample.modules.chre:
tags: introduction
modules:
- chre
harness: console
harness_config:
type: multi_line

View file

@ -3,6 +3,8 @@ sample:
buffer
name: Simple nanopb
common:
modules:
- nanopb
harness: console
harness_config:
type: one_line

View file

@ -3,6 +3,8 @@ sample:
name: hello world tensorflow
common:
tags: tensorflow
modules:
- tflite-micro
harness: console
harness_config:
type: multi_line

View file

@ -6,3 +6,5 @@ tests:
platform_allow: litex_vexriscv
build_only: true
tags: tensorflow
modules:
- tflite-micro

View file

@ -3,6 +3,8 @@ sample:
name: http_server
tests:
sample.net.civetweb.http_server:
modules:
- civetweb
harness: net
arch_exclude: posix
depends_on: netif

View file

@ -3,4 +3,6 @@ sample:
name: websocket_server
tests:
sample.net.civetweb.websocket_server:
modules:
- civetweb
platform_allow: nucleo_h745zi_q_m7

View file

@ -3,6 +3,8 @@ sample:
name: sof
common:
tags: audio
modules:
- sof
tests:
sample.audio.sof:
tags: sof

View file

@ -2,6 +2,8 @@ sample:
name: Fat filesystem sample
common:
tags: filesystem
modules:
- fatfs
tests:
sample.filesystem.fat_fs:
depends_on: sdhc

View file

@ -1,10 +1,13 @@
sample:
name: syst sample
common:
tags: logging mipi-sys-t
modules:
- mipi-sys-t
tests:
sample.logger.syst.v1.deferred:
extra_args: OVERLAY_CONFIG=overlay_deferred.conf
platform_allow: mps2_an385 qemu_x86 qemu_x86_64 sam_e70_xplained qemu_cortex_a53
tags: logging
harness: console
harness_config:
type: one_line
@ -14,7 +17,6 @@ tests:
- CONFIG_LOG1=y
sample.logger.syst.v1.immediate:
platform_allow: mps2_an385 qemu_x86 qemu_x86_64 sam_e70_xplained qemu_cortex_a53
tags: logging
harness: console
harness_config:
type: one_line
@ -25,7 +27,6 @@ tests:
sample.logger.syst.v2.deferred:
extra_args: OVERLAY_CONFIG=overlay_deferred.conf
platform_allow: mps2_an385 qemu_x86 qemu_x86_64 sam_e70_xplained qemu_cortex_a53
tags: logging
harness: console
harness_config:
type: one_line
@ -33,7 +34,6 @@ tests:
- "SYS-T RAW DATA: "
sample.logger.syst.v2.immediate:
platform_allow: mps2_an385 qemu_x86 qemu_x86_64 sam_e70_xplained qemu_cortex_a53
tags: logging
harness: console
harness_config:
type: one_line
@ -42,7 +42,6 @@ tests:
sample.logger.syst.catalog.v2.deferred:
extra_args: OVERLAY_CONFIG=overlay_deferred.conf
platform_allow: mps2_an385 qemu_x86
tags: logging
harness: console
harness_config:
type: one_line
@ -52,7 +51,6 @@ tests:
- CONFIG_LOG_MIPI_SYST_USE_CATALOG=y
sample.logger.syst.catalog.v2.immediate:
platform_allow: mps2_an385 qemu_x86
tags: logging
harness: console
harness_config:
type: one_line

View file

@ -28,6 +28,8 @@ tests:
- "The device is put in USB mass storage mode."
sample.usb.mass_flash_fatfs:
min_ram: 32
modules:
- fatfs
depends_on: usb_device
filter: dt_compat_enabled("nordic,qspi-nor")
extra_configs:
@ -41,6 +43,8 @@ tests:
- "The device is put in USB mass storage mode."
sample.usb.mass_sdhc_fatfs:
min_ram: 32
modules:
- fatfs
depends_on: usb_device sdhc
extra_configs:
- CONFIG_LOG_DEFAULT_LEVEL=3
@ -53,6 +57,8 @@ tests:
regex:
- "The device is put in USB mass storage mode."
sample.usb.mass_flash_littlefs:
modules:
- littlefs
min_ram: 32
depends_on: usb_device
filter: dt_compat_enabled("nordic,qspi-nor")

View file

@ -2,6 +2,8 @@ common:
arch_exclude: nios2 posix
min_ram: 128
tags: posix filesystem
modules:
- fatfs
tests:
portability.posix.fs:
extra_configs:

View file

@ -1,8 +1,10 @@
common:
tags: filesystem
modules:
- fatfs
tests:
filesystem.fat.api:
platform_allow: native_posix
tags: filesystem
filesystem.fat.api.lfn:
extra_args: CONF_FILE="prj_lfn.conf"
platform_allow: native_posix
tags: filesystem

View file

@ -1,7 +1,8 @@
common:
tags: filesystem
platform_allow: nrf52840dk_nrf52840 native_posix native_posix_64 mimxrt1060_evk
modules:
- littlefs
tests:
filesystem.littlefs.default:
timeout: 60

View file

@ -1,8 +1,11 @@
common:
tags: littlefs fatfs filesystem
modules:
- fatfs
- littlefs
tests:
filesystem.multifs:
platform_allow: native_posix qemu_x86
tags: littlefs fatfs filesystem qemu_x86
filesystem.fs_shell:
extra_args: CONF_FILE="prj_fs_shell.conf"
platform_allow: native_posix qemu_x86
tags: littlefs fatfs filesystem

View file

@ -1,16 +1,16 @@
common:
modules:
- littlefs
tags: logging backend filesystem fs
tests:
logging.log_backend_fs.automounted:
platform_allow: native_posix native_posix_64 nrf52840dk_nrf52840
tags: logging backend filesystem fs
logging.log_backend_fs.manualmounted.native_posix:
platform_allow: native_posix
tags: logging backend filesystem fs
extra_args: DTC_OVERLAY_FILE="./boards/native_posix.overlay;./boards/automount.overlay"
logging.log_backend_fs.manualmounted.native_posix_64:
platform_allow: native_posix_64
tags: logging backend filesystem fs
extra_args: DTC_OVERLAY_FILE="./boards/native_posix_64.overlay;./boards/automount.overlay"
logging.log_backend_fs.manualmounted.nrf5840dk:
platform_allow: nrf52840dk_nrf52840
tags: logging backend filesystem fs
extra_args: DTC_OVERLAY_FILE="./boards/nrf52840dk_nrf52840.overlay;./boards/automount.overlay"