From 3aff5c34e6f2ab1eb1bc568af3120effe4252264 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Tue, 26 Nov 2024 11:25:47 +0100 Subject: [PATCH] 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 --- samples/drivers/rtc/README.rst | 5 ++--- samples/drivers/rtc/sample.yaml | 7 +++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/samples/drivers/rtc/README.rst b/samples/drivers/rtc/README.rst index 726771535c88..4b9e30ed8691 100644 --- a/samples/drivers/rtc/README.rst +++ b/samples/drivers/rtc/README.rst @@ -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 diff --git a/samples/drivers/rtc/sample.yaml b/samples/drivers/rtc/sample.yaml index 10f0a08c4636..b7dbd755a7e7 100644 --- a/samples/drivers/rtc/sample.yaml +++ b/samples/drivers/rtc/sample.yaml @@ -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"