1*** Keywords ***
2Create Machine
3    Execute Command           using sysbus
4    Execute Command           mach create
5
6Machine And RTC DateTimes Should Be Equal
7    ${rtc}=  Execute Command  rtc CurrentDateTime
8    ${cur}=  Execute Command  machine RealTimeClockDateTime
9    Should Be Equal           ${rtc}  ${cur}
10
11Set RTC Mode
12    [Arguments]    ${mode}
13    Execute Command           machine RealTimeClockMode ${mode}
14
15Should Support RTC Mode Changes
16    [Arguments]    ${model}
17    Create Machine
18    Execute Command           machine LoadPlatformDescriptionFromString "rtc: Timers.${model} @ sysbus 0x0"
19
20    # Check the initial state.
21    Machine And RTC DateTimes Should Be Equal
22
23    Set RTC Mode              HostTimeLocal
24    Machine And RTC DateTimes Should Be Equal
25
26    Set RTC Mode              HostTimeUTC
27    Machine And RTC DateTimes Should Be Equal
28
29    Set RTC Mode              Epoch
30    Machine And RTC DateTimes Should Be Equal
31
32*** Test Cases ***
33AmbiqApollo4_RTC Should Support RTC Mode Changes
34    Should Support RTC Mode Changes    AmbiqApollo4_RTC
35
36MAX32650_RTC Should Support RTC Mode Changes
37    Should Support RTC Mode Changes    MAX32650_RTC
38