zephyr/samples/sensor/thermometer/sample.yaml
Hake Huang 7b4d8cf9ce samples: sesnor: thermo: add harness_config for testing
add harness_config for console for testing

Signed-off-by: Hake Huang <hake.huang@oss.nxo.com>
2024-11-01 12:11:00 -05:00

21 lines
638 B
YAML

sample:
name: Temperature Sensor
tests:
sample.sensor.thermometer:
tags: sensors
filter: dt_alias_exists("ambient-temp0")
integration_platforms:
- nrf52840dk/nrf52840 # mcp9700a
- frdm_k22f # tcn75a
- robokit1 # ntc_thermistor
- adi_eval_adin1110ebz # adt7420
- frdm_mcxn947/mcxn947/cpu0 # p3t1755
harness: console
harness_config:
fixture: sensor_ambient_temp
type: multi_line
regex:
- "Thermometer Example (.*)"
- "Temperature device is 0x[0-9|a-z]+, name is [a-z|0-9]+@[a-z|0-9]+"
- "Temperature is [0-9|.]+°C"