mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 11:17:46 +00:00
[test] add external commissioner tests (#5187)
This adds tests of ot-commissioner as part of GitHub Action workflows.
This commit is contained in:
@@ -203,6 +203,35 @@ jobs:
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
|
||||
external-commissioner:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Bootstrap
|
||||
run: |
|
||||
sudo apt-get --no-install-recommends install -y ninja-build
|
||||
git clone https://github.com/openthread/ot-commissioner.git /tmp/ot-commissioner --depth 1 --branch master
|
||||
- name: Build
|
||||
run: |
|
||||
cd /tmp/ot-commissioner
|
||||
script/bootstrap.sh
|
||||
cmake -GNinja \
|
||||
-DCMAKE_CXX_STANDARD=11 \
|
||||
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr/local \
|
||||
-S . -B build
|
||||
cmake --build build
|
||||
sudo cmake --install build
|
||||
- name: Run
|
||||
run: |
|
||||
export OT_COMM_OPENTHREAD="$(pwd)"
|
||||
cd /tmp/ot-commissioner/tests/integration
|
||||
./bootstrap.sh
|
||||
./run_tests.sh
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
|
||||
multiple-instance:
|
||||
runs-on: ubuntu-18.04
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user