mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 05:40:27 +00:00
e88998abc3
This commit migrates the SRP auto-start test from the Python-based thread-cert test suite to the Nexus C++ test framework. The new Nexus test replicates the logic of the original Python test: - Forms a network with four router nodes. - Verifies SRP client auto-start upon server discovery in netdata. - Tests selection priority between multiple unicast and anycast SRP servers. - Verifies selection based on anycast sequence numbers. - Tests selection of specific unicast addresses published in Service Data. - Confirms automatic failover and client stop/restart. The original Python test file is removed as it is now covered by the Nexus test suite.
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.