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>
This commit is contained in:
Hake Huang 2024-10-29 14:24:21 +00:00 committed by Mahesh Mahadevan
parent c6140b6f08
commit 7b4d8cf9ce
1 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,6 @@ sample:
tests:
sample.sensor.thermometer:
tags: sensors
harness: sensor
filter: dt_alias_exists("ambient-temp0")
integration_platforms:
- nrf52840dk/nrf52840 # mcp9700a
@ -11,3 +10,11 @@ tests:
- 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"