Skip to content

Commit

Permalink
samples: drivers: rtc application runs on stm32f3_disco target
Browse files Browse the repository at this point in the history
Check that rtc has, at least, incremented second counter
one time to validated the sample.

Signed-off-by: Francois Ramu <[email protected]>
  • Loading branch information
FRASTM authored and kartben committed Dec 16, 2024
1 parent 988287c commit 3aff5c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions samples/drivers/rtc/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ Sample Output

.. code-block:: console
RTC date and time: 2024-11-17 04:21:47
RTC date and time: 2024-11-17 04:21:48
RTC date and time: 2024-11-17 04:21:49
RTC date and time: 2024-11-17 04:19:00
RTC date and time: 2024-11-17 04:19:01
<repeats endlessly>
7 changes: 7 additions & 0 deletions samples/drivers/rtc/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ tests:
sample.drivers.rtc:
platform_allow:
- stm32f3_disco
integration_platforms:
- stm32f3_disco
tags:
- samples
- rtc
- api
depends_on:
- rtc
harness: console
harness_config:
type: one_line
regex:
- "RTC date and time: 2024-11-17 04:19:01"

0 comments on commit 3aff5c3

Please sign in to comment.