[posix] remove NCP app (#6428)

The POSIX NCP app(ot-ncp) is simulating of NCP with an RCP. With the
latest otbr-agent, this is not needed any more. It is only used in CI
tests. This commit removes the app to save maintenance efforts.
This commit is contained in:
Yakun Xu
2021-04-16 07:42:14 -07:00
committed by GitHub
parent 49adc5cec5
commit f81c0b50f0
20 changed files with 48 additions and 561 deletions
+9 -52
View File
@@ -121,13 +121,13 @@ jobs:
- uses: actions/upload-artifact@v2
if: ${{ failure() && env.CRASHED_TUN == '1' }}
with:
name: core-expect-posix
name: core-expect-linux
path: |
./ot-core-dump/*
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: syslog-expect-posix
name: syslog-expect-linux
path: /var/log/syslog
- name: Generate Coverage
run: |
@@ -137,7 +137,7 @@ jobs:
name: cov-expects-linux-2
path: tmp/coverage.info
posix-cli:
thread-cert:
runs-on: ubuntu-20.04
env:
COVERAGE: 1
@@ -167,59 +167,17 @@ jobs:
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: posix-cli-thread-cert
name: thread-cert
path: build/posix/tests/scripts/thread-cert
- name: Generate Coverage
run: |
./script/test generate_coverage gcc
- uses: actions/upload-artifact@v2
with:
name: cov-posix-cli
name: cov-thread-cert
path: tmp/coverage.info
posix-ncp:
runs-on: ubuntu-20.04
env:
COVERAGE: 1
NODE_TYPE: ncp-sim
PYTHONUNBUFFERED: 1
READLINE: readline
REFERENCE_DEVICE: 1
THREAD_VERSION: 1.1
VIRTUAL_TIME: 1
VIRTUAL_TIME_UART: 1
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Bootstrap
run: |
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
sudo apt-get --no-install-recommends install -y libreadline6-dev python3-setuptools python3-wheel lcov
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
sudo python3 -m pip install git+https://github.com/openthread/pyspinel
- name: Build
run: |
./bootstrap
make -f examples/Makefile-simulation
make -f src/posix/Makefile-posix
- name: Run
run: |
VERBOSE=1 OT_NCP_PATH="$PWD/output/posix/bin/ot-ncp" RADIO_DEVICE="$PWD/output/simulation/bin/ot-rcp" make -f src/posix/Makefile-posix check
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: posix-ncp-thread-cert
path: build/posix/tests/scripts/thread-cert
- name: Generate Coverage
run: |
./script/test generate_coverage gcc
- uses: actions/upload-artifact@v2
with:
name: cov-posix-ncp
path: tmp/coverage.info
posix-ncp-rcp-migrate:
ncp-rcp-migrate:
runs-on: ubuntu-20.04
env:
COVERAGE: 1
@@ -243,7 +201,7 @@ jobs:
./script/test generate_coverage gcc
- uses: actions/upload-artifact@v2
with:
name: cov-posix-ncp-rcp-migrate
name: cov-ncp-rcp-migrate
path: tmp/coverage.info
pty-linux:
@@ -309,10 +267,9 @@ jobs:
upload-coverage:
needs:
- expects-linux
- posix-cli
- posix-ncp
- posix-ncp-rcp-migrate
- ncp-rcp-migrate
- pty-linux
- thread-cert
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
+10 -146
View File
@@ -40,11 +40,15 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "github.ref != 'refs/heads/main'"
toranj-ncp:
toranj:
name: toranj-${{ matrix.TORANJ_RADIO }}
runs-on: ubuntu-18.04
strategy:
matrix:
TORANJ_RADIO: ['15.4', 'trel', 'multi']
env:
COVERAGE: 1
TORANJ_RADIO : 15.4
TORANJ_RADIO : ${{ matrix.TORANJ_RADIO }}
steps:
- uses: actions/checkout@v2
with:
@@ -72,158 +76,18 @@ jobs:
run: |
top_builddir=$(pwd)/build/toranj ./tests/toranj/start.sh
- name: Generate Coverage
if: "matrix.TORANJ_RADIO != 'multi'"
run: |
./script/test generate_coverage gcc
- uses: actions/upload-artifact@v2
if: "matrix.TORANJ_RADIO != 'multi'"
with:
name: cov-toranj-ncp
name: cov-toranj-${{ matrix.TORANJ_RADIO }}
path: tmp/coverage.info
toranj-rcp:
runs-on: ubuntu-18.04
env:
COVERAGE: 1
TORANJ_POSIX_RCP_MODEL: 1
TORANJ_RADIO : 15.4
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Bootstrap
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
sudo apt-get --no-install-recommends install -y dbus libdbus-1-dev
sudo apt-get --no-install-recommends install -y autoconf-archive
sudo apt-get --no-install-recommends install -y bsdtar
sudo apt-get --no-install-recommends install -y libtool
sudo apt-get --no-install-recommends install -y libglib2.0-dev
sudo apt-get --no-install-recommends install -y libboost-dev libboost-signals-dev
sudo apt-get --no-install-recommends install -y lcov
script/git-tool clone --depth=1 --branch=master https://github.com/openthread/wpantund.git
cd wpantund
./bootstrap.sh
./configure
sudo make -j2
sudo make install
- name: Build & Run
run: |
top_builddir=$(pwd)/build/toranj ./tests/toranj/start.sh
- name: Generate Coverage
run: |
./script/test generate_coverage gcc
- uses: actions/upload-artifact@v2
with:
name: cov-toranj-rcp
path: tmp/coverage.info
toranj-ncp-trel:
runs-on: ubuntu-18.04
env:
COVERAGE: 1
TORANJ_RADIO : trel
steps:
- uses: actions/checkout@v2
- name: Bootstrap
run: |
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
sudo apt-get --no-install-recommends install -y dbus libdbus-1-dev
sudo apt-get --no-install-recommends install -y autoconf-archive
sudo apt-get --no-install-recommends install -y bsdtar
sudo apt-get --no-install-recommends install -y libtool
sudo apt-get --no-install-recommends install -y libglib2.0-dev
sudo apt-get --no-install-recommends install -y libboost-dev libboost-signals-dev
sudo apt-get --no-install-recommends install -y lcov
git clone --depth=1 --branch=master https://github.com/openthread/wpantund.git
cd wpantund
./bootstrap.sh
./configure
sudo make -j2
sudo make install
- name: Build & Run
run: |
top_builddir=$(pwd)/build/toranj ./tests/toranj/start.sh
- name: Generate Coverage
run: |
./script/test generate_coverage gcc
- uses: actions/upload-artifact@v2
with:
name: cov-toranj-ncp-trel
path: tmp/coverage.info
toranj-rcp-trel:
runs-on: ubuntu-18.04
env:
COVERAGE: 1
TORANJ_POSIX_RCP_MODEL: 1
TORANJ_RADIO : trel
steps:
- uses: actions/checkout@v2
- name: Bootstrap
run: |
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
sudo apt-get --no-install-recommends install -y dbus libdbus-1-dev
sudo apt-get --no-install-recommends install -y autoconf-archive
sudo apt-get --no-install-recommends install -y bsdtar
sudo apt-get --no-install-recommends install -y libtool
sudo apt-get --no-install-recommends install -y libglib2.0-dev
sudo apt-get --no-install-recommends install -y libboost-dev libboost-signals-dev
sudo apt-get --no-install-recommends install -y lcov
git clone --depth=1 --branch=master https://github.com/openthread/wpantund.git
cd wpantund
./bootstrap.sh
./configure
sudo make -j2
sudo make install
- name: Build & Run
run: |
top_builddir=$(pwd)/build/toranj ./tests/toranj/start.sh
- name: Generate Coverage
run: |
./script/test generate_coverage gcc
- uses: actions/upload-artifact@v2
with:
name: cov-toranj-rcp-trel
path: tmp/coverage.info
toranj-ncp-multi:
runs-on: ubuntu-18.04
env:
COVERAGE: 1
TORANJ_RADIO : multi
steps:
- uses: actions/checkout@v2
- name: Bootstrap
run: |
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
sudo apt-get --no-install-recommends install -y dbus libdbus-1-dev
sudo apt-get --no-install-recommends install -y autoconf-archive
sudo apt-get --no-install-recommends install -y bsdtar
sudo apt-get --no-install-recommends install -y libtool
sudo apt-get --no-install-recommends install -y libglib2.0-dev
sudo apt-get --no-install-recommends install -y libboost-dev libboost-signals-dev
sudo apt-get --no-install-recommends install -y lcov
git clone --depth=1 --branch=master https://github.com/openthread/wpantund.git
cd wpantund
./bootstrap.sh
./configure
sudo make -j2
sudo make install
- name: Build & Run
run: |
top_builddir=$(pwd)/build/toranj ./tests/toranj/start.sh
upload-coverage:
needs:
- toranj-ncp
- toranj-rcp
- toranj-ncp-trel
- toranj-rcp-trel
- toranj
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2