From 0757a9671770d0d6818d395548da07f5df4273cd Mon Sep 17 00:00:00 2001 From: Victor Chavez <47216966+vChavezB@users.noreply.github.com> Date: Sat, 13 Apr 2024 00:18:15 +0200 Subject: [PATCH 1/5] Update build.yml --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d1ee114..bc0c88a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,11 +41,46 @@ jobs: - name : Upload Firmware uses: actions/upload-artifact@v4 with: + name: zephyr-build path: | samples/uptime/build/zephyr/zephyr.elf samples/uptime/build_posix/zephyr/zephyr.exe test/renode/uptime_central/build/zephyr/zephyr.elf + test: + needs: build + runs-on: ubuntu-20.04 + steps: + - name: Clone repository + uses: actions/checkout@v4 + + - name: Download zephyr binaries + uses: actions/download-artifact@v4 + with: + name: zephyr-build + + - name: Verify binaries path + run: sudo apt-get install tree -y && tree + + - name: Run tests on latest Renode + uses: antmicro/renode-test-action@v2.0.0 + with: + renode-version: 'latest' + tests-to-run: 'test/renode/uptime_test.robot' + renode-path: renode-latest + artifacts-path: ${{ github.workspace }} + + + - name: Archive latest results + uses: actions/upload-artifact@v2 + if: always() + with: + name: test-results-latest + path: | + report.html + log.html + robot_output.xml + From 44f28fc336cf6df89f7d95f91912b4a61520bc81 Mon Sep 17 00:00:00 2001 From: Victor Chavez <47216966+vChavezB@users.noreply.github.com> Date: Sat, 13 Apr 2024 00:32:22 +0200 Subject: [PATCH 2/5] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc0c88a..ff272cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,7 +63,7 @@ jobs: run: sudo apt-get install tree -y && tree - name: Run tests on latest Renode - uses: antmicro/renode-test-action@v2.0.0 + uses: antmicro/renode-test-action@v3.0.0 with: renode-version: 'latest' tests-to-run: 'test/renode/uptime_test.robot' From 3a57d5ca4a6ad7d2e78c20e2c337f18b26acf48f Mon Sep 17 00:00:00 2001 From: Victor Chavez <47216966+vChavezB@users.noreply.github.com> Date: Sat, 13 Apr 2024 00:33:57 +0200 Subject: [PATCH 3/5] Update build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff272cc..dccabc0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,9 +65,9 @@ jobs: - name: Run tests on latest Renode uses: antmicro/renode-test-action@v3.0.0 with: - renode-version: 'latest' + renode-version: '1.13.3' tests-to-run: 'test/renode/uptime_test.robot' - renode-path: renode-latest + renode-path: renode-1.13 artifacts-path: ${{ github.workspace }} From d150cb6de59688d54b999c0bf0065e243bd78f4b Mon Sep 17 00:00:00 2001 From: Victor Chavez <47216966+vChavezB@users.noreply.github.com> Date: Sat, 13 Apr 2024 00:45:52 +0200 Subject: [PATCH 4/5] Update uptime_test.robot --- test/renode/uptime_test.robot | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/renode/uptime_test.robot b/test/renode/uptime_test.robot index 49ba60e..1f0ae76 100644 --- a/test/renode/uptime_test.robot +++ b/test/renode/uptime_test.robot @@ -47,5 +47,8 @@ Uptime Demo Wait For Line On Uart Booting Zephyr testerId=${cen_uart} Wait For Line On Uart Booting Zephyr testerId=${per_uart} - Wait For Line On Uart Scanning successfully started testerId=${cen_uart} - Wait For Line On Uart Bluetooth initialized testerId=${per_uart} \ No newline at end of file + Wait For Line On Uart Scanning successfully started testerId=${cen_uart} + Wait For Line On Uart Bluetooth initialized testerId=${per_uart} + Wait For Line On Uart Connected testerId=${per_uart} + Wait For Line On Uart Connected testerId=${cen_uart} + Wait For Line On Uart All Chars Found testerId=${cen_uart} From 38a282abb2d8e4e2f0b440844b7a04240c69a93e Mon Sep 17 00:00:00 2001 From: Victor Chavez <47216966+vChavezB@users.noreply.github.com> Date: Sat, 13 Apr 2024 00:58:18 +0200 Subject: [PATCH 5/5] Update main.cpp --- test/renode/uptime_central/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/renode/uptime_central/src/main.cpp b/test/renode/uptime_central/src/main.cpp index 00547fb..ad215d7 100644 --- a/test/renode/uptime_central/src/main.cpp +++ b/test/renode/uptime_central/src/main.cpp @@ -24,7 +24,7 @@ int main() } while(1) { LOG_INF("Sleeping"); - k_sleep(K_MSEC(1000)); + k_sleep(K_MSEC(10000)); } return 0; -} \ No newline at end of file +}