diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d1ee114..dccabc0 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@v3.0.0 + with: + renode-version: '1.13.3' + tests-to-run: 'test/renode/uptime_test.robot' + renode-path: renode-1.13 + 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 + 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 +} 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}