From b85e4f1b006baf524bf54d877cc5c4b759d3a755 Mon Sep 17 00:00:00 2001 From: Maciej Perkowski Date: Tue, 25 Feb 2025 14:31:43 +0100 Subject: [PATCH] samples: sensors: Add test criteria Verify the output according to the description of the sample. fixes: #84156 Signed-off-by: Maciej Perkowski --- samples/sensor/clock/sample.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/samples/sensor/clock/sample.yaml b/samples/sensor/clock/sample.yaml index 08ee185c212..0f4b1e05c79 100644 --- a/samples/sensor/clock/sample.yaml +++ b/samples/sensor/clock/sample.yaml @@ -3,6 +3,15 @@ # # SPDX-License-Identifier: Apache-2.0 +common: + harness: console + harness_config: + type: multi_line + ordered: false + regex: + - "Cycles:.*" + - "Nanoseconds:.*" + tests: sample.sensor.clock.counter: filter: CONFIG_SENSOR_CLOCK_COUNTER