zephyr/tests/drivers/rtc/rtc_api_helpers/CMakeLists.txt
Bjarki Arge Andreasen 8da512a25b tests/drivers/rtc: Add rtc_api_helpers test suite
This test suite validates the RTC API helper
functions, like currently, and exclusively, the
rtc_time_to_tm() helper function.

It also validates that the struct rtc_time is
member to member compatible with the struct tm
from the tm_sec to and including the tm_isdts
member.

Signed-off-by: Bjarki Arge Andreasen <baa@trackunit.com>
2023-04-04 17:03:38 +02:00

16 lines
308 B
CMake

# Copyright (c) 2022 Bjarki Arge Andreasen
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(rtc_api)
target_sources(app PRIVATE
src/main.c
src/test_rtc_time_to_tm.c
)
target_include_directories(app PRIVATE inc)