1*** Settings ***
2Documentation                 Testing the NXP K64F platform
3
4*** Variables ***
5${UART}                       sysbus.uart0
6${URI}                        @https://dl.antmicro.com/projects/renode
7
8*** Keywords ***
9Create Machine
10    [Arguments]  ${elf}
11
12    Execute Command           mach create
13    Execute Command           machine LoadPlatformDescription @platforms/cpus/nxp-k6xf.repl
14
15    Execute Command           sysbus LoadELF ${URI}/${elf}
16
17    Create Terminal Tester    ${UART}
18
19*** Test Cases ***
20Should Run Zephyr Tests for UART
21    [Documentation]           Runs Zephyr's basic uart tests
22    Create Machine            nxp_k64f--zephyr_basic_uart.elf-s_618844-2d588c6899efaae76a7a27136fd8cff667bbcb6f
23
24    Start Emulation
25    Wait For Line On Uart     Please send characters to serial console
26    Write Line To Uart        The quick brown fox jumps over the lazy dog
27    Wait For Line On Uart     Please send characters to serial console
28    Write Line To Uart        The quick brown fox jumps over the lazy dog
29    Wait For Line On Uart     PROJECT EXECUTION SUCCESSFUL
30
31Should Run Zephyr Tests for TCP
32    [Documentation]           Runs Zephyr's tests from tests/net/tcp
33    Create Machine            nxp_k64f--zephyr_net_tcp.elf-s_1591188-15ce42eb41454d94762cc6bde77bc61f22dfcb26
34
35    Start Emulation
36    Wait For Line On Uart     PROJECT EXECUTION SUCCESSFUL
37