mirror of
https://github.com/espressif/openthread.git
synced 2026-07-07 21:00:20 +00:00
ef3122b496
This commit migrates the test_ping_lla_src.py script from thread-cert to the Nexus test framework. The new test_ping_lla_src.cpp implements the same test logic: - Forms a network with a Leader and two Routers. - Verifies that pings using a Link-Local Address (LLA) as the source succeed when sent to a neighbor's Mesh-Local EID (ML-EID). - Verifies that pings using an LLA source fail when sent to a non-neighbor's ML-EID, as LLAs are only valid for single-hop communication. - Verifies that external routes are not used for LLA-sourced packets. To support this migration, the Nexus Core class was enhanced with: - Overloads for SendAndVerifyEchoRequest that allow specifying a source address. - New SendAndVerifyNoEchoResponse methods to verify that no echo response is received (useful for negative test scenarios). Changes: - Added tests/nexus/test_ping_lla_src.cpp - Updated tests/nexus/CMakeLists.txt to include the new test. - Enhanced tests/nexus/platform/nexus_core.hpp/cpp with new helpers. - Removed tests/scripts/thread-cert/test_ping_lla_src.py.
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.