mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 23:57:46 +00:00
This commit adds a unit test for `Srp::Server` (which also covers `Srp::Client`) building a foundation for writing tests covering edge cases of SRP server and its interaction with platform "update handler" callback and SRP client. For example, the test validates behavior of SRP sever, when "update handler" accepts, rejects, or ignores (waits for timeout) the received SRP updates. The test also validates that all heap allocated objects (used by SRP sever) are properly freed under different scenarios (validating that there is no heap object leak).
toranj test framework
toranj is a test framework for OpenThread.
It provides two modes:
toranj-cliwhich enables testing of OpenThread using its CLI interface.toranj-ncpwhich enables testing of the combined behavior of OpenThread (in NCP mode), spinel interface, andwpantunddriver on linux.
toranj features:
- It is developed in Python.
- It can be used to simulate multiple nodes forming complex network topologies.
- It allows testing of network interactions between many nodes (IPv6 traffic exchanges).
toranjin NCP mode runswpantundnatively with OpenThread in NCP mode on simulation platform (real-time).toranjin CLI mode runsot-cli-ftdon simulation platform (real-time).toranjtests run as part of GitHub Actions pull request validation in OpenThread andwpantundGitHub projects.
toranj modes
What does "toranj" mean? it's the name of a common symmetric weaving pattern used in Persian carpets.