1*** Variables ***
2${UART}                     sysbus.uart
3${URI}                      @https://dl.antmicro.com/projects/renode
4
5*** Keywords ***
6Setup Machine
7    [Arguments]             ${elf}
8
9    Execute Command         mach create
10    Execute Command         machine LoadPlatformDescription @platforms/boards/eos-s3-quickfeather.repl
11
12    Execute Command         sysbus LoadELF ${URI}/${elf}
13    Create Terminal Tester  ${UART}
14
15*** Test Cases ***
16Should Output Voice Data
17    Setup Machine           quick_feather--pdm_ssi_ai_app.elf-s_937812-050bf0cc75919a2268bd91497b4c893945c96df5
18
19    Execute Command         sysbus.voice SetInputFile ${URI}/audio_yes_1s.s16le.pcm-s_32000-b69f5518615516f80ae0082fe9b5a5d29ffebce8
20
21    Start Emulation
22    Wait For Line On Uart   sample_rate
23    Write To Uart           connect
24    Wait For Line On Uart   f9 ff f4 ff ee ff ec ff ec ff
25    Wait For Line On Uart   ae ff a9 ff a8 ff a4 ff a2 ff
26    Wait For Line On Uart   e3 ff dd ff d6 ff cc ff be ff
27
28Should Run Zephyr posix.common Test
29    [Tags]                  zephyr
30    Setup Machine           quick_feather--zephyr-posix_common-test.elf-s_747648-0aab8537f58c0086780e382109b44a594f21555c
31
32    Start Emulation
33    Wait For Line On Uart   PROJECT EXECUTION SUCCESSFUL  120
34
35Should Run Zephyr portability.cmsis_rtos_v1 Test
36    [Tags]                  zephyr
37    Setup Machine           quick_feather--zephyr-portability_cmsis_rtos_v1-test.elf-s_806480-48711ea8a593346c71435de4db3d595aee334ab8
38
39    Start Emulation
40    Wait For Line On Uart   PROJECT EXECUTION SUCCESSFUL  120
41
42Should Run Zephyr portability.cmsis_rtos_v2 Test
43    [Tags]                  zephyr
44    Setup Machine           quick_feather--zephyr-portability_cmsis_rtos_v2-test.elf-s_877448-f34ad2f8bc7ae4712fa6a66523267c5f573fdcf1
45
46    Start Emulation
47    Wait For Line On Uart   PROJECT EXECUTION SUCCESSFUL  30
48
49Should Run Zephyr subsys.shell.shell Test
50    [Tags]                  zephyr
51    Setup Machine           quick_feather--zephyr-subsys_shell_shell-test.elf-s_782956-27557acc2e53a2225a74ac070f54c4a0fb5dac29
52
53    Start Emulation
54    Wait For Line On Uart   PROJECT EXECUTION SUCCESSFUL  10
55