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 <bjarkix123@gmail.com>
This commit is contained in:
parent
7dd5fb6dc8
commit
5f80f30747
|
@ -10,6 +10,7 @@ supported:
|
||||||
- can
|
- can
|
||||||
- smp
|
- smp
|
||||||
- smbus
|
- smbus
|
||||||
|
- rtc
|
||||||
testing:
|
testing:
|
||||||
default: true
|
default: true
|
||||||
ignore_tags:
|
ignore_tags:
|
||||||
|
|
5
tests/drivers/rtc/rtc_api/boards/qemu_x86_64.conf
Normal file
5
tests/drivers/rtc/rtc_api/boards/qemu_x86_64.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Copyright (c) 2023 Bjarki Arge Andreasen
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
CONFIG_RTC_ALARM=y
|
||||||
|
CONFIG_RTC_UPDATE=y
|
18
tests/drivers/rtc/rtc_api/boards/qemu_x86_64.overlay
Normal file
18
tests/drivers/rtc/rtc_api/boards/qemu_x86_64.overlay
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 Bjarki Arge Andreasen
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The RTC IRQ is not routed to the IOAPIC if the legacy
|
||||||
|
* IRQ bit is set. The IRQ is required for alarm
|
||||||
|
* operation and the update callback.
|
||||||
|
*/
|
||||||
|
&hpet {
|
||||||
|
no-legacy-irq;
|
||||||
|
};
|
||||||
|
|
||||||
|
&rtc {
|
||||||
|
status = "okay";
|
||||||
|
};
|
|
@ -9,3 +9,5 @@ tests:
|
||||||
- api
|
- api
|
||||||
filter: dt_alias_exists("rtc")
|
filter: dt_alias_exists("rtc")
|
||||||
depends_on: rtc
|
depends_on: rtc
|
||||||
|
platform_exclude:
|
||||||
|
- qemu_x86_64
|
||||||
|
|
Loading…
Reference in a new issue