mirror of
https://github.com/espressif/openthread.git
synced 2026-07-10 06:10:21 +00:00
cea7e325b0
This commit migrates the `test_ipv6_source_selection.py` cert test to the Nexus simulation framework. To support this migration, the Nexus framework was extended to allow verifying the local (source) address on which an ICMP Echo Reply is received. This is achieved by adding an overload to `SendAndVerifyEchoRequest` that accepts an expected source address. The new Nexus test `test_ipv6_source_selection.cpp` covers the following scenarios: - RLOC source for RLOC destination - ML-EID source for ALOC destination - ML-EID source for ML-EID destination - Link-local source for Link-local destination - ML-EID source for Realm-local multicast destination (ff03::1) - GUA source for GUA destination - GUA source for external address (via default route) The original Python test script is removed as its functionality is now fully covered by the new Nexus test.
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.