From 52de0d88071caabf2f6d300c17b2773e5145c073 Mon Sep 17 00:00:00 2001 From: Victor Chavez Date: Fri, 12 Apr 2024 20:56:33 +0200 Subject: [PATCH] updated renode files --- .gitignore | 5 ++++- test/renode/load.resc | 24 ++++++++++++++++++++++++ test/renode/uptime_test.robot | 6 +++--- 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 test/renode/load.resc diff --git a/.gitignore b/.gitignore index 853e3d1..6edeff8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ build* *.pyc *.idea -.vscode/* \ No newline at end of file +*.vscode/* +test/renode/logs/* +test/renode/*.html +test/renode/*.xml diff --git a/test/renode/load.resc b/test/renode/load.resc new file mode 100644 index 0000000..c053d70 --- /dev/null +++ b/test/renode/load.resc @@ -0,0 +1,24 @@ +using sysbus + +emulation CreateBLEMedium "wireless" + + +mach add "central" +machine LoadPlatformDescription @platforms/cpus/nrf52840.repl + + +showAnalyzer uart0 + +mach create "peripheral" +machine LoadPlatformDescription @platforms/cpus/nrf52840.repl +connector Connect sysbus.radio wireless +showAnalyzer uart0 + +emulation SetGlobalQuantum "0.00001" + + +mach set "central" +sysbus LoadELF $ORIGIN/uptime_central/build/zephyr/zephyr.elf + +mach set "peripheral" +sysbus LoadELF $ORIGIN/../../samples/uptime/build/zephyr/zephyr.elf \ No newline at end of file diff --git a/test/renode/uptime_test.robot b/test/renode/uptime_test.robot index 4127017..1c5261e 100644 --- a/test/renode/uptime_test.robot +++ b/test/renode/uptime_test.robot @@ -21,12 +21,12 @@ Resource ${RENODEKEYWORDS} *** Test Cases *** -BLISS Demo +Uptime Demo Execute Command emulation CreateIEEE802_15_4Medium "wireless" Execute Command mach add "central" Execute Command machine LoadPlatformDescription @platforms/cpus/nrf52840.repl - Execute Command sysbus LoadELF @${CURDIR}/central.elf + Execute Command sysbus LoadELF @${CURDIR}/uptime_central/build/zephyr/zephyr.elf Execute Command connector Connect sysbus.radio wireless Execute Command showAnalyzer ${UART} @@ -35,7 +35,7 @@ BLISS Demo Execute Command mach add "peripheral" Execute Command mach set "peripheral" Execute Command machine LoadPlatformDescription @platforms/cpus/nrf52840.repl - Execute Command sysbus LoadELF @${CURDIR}/periph.elf + Execute Command sysbus LoadELF @${CURDIR}/../../samples/uptime/build/zephyr/zephyr.elf Execute Command connector Connect sysbus.radio wireless Execute Command showAnalyzer ${UART}