Skip to content

Commit dc96f16

Browse files
committed
samples: define harness for samples
Most of the basic tests trigger LEDs or expect button press and would hang in device testing because we can't parse success or failure from the console. Define harness for this with the intent to skip those in sanitycheck device testing and until we have a better way to test those. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 5923760 commit dc96f16

File tree

8 files changed

+14
-0
lines changed

8 files changed

+14
-0
lines changed

samples/basic/blink_led/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ tests:
88
hexiwear_k64 colibri_imx7d_m4 nrf52832_mdk nrf52840_mdk, nucleo_l496zg
99
tags: drivers pwm
1010
depends_on: pwm
11+
harness: led

samples/basic/blinky/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ tests:
55
tags: LED gpio
66
filter: DT_GPIO_LEDS_LED0_GPIO_CONTROLLER
77
depends_on: gpio
8+
harness: led

samples/basic/button/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ tests:
55
tags: button gpio
66
filter: DT_GPIO_KEYS_SW0_GPIO_CONTROLLER
77
depends_on: gpio
8+
harness: button

samples/basic/disco/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ tests:
44
test:
55
filter: DT_GPIO_LEDS_LED0_GPIO_CONTROLLER and DT_GPIO_LEDS_LED1_GPIO_CONTROLLER
66
tags: LED gpio
7+
harness: led

samples/basic/fade_led/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ tests:
88
nrf51_pca10028 nrf52840_pca10056
99
tags: drivers pwm
1010
depends_on: pwm
11+
harness: led

samples/basic/rgb_led/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ tests:
77
DT_PWM_LEDS_BLUE_PWM_LED_PWM_CONTROLLER
88
tags: drivers pwm
99
depends_on: pwm
10+
harness: led

samples/basic/servo_motor/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ tests:
66
platform_whitelist: arduino_101 quark_d2000_crb bbc_microbit
77
tags: drivers pwm
88
depends_on: pwm
9+
harness: motor

samples/basic/threads/sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ tests:
77
tags: kernel threads gpio
88
filter: DT_GPIO_LEDS_LED0_GPIO_CONTROLLER and DT_GPIO_LEDS_LED1_GPIO_CONTROLLER
99
depends_on: gpio
10+
harness: console
11+
harness_config:
12+
type: multi_line
13+
ordered: false
14+
regex:
15+
- "Toggle USR0 LED(.*)"
16+
- "Toggle USR1 LED(.*)"

0 commit comments

Comments
 (0)