zephyr/samples/drivers/led_pwm/sample.yaml
Erwan Gouriou 23bb56820e samples/drivers: led_pwm: Fixes for device testing
Modify led_pwm sample in order to make it usable in device testing:
- Remove parenthesis from the logs as they prevent use of regex
- Add a harness_config multiline regex in order to enable verdict
generation
- Update README

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-01-18 19:11:43 +01:00

24 lines
613 B
YAML

sample:
description: Demonstration of the PWM LED driver
name: PWM LED sample
tests:
sample.drivers.led.led_pwm:
filter: dt_compat_enabled("pwm-leds")
tags: LED
depends_on: pwm
platform_exclude: reel_board
timeout: 15
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "Found device LED_PWM_\\d+"
- "Testing LED \\d+"
- "Turning on"
- "Turning off"
- "Increasing brightness gradually"
- "Blinking on: 0.1 sec, off: 0.1 sec"
- "Blinking on: 1 sec, off: 1 sec"
- "Turning off"