1*** Variables ***
2${SCRIPT}                     ${CURDIR}/../../scripts/single-node/hifive_unmatched.resc
3${SCRIPT_SD_CARD}             ${CURDIR}/../../scripts/single-node/hifive_unmatched_sdcard.resc
4${UART}                       sysbus.uart0
5${TEST_BIN}                   @https://dl.antmicro.com/projects/renode/hifive_unmatched--zephyr-tests_subsys_fs_ext2_sdcard.elf-s_1780608-7de521cb3ea27c869f0359cd6ef4a84138a16a9b
6
7*** Test Cases ***
8Should List Directory Entries
9    [Documentation]           Boots Zephyr fs sample on SiFive Freedom U740 platform.
10
11    Execute Script            ${SCRIPT_SD_CARD}
12    Create Terminal Tester    ${UART}
13
14    Wait For Line On Uart     Listing dir /ext ...
15    Wait For Line On Uart     [DIR ] lost+found
16    Wait For Line On Uart     [FILE] hello (size = 4)
17    Wait For Line On Uart     [DIR ] world
18
19Should Run Zephyr Fs Test
20    [Documentation]           Runs Zephyr fs tests on SiFive Freedom U740 platform.
21
22    Execute Command           $bin=${TEST_BIN}
23    Execute Script            ${SCRIPT}
24    Execute Command           machine EmptySdCard sysbus.qspi2 0 0x20000 "sd"
25    Create Terminal Tester    ${UART}
26
27    Wait For Line On Uart     TESTSUITE ext2tests succeeded
28
29