1*** Variables ***
2${APP_URL}                      https://dl.antmicro.com/projects/renode/cortex_m4--tock-cxx_hello.tbf-s_16384-2bf6dfc3ffd2894bea56341901beec1e903c3135
3${TOCK_URL}                     https://dl.antmicro.com/projects/renode/stm32f412gdiscovery--tock_kernel.elf-s_3392340-6da12cfcd5c4180b60ce7bf2ad32f019c9e8216e
4${UART}                         sysbus.usart2
5
6*** Keywords ***
7Create Machine
8    Execute Command             $bin=@${TOCK_URL}
9    Execute Command             $app=@${APP_URL}
10    Execute Command             include @scripts/single-node/stm32f4_tock.resc
11
12*** Test Cases ***
13Should Print Hello World
14    Create Machine
15    Create Terminal Tester      ${UART}
16    Start Emulation
17
18    Wait For Line On Uart       Initialization complete. Entering main loop
19
20    Wait For Line On Uart       D2 says hello
21    Wait For Line On Uart       D1 says hello
22
23    Wait For Line On Uart       D2 says hello
24    Wait For Line On Uart       D1 says hello
25
26    Wait For Line On Uart       D2 says hello
27    Wait For Line On Uart       D1 says hello
28