1*** Test Cases ***
2Should Handle Button Press
3    [Tags]                  skipped
4    Execute Command         mach create
5    Execute Command         machine LoadPlatformDescription @platforms/cpus/stm32f103.repl
6    Execute Command         machine LoadPlatformDescriptionFromString "button: Miscellaneous.Button @ gpioPortC 13 { IRQ -> gpioPortC@13 }"
7    Execute Command         sysbus LoadELF @https://dl.antmicro.com/projects/renode/zephyr-stm32f103-button.elf-s_276760-1bf32c99bbb3c01d81e13ca68118eaf08b2a815f
8
9    Create Terminal Tester  sysbus.usart2
10
11    Start Emulation
12
13    Wait For Line On Uart   Press the user defined button on the board
14    Test If Uart Is Idle    1
15    Execute Command         sysbus.gpioPortC.button Press
16    Test If Uart Is Idle    1
17    Execute Command         sysbus.gpioPortC.button Release
18    Wait For Line On Uart   Button pressed
19    Test If Uart Is Idle    1
20    Execute Command         sysbus.gpioPortC.button PressAndRelease
21    Wait For Line On Uart   Button pressed
22