Skip to content

Commit

Permalink
samples, tests: convert string-based twister lists to YAML lists
Browse files Browse the repository at this point in the history
Twister now supports using YAML lists for all fields that were written
as space-separated lists. Used twister_to_list.py script. Some artifacts
on string length are due to how ruamel dumps content.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull authored and carlescufi committed May 10, 2023
1 parent 6d56988 commit 93b63df
Show file tree
Hide file tree
Showing 761 changed files with 5,601 additions and 1,979 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ sample:
name: code relocation nocopy
tests:
sample.application_development.code_relocation_nocopy:
platform_allow: qemu_cortex_m3 nrf5340dk_nrf5340_cpuapp
platform_allow:
- qemu_cortex_m3
- nrf5340dk_nrf5340_cpuapp
integration_platforms:
- qemu_cortex_m3
tags: linker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ sample:
tests:
sample.app_dev.out_of_tree:
tags: out_of_tree
platform_allow: nrf52840dk_nrf52840 nrf52dk_nrf52832
platform_allow:
- nrf52840dk_nrf52840
- nrf52dk_nrf52832
integration_platforms:
- nrf52840dk_nrf52840
harness: console
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ tests:
sysbuild: true
# Platform allowed is used as twister using sysbuild still lacks proper
# filtering support, see discussion in #49552.
platform_allow: reel_board nrf52840dk_nrf52840
platform_allow:
- reel_board
- nrf52840dk_nrf52840
integration_platforms:
- nrf52840dk_nrf52840
tags: mcuboot
Expand Down
13 changes: 9 additions & 4 deletions samples/arch/smp/pktqueue/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
sample:
description: Processing multiple queues in
a number of threads
description: Processing multiple queues in a number of threads
name: SMP Pktqueue
common:
tags: introduction
Expand All @@ -15,5 +14,11 @@ tests:
sample.smp.pktqueue:
tags: introduction
filter: (CONFIG_MP_MAX_NUM_CPUS > 1)
platform_exclude: esp32 esp_wrover_kit esp32_ethernet_kit
heltec_wifi_lora32_v2 m5stickc_plus odroid_go olimex_esp32_evb
platform_exclude:
- esp32
- esp_wrover_kit
- esp32_ethernet_kit
- heltec_wifi_lora32_v2
- m5stickc_plus
- odroid_go
- olimex_esp32_evb
4 changes: 3 additions & 1 deletion samples/basic/blinky/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ sample:
name: Blinky Sample
tests:
sample.basic.blinky:
tags: LED gpio
tags:
- LED
- gpio
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds")
depends_on: gpio
harness: led
Expand Down
4 changes: 3 additions & 1 deletion samples/basic/blinky_pwm/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ sample:
tests:
sample.basic.blink_led:
filter: dt_alias_exists("pwm-led0") and dt_compat_enabled("pwm-leds")
tags: drivers pwm
tags:
- drivers
- pwm
depends_on: pwm
harness: led
4 changes: 3 additions & 1 deletion samples/basic/button/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ sample:
name: Button Sample
tests:
sample.basic.button:
tags: button gpio
tags:
- button
- gpio
filter: dt_enabled_alias_with_parent_compat("sw0", "gpio-keys")
depends_on: gpio
harness: button
4 changes: 3 additions & 1 deletion samples/basic/custom_dts_binding/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ sample:
name: GPIO with custom devicetree binding
tests:
sample.basic.custom_dts_binding:
tags: gpio devicetree
tags:
- gpio
- devicetree
platform_allow: nucleo_l073rz
integration_platforms:
- nucleo_l073rz
Expand Down
4 changes: 3 additions & 1 deletion samples/basic/fade_led/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ sample:
name: Fade LED
tests:
sample.basic.fade_led:
tags: drivers pwm
tags:
- drivers
- pwm
depends_on: pwm
harness: led
filter: dt_alias_exists("pwm-led0") and dt_compat_enabled("pwm-leds")
40 changes: 35 additions & 5 deletions samples/basic/minimal/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,51 @@ common:
tests:
sample.minimal.mt.arm:
extra_args: CONF_FILE='common.conf;mt.conf;arm.conf'
platform_allow: reel_board frdm_k64f mps2_an385 nrf51dk_nrf51422 nucleo_f429zi disco_l475_iot1
platform_allow:
- reel_board
- frdm_k64f
- mps2_an385
- nrf51dk_nrf51422
- nucleo_f429zi
- disco_l475_iot1
integration_platforms:
- frdm_k64f
sample.minimal.mt-no-preempt.arm:
extra_args: CONF_FILE='common.conf;mt.conf;no-preempt.conf;arm.conf'
platform_allow: reel_board frdm_k64f mps2_an385 nrf51dk_nrf51422 nucleo_f429zi disco_l475_iot1
platform_allow:
- reel_board
- frdm_k64f
- mps2_an385
- nrf51dk_nrf51422
- nucleo_f429zi
- disco_l475_iot1
sample.minimal.mt-no-preempt-no-timers.arm:
extra_args: CONF_FILE='common.conf;mt.conf;no-preempt.conf;no-timers.conf;arm.conf'
platform_allow: reel_board frdm_k64f mps2_an385 nrf51dk_nrf51422 nucleo_f429zi disco_l475_iot1
platform_allow:
- reel_board
- frdm_k64f
- mps2_an385
- nrf51dk_nrf51422
- nucleo_f429zi
- disco_l475_iot1
sample.minimal.no-mt.arm:
extra_args: CONF_FILE='common.conf;no-mt.conf;arm.conf'
platform_allow: reel_board frdm_k64f mps2_an385 nrf51dk_nrf51422 nucleo_f429zi disco_l475_iot1
platform_allow:
- reel_board
- frdm_k64f
- mps2_an385
- nrf51dk_nrf51422
- nucleo_f429zi
- disco_l475_iot1
sample.minimal.no-mt-no-timers.arm:
extra_args: CONF_FILE='common.conf;no-mt.conf;no-timers.conf;arm.conf'
platform_allow: reel_board frdm_k64f mps2_an385 nrf51dk_nrf51422 nucleo_f429zi disco_l475_iot1
platform_allow:
- reel_board
- frdm_k64f
- mps2_an385
- nrf51dk_nrf51422
- nucleo_f429zi
- disco_l475_iot1
sample.minimal.mt.x86:
extra_args: CONF_FILE='common.conf;mt.conf;x86.conf'
platform_allow: qemu_x86
Expand Down
9 changes: 5 additions & 4 deletions samples/basic/rgb_led/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ sample:
name: RGB LED
tests:
sample.basic.rgb_led:
filter: dt_alias_exists("red-pwm-led") and
dt_alias_exists("green-pwm-led") and
dt_alias_exists("blue-pwm-led")
tags: drivers pwm
filter: dt_alias_exists("red-pwm-led") and dt_alias_exists("green-pwm-led") and
dt_alias_exists("blue-pwm-led")
tags:
- drivers
- pwm
depends_on: pwm
harness: led
4 changes: 3 additions & 1 deletion samples/basic/servo_motor/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ sample:
name: Servo Motor using PWM
tests:
sample.basic.servo_motor:
tags: drivers pwm
tags:
- drivers
- pwm
depends_on: pwm
harness: motor
filter: dt_compat_enabled("pwm-servo")
5 changes: 4 additions & 1 deletion samples/basic/sys_heap/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ common:
- ".*allocated 0, free ..., max allocated ..., heap size 256.*"
tests:
sample.basic.sys_heap:
tags: heap statistics dynamic_memory
tags:
- heap
- statistics
- dynamic_memory
8 changes: 5 additions & 3 deletions samples/basic/threads/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
sample:
description: A basic demo to showcase multi-threading
using K_THREAD_DEFINE
description: A basic demo to showcase multi-threading using K_THREAD_DEFINE
name: Basic Thread Demo
tests:
sample.basic.threads:
tags: kernel threads gpio
tags:
- kernel
- threads
- gpio
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and
dt_enabled_alias_with_parent_compat("led1", "gpio-leds")
depends_on: gpio
Expand Down
5 changes: 4 additions & 1 deletion samples/bluetooth/beacon/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ sample:
tests:
sample.bluetooth.beacon:
harness: bluetooth
platform_allow: qemu_cortex_m3 qemu_x86 nrf52dk_nrf52832
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf52dk_nrf52832
tags: bluetooth
integration_platforms:
- qemu_cortex_m3
Expand Down
16 changes: 8 additions & 8 deletions samples/bluetooth/broadcast_audio_sink/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ sample:
tests:
sample.bluetooth.broadcast_audio_sink:
harness: bluetooth
platform_allow: >
qemu_cortex_m3
qemu_x86
nrf5340dk_nrf5340_cpuapp
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf5340dk_nrf5340_cpuapp
integration_platforms:
- qemu_x86
- nrf5340dk_nrf5340_cpuapp
tags: bluetooth
sample.bluetooth.broadcast_audio_sink.bt_ll_sw_split:
harness: bluetooth
platform_allow: >
nrf52_bsim
nrf52833dk_nrf52820
nrf52833dk_nrf52833
platform_allow:
- nrf52_bsim
- nrf52833dk_nrf52820
- nrf52833dk_nrf52833
integration_platforms:
- nrf52_bsim
- nrf52833dk_nrf52833
Expand Down
16 changes: 8 additions & 8 deletions samples/bluetooth/broadcast_audio_source/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ sample:
tests:
sample.bluetooth.broadcast_audio_source:
harness: bluetooth
platform_allow: >
qemu_cortex_m3
qemu_x86
nrf5340dk_nrf5340_cpuapp
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf5340dk_nrf5340_cpuapp
integration_platforms:
- qemu_x86
- nrf5340dk_nrf5340_cpuapp
tags: bluetooth
sample.bluetooth.broadcast_audio_sink.bt_ll_sw_split:
harness: bluetooth
platform_allow: >
nrf52_bsim
nrf52833dk_nrf52820
nrf52833dk_nrf52833
platform_allow:
- nrf52_bsim
- nrf52833dk_nrf52820
- nrf52833dk_nrf52833
integration_platforms:
- nrf52_bsim
- nrf52833dk_nrf52833
Expand Down
6 changes: 5 additions & 1 deletion samples/bluetooth/broadcaster/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ sample:
tests:
sample.bluetooth.broadcaster:
harness: bluetooth
platform_allow: qemu_cortex_m3 qemu_x86 nrf51dk_nrf51422 nrf52dk_nrf52832
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf51dk_nrf51422
- nrf52dk_nrf52832
tags: bluetooth
integration_platforms:
- qemu_cortex_m3
7 changes: 6 additions & 1 deletion samples/bluetooth/broadcaster_multiple/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ sample:
tests:
sample.bluetooth.multiple_broadcast:
harness: bluetooth
platform_allow: qemu_cortex_m3 qemu_x86 nrf51dk_nrf51422 nrf52_bsim nrf52dk_nrf52832
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf51dk_nrf51422
- nrf52_bsim
- nrf52dk_nrf52832
tags: bluetooth
integration_platforms:
- qemu_cortex_m3
4 changes: 3 additions & 1 deletion samples/bluetooth/central/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ sample:
tests:
sample.bluetooth.central:
harness: bluetooth
platform_allow: qemu_cortex_m3 qemu_x86
platform_allow:
- qemu_cortex_m3
- qemu_x86
tags: bluetooth
integration_platforms:
- qemu_cortex_m3
5 changes: 4 additions & 1 deletion samples/bluetooth/central_gatt_write/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ sample:
tests:
sample.bluetooth.central_gatt_write:
harness: bluetooth
platform_allow: qemu_cortex_m3 qemu_x86 nrf52_bsim
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf52_bsim
integration_platforms:
- qemu_cortex_m3
tags: bluetooth
6 changes: 5 additions & 1 deletion samples/bluetooth/central_ht/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ sample:
tests:
sample.bluetooth.central_ht:
harness: bluetooth
platform_allow: qemu_cortex_m3 qemu_x86 nrf51dk_nrf51422 nrf52dk_nrf52832
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf51dk_nrf51422
- nrf52dk_nrf52832
tags: bluetooth
integration_platforms:
- qemu_cortex_m3
5 changes: 4 additions & 1 deletion samples/bluetooth/central_multilink/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ sample:
tests:
sample.bluetooth.central.multilink:
harness: bluetooth
platform_allow: qemu_cortex_m3 qemu_x86 nrf52840dk_nrf52840
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf52840dk_nrf52840
integration_platforms:
- qemu_cortex_m3
tags: bluetooth
5 changes: 4 additions & 1 deletion samples/bluetooth/central_otc/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ sample:
tests:
sample.bluetooth.central_otc:
harness: bluetooth
platform_allow: nrf21540dk_nrf52840 nrf52840dk_nrf52840 nrf52833dk_nrf52833
platform_allow:
- nrf21540dk_nrf52840
- nrf52840dk_nrf52840
- nrf52833dk_nrf52833
tags: bluetooth
integration_platforms:
- nrf21540dk_nrf52840
4 changes: 3 additions & 1 deletion samples/bluetooth/central_past/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ sample:
tests:
sample.bluetooth.central_past:
harness: bluetooth
platform_allow: qemu_cortex_m3 qemu_x86
platform_allow:
- qemu_cortex_m3
- qemu_x86
integration_platforms:
- qemu_cortex_m3
tags: bluetooth
Loading

0 comments on commit 93b63df

Please sign in to comment.