Skip to content

Commit 3aff5c3

Browse files
FRASTMkartben
authored andcommitted
samples: drivers: rtc application runs on stm32f3_disco target
Check that rtc has, at least, incremented second counter one time to validated the sample. Signed-off-by: Francois Ramu <[email protected]>
1 parent 988287c commit 3aff5c3

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

samples/drivers/rtc/README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ Sample Output
2727

2828
.. code-block:: console
2929
30-
RTC date and time: 2024-11-17 04:21:47
31-
RTC date and time: 2024-11-17 04:21:48
32-
RTC date and time: 2024-11-17 04:21:49
30+
RTC date and time: 2024-11-17 04:19:00
31+
RTC date and time: 2024-11-17 04:19:01
3332
3433
<repeats endlessly>

samples/drivers/rtc/sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ tests:
44
sample.drivers.rtc:
55
platform_allow:
66
- stm32f3_disco
7+
integration_platforms:
8+
- stm32f3_disco
79
tags:
810
- samples
911
- rtc
1012
- api
1113
depends_on:
1214
- rtc
15+
harness: console
16+
harness_config:
17+
type: one_line
18+
regex:
19+
- "RTC date and time: 2024-11-17 04:19:01"

0 commit comments

Comments
 (0)