mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 13:50:28 +00:00
5340cfabc3
This commit migrates the router reattach test from the thread-cert Python framework to the Nexus C++ framework. The new Nexus test 'test_router_reattach.cpp' replicates the original test scenario: - A full 32-node router network is formed. - Router upgrade/downgrade thresholds are set to 32. - A router is reset and verified to re-attach and reclaim its router role. - The test ensures the router does not downgrade after the router selection jitter interval. The original Python script 'tests/scripts/thread-cert/ test_router_reattach.py' is removed as its functionality is now fully covered by Nexus. Nexus tests provide faster and more scalable network simulations within a single process, improving CI efficiency.
OpenThread Certification Tests
Inspector
Inspect nodes status by the following modification:
- Insert the inspector to where you want to inspect.
import debug
debug.Inspector(self).inspect()
- Run the test and it will stop at the line above and prompt
#.
./script/test clean build cert tests/scripts/thread-cert/Cert_5_1_01_RouterAttach.py
- Inspect
#
# 1
> state
leader
> exit
# 2
> panid
face
> exit
# exit
CLI reference
# mode
This is selection mode. You may select the node to inspect here.
list- list available nodes.exit- end inspecting, continue running test case.- <number> - select the node with id <number>. This will result in entering
>mode.
> mode
This is node mode. You may run OpenThread CLI here.
exit- go back to#mode.