Skip to content

Commit f47b537

Browse files
henrikbrixandersencarlescufi
authored andcommitted
tests: drivers: build_all: rtc: api: add build-only test for PCF8523
Add a build-only test for the NXP PCF8523 RTC driver since no in-tree boards have this chip. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent d4d8580 commit f47b537

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5+
project(build_all_rtc)
6+
7+
FILE(GLOB app_sources src/*.c)
8+
target_sources(app PRIVATE ${app_sources})

tests/drivers/build_all/rtc/prj.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CONFIG_TEST=y
2+
CONFIG_TEST_USERSPACE=y
3+
CONFIG_GPIO=y
4+
CONFIG_RTC=y
5+
CONFIG_RTC_ALARM=y
6+
CONFIG_RTC_UPDATE=y
7+
CONFIG_RTC_CALIBRATION=y
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) 2023 Henrik Brix Andersen <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
int main(void)
8+
{
9+
return 0;
10+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
common:
2+
build_only: true
3+
tags: drivers rtc
4+
tests:
5+
drivers.rtc.build.pcf8523:
6+
depends_on: arduino_spi arduino_i2c arduino_gpio
7+
extra_args: SHIELD=adafruit_data_logger
8+
platform_allow: frdm_k64f

0 commit comments

Comments
 (0)