Skip to content

Commit

Permalink
samples, tests: remove usage of space-separated lists
Browse files Browse the repository at this point in the history
Convert them to native YAML lists. Support for space-separated
lists was deprecated in Twister a long time ago.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull authored and nashif committed Dec 4, 2024
1 parent 71544cd commit d4a67e3
Show file tree
Hide file tree
Showing 67 changed files with 324 additions and 154 deletions.
4 changes: 3 additions & 1 deletion samples/bluetooth/hci_usb_h4/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ tests:
- usb
- bluetooth
# FIXME: exclude due to build error
platform_exclude: 96b_carbon/stm32f401xe stm32l562e_dk
platform_exclude:
- 96b_carbon/stm32f401xe
- stm32l562e_dk
4 changes: 3 additions & 1 deletion samples/boards/st/i2c_timing/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ tests:
- drivers
- i2c
filter: dt_compat_enabled("st,stm32-i2c-v2")
platform_allow: nucleo_l476rg nucleo_wb55rg
platform_allow:
- nucleo_l476rg
- nucleo_wb55rg
harness: console
harness_config:
type: one_line
Expand Down
4 changes: 3 additions & 1 deletion samples/boards/st/mco/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ sample:
name: STM32 microcontroller clock output (MCO) example
tests:
sample.board.stm32.mco:
platform_allow: nucleo_u5a5zj_q stm32f746g_disco
platform_allow:
- nucleo_u5a5zj_q
- stm32f746g_disco
tags: board
4 changes: 3 additions & 1 deletion samples/drivers/ethernet/eth_ivshmem/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ sample:
tests:
sample.drivers.ethernet.eth_ivshmem:
platform_allow: qemu_cortex_a53
tags: drivers ethernet
tags:
- drivers
- ethernet
build_only: true
25 changes: 12 additions & 13 deletions samples/drivers/mbox/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ tests:
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
mbox_SNIPPET=nordic-ppr
mbox_EXTRA_DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_cpuppr.overlay"
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpuppr.conf
- mbox_SNIPPET=nordic-ppr
- mbox_EXTRA_DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_cpuppr.overlay"
- SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpuppr.conf
sysbuild: true
harness: console
harness_config:
Expand All @@ -47,9 +47,9 @@ tests:
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
mbox_SNIPPET=nordic-flpr
mbox_EXTRA_DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_cpuflpr.overlay"
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpuflpr.conf
- mbox_SNIPPET=nordic-flpr
- mbox_EXTRA_DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_cpuflpr.overlay"
- SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpuflpr.conf
sysbuild: true
harness: console
harness_config:
Expand Down Expand Up @@ -89,8 +89,7 @@ tests:
- nrf54l15dk/nrf54l15/cpuapp
integration_platforms:
- nrf54l15dk/nrf54l15/cpuapp
extra_args:
mbox_SNIPPET=nordic-flpr
extra_args: mbox_SNIPPET=nordic-flpr
sysbuild: true
harness: console
harness_config:
Expand All @@ -106,9 +105,9 @@ tests:
integration_platforms:
- nrf54l15dk/nrf54l15/cpuapp
extra_args:
mbox_SNIPPET=nordic-flpr
mbox_CONFIG_MULTITHREADING=n
remote_CONFIG_MULTITHREADING=n
- mbox_SNIPPET=nordic-flpr
- mbox_CONFIG_MULTITHREADING=n
- remote_CONFIG_MULTITHREADING=n
sysbuild: true
harness: console
harness_config:
Expand All @@ -124,8 +123,8 @@ tests:
integration_platforms:
- nrf54l15dk/nrf54l15/cpuapp
extra_args:
mbox_SNIPPET=nordic-flpr
remote_CONFIG_MULTITHREADING=n
- mbox_SNIPPET=nordic-flpr
- remote_CONFIG_MULTITHREADING=n
sysbuild: true
harness: console
harness_config:
Expand Down
4 changes: 3 additions & 1 deletion samples/drivers/mspi/mspi_async/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ tests:
tags:
- mspi
filter: dt_compat_enabled("mspi-aps6404l")
platform_exclude: hifive_unmatched/fu740/s7 hifive_unmatched/fu740/u74
platform_exclude:
- hifive_unmatched/fu740/s7
- hifive_unmatched/fu740/u74
harness: console
harness_config:
type: multi_line
Expand Down
4 changes: 3 additions & 1 deletion samples/drivers/mspi/mspi_flash/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ tests:
- mspi
- flash
filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("mspi-atxp032")
platform_exclude: hifive_unmatched/fu740/s7 hifive_unmatched/fu740/u74
platform_exclude:
- hifive_unmatched/fu740/s7
- hifive_unmatched/fu740/u74
harness: console
harness_config:
type: multi_line
Expand Down
4 changes: 3 additions & 1 deletion samples/drivers/spi_flash/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ tests:
filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("st,stm32-qspi-nor")
or dt_compat_enabled("st,stm32-ospi-nor") or dt_compat_enabled("st,stm32-xspi-nor")
or (dt_compat_enabled("nordic,qspi-nor") and CONFIG_NORDIC_QSPI_NOR)
platform_exclude: hifive_unmatched/fu740/s7 hifive_unmatched/fu740/u74
platform_exclude:
- hifive_unmatched/fu740/s7
- hifive_unmatched/fu740/u74
harness: console
harness_config:
type: multi_line
Expand Down
4 changes: 3 additions & 1 deletion samples/kernel/bootargs/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ sample:
tests:
sample.kernel.bootargs.multiboot:
extra_args: EXTRA_CONF_FILE=prj_multiboot.conf
platform_allow: qemu_x86 qemu_x86_64
platform_allow:
- qemu_x86
- qemu_x86_64
harness: console
harness_config:
type: one_line
Expand Down
4 changes: 2 additions & 2 deletions samples/modules/canopennode/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ tests:
integration_platforms:
- frdm_k64f
extra_args:
canopennode_CONF_FILE=prj_img_mgmt.conf
SB_CONFIG_BOOTLOADER_MCUBOOT=y

- canopennode_CONF_FILE=prj_img_mgmt.conf
- SB_CONFIG_BOOTLOADER_MCUBOOT=y
sample.modules.canopennode.no_storage:
extra_args: CONF_FILE=prj_no_storage.conf
8 changes: 6 additions & 2 deletions samples/net/cellular_modem/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ sample:
description: Sample for cellular modem
name: Sample for cellular modem using native networking
common:
tags: cellular modem
tags:
- cellular
- modem
tests:
sample.net.cellular_modem:
tags: cellular modem
tags:
- cellular
- modem
filter: dt_alias_exists("modem")
platform_allow:
- b_u585i_iot02a
Expand Down
9 changes: 7 additions & 2 deletions samples/net/cloud/aws_iot_mqtt/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ sample:
description: MQTT sample app to AWS IoT Core
name: aws_iot_mqtt
common:
tags: net mqtt cloud
tags:
- net
- mqtt
- cloud
harness: net
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
extra_args: USE_DUMMY_CREDS=1
tests:
sample.net.cloud.aws_iot_mqtt:
depends_on: netif
platform_allow: qemu_x86 nucleo_f429zi
platform_allow:
- qemu_x86
- nucleo_f429zi
integration_platforms:
- qemu_x86
10 changes: 7 additions & 3 deletions samples/net/wpan_serial/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ sample:
common:
depends_on: usb_device
harness: net
tags: usb ieee802154
tags:
- usb
- ieee802154
platform_exclude: pinnacle_100_dvk
tests:
sample.net.wpan.serial:
filter: dt_chosen_enabled("zephyr,ieee802154")
platform_exclude: thingy53/nrf5340/cpuapp/ns raytac_mdbt53_db_40/nrf5340/cpuapp/ns
raytac_mdbt53_db_40/nrf5340/cpuapp
platform_exclude:
- thingy53/nrf5340/cpuapp/ns
- raytac_mdbt53_db_40/nrf5340/cpuapp/ns
- raytac_mdbt53_db_40/nrf5340/cpuapp
sample.net.wpan_serial.frdm_cr20a:
extra_args: SHIELD=frdm_cr20a
platform_allow: frdm_k64f
28 changes: 20 additions & 8 deletions samples/net/zperf/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,29 @@ tests:
- native_sim/native/64
sample.net.zperf.device_next_ecm:
harness: net
extra_args: EXTRA_CONF_FILE="overlay-usbd_next.conf"
DTC_OVERLAY_FILE="usbd_next_ecm.overlay"
platform_allow: nrf52840dk/nrf52840 frdm_k64f
tags: usb net zperf
extra_args:
- EXTRA_CONF_FILE="overlay-usbd_next.conf"
- DTC_OVERLAY_FILE="usbd_next_ecm.overlay"
platform_allow:
- nrf52840dk/nrf52840
- frdm_k64f
tags:
- usb
- net
- zperf
depends_on: usb_device
sample.net.zperf.device_next_ncm:
harness: net
extra_args: EXTRA_CONF_FILE="overlay-usbd_next.conf"
DTC_OVERLAY_FILE="usbd_next_ncm.overlay"
platform_allow: nrf52840dk/nrf52840 frdm_k64f
tags: usb net zperf
extra_args:
- EXTRA_CONF_FILE="overlay-usbd_next.conf"
- DTC_OVERLAY_FILE="usbd_next_ncm.overlay"
platform_allow:
- nrf52840dk/nrf52840
- frdm_k64f
tags:
- usb
- net
- zperf
depends_on: usb_device
sample.net.zperf.netusb_eem:
harness: net
Expand Down
4 changes: 3 additions & 1 deletion samples/posix/env/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ sample:
description: posix env sample
name: posix env
common:
tags: posix env
tags:
- posix
- env
platform_exclude:
- native_posix
- native_posix/native/64
Expand Down
10 changes: 8 additions & 2 deletions samples/sensor/amg88xx/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ sample:
tests:
sample.sensor.amg88xx.amg88xx_grid_eye_eval_shield:
build_only: true
depends_on: arduino_i2c arduino_gpio
platform_allow: pan1780_evb pan1770_evb pan1781_evb pan1782_evb
depends_on:
- arduino_i2c
- arduino_gpio
platform_allow:
- pan1780_evb
- pan1770_evb
- pan1781_evb
- pan1782_evb
integration_platforms:
- pan1780_evb
extra_args: SHIELD=amg88xx_grid_eye_eval_shield
Expand Down
4 changes: 3 additions & 1 deletion samples/sensor/co2_polling/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ tests:
harness: sensor
tags: sensors
filter: dt_alias_exists("co2")
depends_on: serial uart_interrupt_driven
depends_on:
- serial
- uart_interrupt_driven
4 changes: 3 additions & 1 deletion samples/sensor/veaa_x_3/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ tests:
harness: sensor
tags: sensors
filter: dt_compat_enabled("festo,veaa-x-3")
depends_on: adc dac
depends_on:
- adc
- dac
4 changes: 3 additions & 1 deletion samples/shields/x_nucleo_iks4a1/sensorhub1/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ tests:
sample.shields.x_nucleo_iks4a1.sensorhub1:
harness: shield
tags: shield
depends_on: arduino_i2c arduino_gpio
depends_on:
- arduino_i2c
- arduino_gpio
platform_exclude:
- disco_l475_iot1
- lpcxpresso55s16
Expand Down
4 changes: 3 additions & 1 deletion samples/shields/x_nucleo_iks4a1/sensorhub2/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ tests:
sample.shields.x_nucleo_iks4a1.sensorhub2:
harness: shield
tags: shield
depends_on: arduino_i2c arduino_gpio
depends_on:
- arduino_i2c
- arduino_gpio
platform_exclude:
- disco_l475_iot1
- lpcxpresso55s16
Expand Down
4 changes: 3 additions & 1 deletion samples/shields/x_nucleo_iks4a1/standard/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ tests:
sample.shields.x_nucleo_iks4a1.standard:
harness: shield
tags: shield
depends_on: arduino_i2c arduino_gpio
depends_on:
- arduino_i2c
- arduino_gpio
platform_exclude:
- disco_l475_iot1
- lpcxpresso55s16
Expand Down
4 changes: 3 additions & 1 deletion samples/subsys/dap/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ sample:
tests:
sample.dap.bulk:
build_only: true
depends_on: arduino_gpio usb_device
depends_on:
- arduino_gpio
- usb_device
platform_allow:
- nrf52840dk/nrf52840
- frdm_k64f
Expand Down
4 changes: 3 additions & 1 deletion samples/subsys/fs/fs_sample/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ tests:
simulation_exclude:
- renode
extra_args: CONF_FILE="prj_ext.conf"
platform_allow: hifive_unmatched/fu740/s7 bl5340_dvk/nrf5340/cpuapp
platform_allow:
- hifive_unmatched/fu740/s7
- bl5340_dvk/nrf5340/cpuapp
sample.filesystem.fat_fs.stm32h747i_disco_m7_sdmmc:
build_only: true
platform_allow: stm32h747i_disco/stm32h747xx/m7
Loading

0 comments on commit d4a67e3

Please sign in to comment.