Skip to content

Commit

Permalink
tests/samples: fixed yaml syntax
Browse files Browse the repository at this point in the history
Use a map directory, avoid the list which makes parsing a bit
cumbersome.

Fixes zephyrproject-rtos#5109

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and Anas Nashif committed Dec 11, 2017
1 parent f0e562f commit 23f81ee
Show file tree
Hide file tree
Showing 282 changed files with 1,561 additions and 1,555 deletions.
8 changes: 4 additions & 4 deletions samples/application_development/external_lib/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_x86
tags: appdev
test:
build_only: true
platform_whitelist: qemu_x86
tags: appdev
8 changes: 4 additions & 4 deletions samples/basic/blink_led/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: arduino_101 quark_d2000_crb
test:
build_only: true
platform_whitelist: arduino_101 quark_d2000_crb
nucleo_f103rb nucleo_f401re nucleo_l476rg stm32f4_disco hexiwear_k64
tags: apps
tags: apps
8 changes: 4 additions & 4 deletions samples/basic/blinky/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: arduino_101
tags: samples
test:
build_only: true
platform_whitelist: arduino_101
tags: samples
8 changes: 4 additions & 4 deletions samples/basic/button/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: nucleo_f103rb quark_se_c1000_devboard
tags: samples
test:
build_only: true
platform_whitelist: nucleo_f103rb quark_se_c1000_devboard
tags: samples
8 changes: 4 additions & 4 deletions samples/basic/disco/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: nucleo_f103rb nucleo_f401re
tags: samples
test:
build_only: true
platform_whitelist: nucleo_f103rb nucleo_f401re
tags: samples
8 changes: 4 additions & 4 deletions samples/basic/fade_led/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: arduino_101 quark_d2000_crb
test:
build_only: true
platform_whitelist: arduino_101 quark_d2000_crb
nucleo_f103rb nucleo_f401re nucleo_l476rg hexiwear_k64
tags: apps
tags: apps
8 changes: 4 additions & 4 deletions samples/basic/rgb_led/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: arduino_101 hexiwear_k64
tags: apps
test:
build_only: true
platform_whitelist: arduino_101 hexiwear_k64
tags: apps
8 changes: 4 additions & 4 deletions samples/basic/servo_motor/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: arduino_101 quark_d2000_crb
tags: apps
test:
build_only: true
platform_whitelist: arduino_101 quark_d2000_crb
tags: apps
11 changes: 6 additions & 5 deletions samples/basic/threads/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
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:
- test:
build_only: true
platform_whitelist: 96b_carbon
tags: samples
test:
build_only: true
platform_whitelist: 96b_carbon
tags: samples
8 changes: 4 additions & 4 deletions samples/bluetooth/beacon/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86 nrf52_pca10040
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86 nrf52_pca10040
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/central/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/central_hr/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
arch_whitelist: x86
build_only: true
tags: bluetooth
test:
arch_whitelist: x86
build_only: true
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/eddystone/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/handsfree/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/hci_spi/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sample:
via SPI.
name: Bluetooth HCI SPI
tests:
- test:
build_only: true
platform_whitelist: 96b_carbon_nrf51 nrf51_pca10028
tags: samples bluetooth spi
test:
build_only: true
platform_whitelist: 96b_carbon_nrf51 nrf51_pca10028
tags: samples bluetooth spi
22 changes: 11 additions & 11 deletions samples/bluetooth/hci_uart/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ sample:
description: TBD
name: TBD
tests:
- test_arm:
build_only: true
platform_whitelist: 96b_nitrogen nrf51_pca10028
nrf52_pca10040 bbc_microbit
tags: uart bluetooth
- test_nrf5:
build_only: true
extra_args: CONF_FILE="nrf5.conf"
platform_whitelist: 96b_nitrogen nrf51_pca10028
nrf52_pca10040 arduino_101_ble
tags: uart bluetooth
test_arm:
build_only: true
platform_whitelist: 96b_nitrogen nrf51_pca10028
nrf52_pca10040 bbc_microbit
tags: uart bluetooth
test_nrf5:
build_only: true
extra_args: CONF_FILE="nrf5.conf"
platform_whitelist: 96b_nitrogen nrf51_pca10028
nrf52_pca10040 arduino_101_ble
tags: uart bluetooth
16 changes: 8 additions & 8 deletions samples/bluetooth/hci_usb/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ sample:
description: TBD
name: TBD
tests:
- test_x86:
extra_configs:
- CONFIG_USB_DEVICE_VID=0xDEAD
- CONFIG_USB_DEVICE_PID=0xBEEF
build_only: true
depends_on: usb_device
platform_whitelist: quark_se_c1000_devboard
tags: usb bluetooth
test_x86:
build_only: true
depends_on: usb_device
extra_configs:
- CONFIG_USB_DEVICE_VID=0xDEAD
- CONFIG_USB_DEVICE_PID=0xBEEF
platform_whitelist: quark_se_c1000_devboard
tags: usb bluetooth
18 changes: 9 additions & 9 deletions samples/bluetooth/ipsp/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_x86 qemu_cortex_m3
tags: bluetooth net
- test_zep1656:
build_only: true
extra_args: CONF_FILE="prj_zep1656.conf"
platform_whitelist: qemu_x86 qemu_cortex_m3
tags: bluetooth net
test:
build_only: true
platform_whitelist: qemu_x86 qemu_cortex_m3
tags: bluetooth net
test_zep1656:
build_only: true
extra_args: CONF_FILE="prj_zep1656.conf"
platform_whitelist: qemu_x86 qemu_cortex_m3
tags: bluetooth net
9 changes: 4 additions & 5 deletions samples/bluetooth/mesh/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
sample:
name: Bluetooth Mesh
tests:
- test:
build_only: true
platform_whitelist: bbc_microbit nrf51_blenano
qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: bbc_microbit nrf51_blenano qemu_x86
tags: bluetooth
9 changes: 4 additions & 5 deletions samples/bluetooth/mesh_demo/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
sample:
name: Bluetooth Mesh Demo
tests:
- test:
build_only: true
platform_whitelist: bbc_microbit nrf51_blenano
qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: bbc_microbit nrf51_blenano qemu_x86
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/peripheral/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/peripheral_csc/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/peripheral_dis/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/peripheral_esp/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/peripheral_hids/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/peripheral_hr/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/peripheral_sc_only/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
8 changes: 4 additions & 4 deletions samples/bluetooth/scan_adv/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sample:
description: TBD
name: TBD
tests:
- test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
test:
build_only: true
platform_whitelist: qemu_cortex_m3 qemu_x86
tags: bluetooth
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sample:
name: Environmental Sensing (Application Processor
Part)
tests:
- test:
build_only: true
platform_whitelist: arduino_101
tags: samples
test:
build_only: true
platform_whitelist: arduino_101
tags: samples
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sample:
'
name: Environmental Sensing (Sensor Subsystem Part)
tests:
- test:
build_only: true
platform_whitelist: arduino_101_sss
tags: samples sensor
test:
build_only: true
platform_whitelist: arduino_101_sss
tags: samples sensor
Loading

0 comments on commit 23f81ee

Please sign in to comment.