1*** Variables ***
2${UART}                       sysbus.uart
3${URI}                        @https://dl.antmicro.com/projects/renode
4${BIOS}                       litex_microwatt--bios.bin-s_31172-0833ddddcf3d4aff1adcac22ac536c9c15f7c269
5
6*** Keywords ***
7Create Platform
8    Execute Command           mach create
9    Execute Command           machine LoadPlatformDescription @platforms/cpus/litex_microwatt.repl
10
11    Execute Command           sysbus LoadBinary ${URI}/${BIOS} 0x0
12    Execute Command           sysbus.cpu PC 0x0
13
14*** Test Cases ***
15Should Boot
16    Create Platform
17    Create Terminal Tester     sysbus.uart
18    Execute Command            showAnalyzer sysbus.uart
19
20    Start Emulation
21
22    Wait For Line On Uart      Press Q or ESC to abort boot completely.
23    # send Q
24    Send Key To Uart           0x51
25
26    Wait For Prompt On Uart    litex>
27
28    Provides                   boot-finished
29
30Should Display Help
31    Requires                   boot-finished
32
33    Write Line To Uart         help
34    Wait For Line On Uart      LiteX BIOS, available commands:
35