samples: sensors: Add test criteria

Verify the output according to the description of the sample.
fixes: #84156

Signed-off-by: Maciej Perkowski <maciej.perkowski@nordicsemi.no>
This commit is contained in:
Maciej Perkowski 2025-02-25 14:31:43 +01:00 committed by Fabio Baltieri
commit b85e4f1b00

View file

@ -3,6 +3,15 @@
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
common:
harness: console
harness_config:
type: multi_line
ordered: false
regex:
- "Cycles:.*"
- "Nanoseconds:.*"
tests: tests:
sample.sensor.clock.counter: sample.sensor.clock.counter:
filter: CONFIG_SENSOR_CLOCK_COUNTER filter: CONFIG_SENSOR_CLOCK_COUNTER