1*** Test Cases ***
2Download File Over TFTP
3    Execute Command             using sysbus
4    Execute Command             mach create "litex-vexriscv"
5    Execute Command             machine LoadPlatformDescription "${CURDIR}/litex_vexriscv.repl"
6    Execute Command             sysbus LoadBinary @https://dl.antmicro.com/projects/renode/bios.bin-s_27076-9b28166a445deb24d5d3547871ae0de8365ba4d0 0x0
7    Execute Command             cpu PC 0x0
8
9    Execute Command             emulation CreateSwitch "switch"
10    Execute Command             connector Connect ethmac switch
11
12    Execute Command             emulation CreateNetworkServer "server" "192.168.100.100"
13    Execute Command             connector Connect server switch
14    Execute Command             server StartTFTP 6069
15    Execute Command             server.tftp ServeFile @https://dl.antmicro.com/projects/renode/litex_vexriscv-micropython.bin-s_218608-db594ec6a9a75d77d2475afd714b6c28fb6e6498 "boot.bin"
16
17    Create Terminal Tester      sysbus.uart
18    Execute Command             showAnalyzer sysbus.uart
19    Start Emulation
20
21    Wait For Line On Uart      Press Q or ESC to abort boot completely.
22    # send Q
23    Send Key To Uart           0x51
24
25    Wait For Prompt On Uart    litex>
26    Write Line To Uart         netboot
27
28    Wait For Line On Uart      Downloaded 218608 bytes from boot.bin over TFTP to 0x40000000
29    Wait For Line On Uart      MicroPython v1.9.4-1431
30
31    Wait For Prompt On Uart    >>>
32
33    Write Line To Uart         2 + 3
34    Wait For Line On Uart      5
35
36