Skip to content

Commit

Permalink
test(mmap)WIP: add test_mmaps.robot
Browse files Browse the repository at this point in the history
  • Loading branch information
hegza committed Nov 6, 2024
1 parent 7435765 commit 883751a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions scripts/robot/test_mmaps.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
*** Variables ***
${MACH_SCRIPT} ${CURDIR}/../resc/1_hpc.resc
${BUILD_SCRIPT} ${CURDIR}/../../examples/hpc/test-memory-maps/build.sh
${CPU} sysbus.cpu_hpc0
${UART} sysbus.apb_uart_0
${BIN} ${CURDIR}/../../examples/hpc/test-memory-maps/target/riscv64imac-unknown-none-elf/test-memory-maps

*** Settings ***
Suite Setup Setup
Suite Teardown Teardown
Test Teardown Test Teardown
Resource ${RENODEKEYWORDS}

*** Keywords ***
Create Machine
Execute Script ${MACH_SCRIPT}

*** Test Cases ***
APB UART0 is read
Create Machine
Create Terminal Tester ${UART}

${DEVICE} apb_uart0
Execute Script ${BUILD_SCRIPT}
Execute Command set bin @${BIN}
Execute Command sysbus LoadELF $bin false true ${CPU}
Start Emulation

Wait For Line On Uart [PASS]

0 comments on commit 883751a

Please sign in to comment.