mirror of
https://github.com/espressif/openthread.git
synced 2026-07-07 21:00:20 +00:00
0cf450af44
This commit migrates the SRP register services with different lease test from the thread-cert Python framework to the Nexus test framework. The new Nexus test (test_srp_register_services_diff_lease.cpp) reproduces the functionality of the original Python test: - Registration of multiple services with different lease/key-lease intervals. - Verification of per-service lease values on the SRP server. - Ensuring key-lease is always at least as long as the lease. - Validating lease renewal and expiry behaviors. - Testing dynamic changes to default client lease and TTL. Migrating to Nexus allows for faster and more scalable network simulations within a single process.
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.