Skip to content

Commit 8094763

Browse files
author
Bjarki Arge Andreasen
committed
tests/drivers/rtc: Add qemu_x86_64 board to test suite
This commit adds overlay and conf for the qemu_x86_64 board to the RTC API test suite, and adds support for the RTC subsystem to the qemu_x86_64's yaml file. The commit also specifies integration platforms for the RTC API test suite, since the qemu_x86_64 board runs in real-time, causing it to time out if the test suite runs for it. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent be0ec10 commit 8094763

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

boards/x86/qemu_x86/qemu_x86_64.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ supported:
1010
- can
1111
- smp
1212
- smbus
13+
- rtc
1314
testing:
1415
default: true
1516
ignore_tags:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2023 Bjarki Arge Andreasen
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_RTC_ALARM=y
5+
CONFIG_RTC_UPDATE=y
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2023 Bjarki Arge Andreasen
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* The RTC IRQ is not routed to the IOAPIC if the legacy
9+
* IRQ bit is set. The IRQ is required for alarm
10+
* operation and the update callback.
11+
*/
12+
&hpet {
13+
no-legacy-irq;
14+
};
15+
16+
&rtc {
17+
status = "okay";
18+
};

tests/drivers/rtc/rtc_api/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ tests:
99
- api
1010
filter: dt_alias_exists("rtc")
1111
depends_on: rtc
12+
platform_exclude:
13+
- qemu_x86_64

0 commit comments

Comments
 (0)