zephyr/samples/sensor/clock/sample.yaml
Maciej Perkowski b85e4f1b00 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>
2025-02-27 23:19:09 +00:00

47 lines
1,015 B
YAML

#
# Copyright (c) 2024 Cienet
#
# 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
tags:
- drivers
- sensor
- counter
platform_allow:
- nrf52840dk/nrf52840
- nrf52833dk/nrf52833
extra_dtc_overlay_files:
- "boards/${BOARD}${NORMALIZED_BOARD_QUALIFIERS}.overlay"
- "boards/nrf528xx_counter.overlay"
sample.sensor.clock.rtc:
filter: CONFIG_SENSOR_CLOCK_RTC
tags:
- drivers
- sensor
- rtc
platform_allow:
- nrf52840dk/nrf52840
- nrf52833dk/nrf52833
extra_dtc_overlay_files:
- "boards/${BOARD}${NORMALIZED_BOARD_QUALIFIERS}.overlay"
- "boards/nrf528xx_rtc.overlay"
sample.sensor.clock.system:
filter: CONFIG_SENSOR_CLOCK_SYSTEM
tags:
- drivers
- sensor
- system_clock