mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 23:57:46 +00:00
[test] add fake platform (#10594)
This commit adds a fake platform for unit/component tests. This platform uses virtual time so it should be able to run fast. Note that the fake platforms leverage C++ virtual methods to allow mocking. This commit verifies setting active dataset triggers the active dataset change event by the notifier.
This commit is contained in:
@@ -79,11 +79,11 @@ jobs:
|
||||
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
|
||||
sudo apt-get --no-install-recommends install -y ninja-build lcov
|
||||
- name: Build Simulation
|
||||
run: ./script/cmake-build simulation -DOT_BORDER_ROUTING=ON -DOT_NCP_INFRA_IF=ON
|
||||
run: ./script/cmake-build simulation -DOT_BUILD_GTEST=ON -DOT_BORDER_ROUTING=ON -DOT_NCP_INFRA_IF=ON
|
||||
- name: Test Simulation
|
||||
run: cd build/simulation && ninja test
|
||||
- name: Build Multipan Simulation
|
||||
run: ./script/cmake-build simulation -DOT_MULTIPAN_TEST=ON
|
||||
run: ./script/cmake-build simulation -DOT_BUILD_GTEST=ON -DOT_MULTIPAN_TEST=ON
|
||||
- name: Test Multipan Simulation
|
||||
run: cd build/simulation && ninja test
|
||||
- name: Build POSIX
|
||||
|
||||
Reference in New Issue
Block a user