zephyr/samples/sensor/hts221/sample.yaml
Erwan Gouriou 5106b9cc2a samples: hts221: Fix testing support by twister
-In order to allow non regression of trigger mode in CI, add
a dedicated configuration for this mode
-Fix regex
-Use a filter on compat rather than using a fixture

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-09-01 13:15:14 -05:00

24 lines
600 B
YAML

sample:
name: HTS221 Temperature and Humidity Monitor
common:
harness: console
integration_platforms:
- disco_l475_iot1
filter: dt_compat_enabled("st,hts221")
tags: sensors
depends_on: i2c hts221
harness_config:
type: multi_line
ordered: yes
regex:
- "Observation:(.*)"
- "Temperature:(.*) C"
- "Relative Humidity:(.*)%"
tests:
sample.sensor.hts221:
extra_configs:
- CONFIG_HTS221_TRIGGER_NONE=y
sample.sensor.hts221.trigger:
extra_configs:
- CONFIG_HTS221_TRIGGER_OWN_THREAD=y