1*** Test Cases ***
2Frame Buffer Test
3    [Tags]                     non_critical
4
5    Execute Script             scripts/single-node/litex_nexys_video_vexriscv_linux.resc
6
7    Create Terminal Tester     sysbus.uart
8
9    Start Emulation
10
11    Wait For Line On Uart      Press Q or ESC to abort boot completely.
12    Send Key To Uart           0x51  # Q
13
14    Wait For Prompt On Uart    litex>
15    Write Line To Uart         sdcardboot
16
17    Wait For Prompt On Uart    buildroot login:
18    Write Line To Uart         root
19
20    Wait For Line On Uart      root login on 'console'
21
22    Write Line To Uart         export PS1="$ "
23    Wait For Prompt On Uart    $
24
25    Execute Command            emulation CreateFrameBufferTester "fb_tester" 5
26
27    Execute Command            fb_tester AttachTo litex_video
28
29    Write Line To Uart         cat /etc/motd > /dev/tty0
30    Execute Command            fb_tester WaitForFrame @https://dl.antmicro.com/projects/renode/screenshots/penguin_with_litex_logo.png-s_13404-8664342616adc3edda335db849dd1f5cd1805596
31    Provides                   first_test_pass
32
33Frame Buffer with ROI Test
34    [Tags]                     non_critical
35
36    Requires                   first_test_pass
37    Execute Command            fb_tester WaitForFrameROI @https://dl.antmicro.com/projects/renode/penguin_logo.png-s_14782-2e0fc81dbcd56b3ed9c86790fe8d390a935395c5 0 0 75 80
38