1*** Variables ***
2${URL}                  https://dl.antmicro.com/projects/renode
3${SHELL_ELF}            arduino_uno_r4_minima-zephyr-shell_module.elf-s_1068728-aab68bf55c34638d1ba641464a8456a04bfff1df
4${GPT_ELF}              gpt_ek_ra4m1_ep.elf-s_765644-1d962f940be6f73024384883e7d6322a2a269ce0
5
6*** Keywords ***
7Prepare Machine
8    [Arguments]                 ${bin}
9    Execute Command             set bin @${URL}/${bin}
10    Execute Command             include @scripts/single-node/arduino_uno_r4_minima.resc
11
12Prepare UART Tester
13    Create Terminal Tester      sysbus.sci2
14
15Prepare Segger RTT
16    Execute Command             machine CreateVirtualConsole "segger_rtt"
17    Execute Command             include @scripts/single-node/segger-rtt.py
18    Execute Command             setup_segger_rtt sysbus.segger_rtt
19    Create Terminal Tester      sysbus.segger_rtt
20
21*** Test Cases ***
22Run ZephyrRTOS Shell
23    Prepare Machine             ${SHELL_ELF}
24    Prepare UART Tester
25
26    Start Emulation
27    Wait For Prompt On Uart     uart:~$
28    Write Line To Uart          demo ping
29    Wait For Line On Uart       pong
30
31Should Run The Timer In One Shot Mode
32    Prepare Machine              ${GPT_ELF}
33    Prepare Segger RTT
34
35    Wait For Prompt On Uart      User Input:
36    Write Line To Uart           3    waitForEcho=false
37
38    Wait For Line On Uart        Timer Expired in One-Shot Mode
39