From 7b4d8cf9ce3dce7bea97baa3c1592f9da7d24a51 Mon Sep 17 00:00:00 2001 From: Hake Huang Date: Tue, 29 Oct 2024 14:24:21 +0000 Subject: [PATCH] samples: sesnor: thermo: add harness_config for testing add harness_config for console for testing Signed-off-by: Hake Huang --- samples/sensor/thermometer/sample.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/samples/sensor/thermometer/sample.yaml b/samples/sensor/thermometer/sample.yaml index 4cce8e3973e..7d6b3479eb6 100644 --- a/samples/sensor/thermometer/sample.yaml +++ b/samples/sensor/thermometer/sample.yaml @@ -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"