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 @@ 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
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"