mirror of
https://github.com/espressif/openthread.git
synced 2026-09-06 17:20:09 +00:00
[gh-action] add new case to run unit test with toranj config (#8164)
This commit adds a new case under GitHub `toranj.yml` workflow to build and run all unit test using the toranj OT configuration.
This commit is contained in:
@@ -119,6 +119,27 @@ jobs:
|
||||
name: cov-toranj-cli-${{ matrix.TORANJ_RADIO }}
|
||||
path: tmp/coverage.info
|
||||
|
||||
toranj-unittest:
|
||||
name: toranj-unittest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
- name: Bootstrap
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
run: |
|
||||
sudo dpkg --add-architecture i386
|
||||
sudo apt-get update
|
||||
sudo apt-get --no-install-recommends install -y clang-10 clang++-10 ninja-build python3-setuptools python3-wheel llvm lcov
|
||||
sudo apt-get --no-install-recommends install -y g++-multilib libreadline-dev:i386 libncurses-dev:i386
|
||||
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
|
||||
- name: Build & Run
|
||||
run: |
|
||||
./tests/toranj/build.sh cmake
|
||||
ninja test
|
||||
|
||||
upload-coverage:
|
||||
needs:
|
||||
- toranj-ncp
|
||||
|
||||
Reference in New Issue
Block a user