[github-actions] add test to verify OTNS works (#4847)

This commit is contained in:
Simon Lin
2020-05-20 20:34:19 -07:00
committed by GitHub
parent 99e0666082
commit bdfafb437e
5 changed files with 46 additions and 1 deletions
+28
View File
@@ -62,6 +62,34 @@ jobs:
./bootstrap
make -f examples/Makefile-simulation distcheck
cli-ftd-otns:
runs-on: ubuntu-18.04
env:
CFLAGS: -m32
CXXFLAGS: -m32
LDFLAGS: -m32
COVERAGE: 1
REFERENCE_DEVICE: 1
VIRTUAL_TIME: 1
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: '1.13'
- name: Bootstrap
run: |
sudo apt update
sudo apt --no-install-recommends install -y g++-multilib
./bootstrap
- name: Run OTNS Tests
run: |
git clone https://github.com/openthread/ot-ns.git --depth 1 --branch master ~/otns
export OTDIR=$PWD
cd ~/otns
./script/test py-unittests py-examples
- name: Codecov
uses: codecov/codecov-action@v1
cli-ftd:
runs-on: ubuntu-18.04
env: