Lines Matching +full:thread +full:- +full:cert
1 # `toranj-cli`
3 `toranj-cli` is a test framework for OpenThread using its CLI interface.
7 - It is developed in Python.
8 - It can be used to simulate multiple nodes forming complex network topologies.
9 - It allows testing of network interactions between many nodes.
10 - `toranj` in CLI mode runs `ot-cli-ftd` on simulation platform (real-time).
21 -- OpenThread Source Directory: /Users/abtink/GitHub/openthread
22 -- OpenThread CMake build type: Debug
23 -- Package Name: OPENTHREAD
28 …-cli` tests are included in `tests/toranj/cli` folder. Each test-case has its own script following…
34 $ python3 test-001-get-set.py
44 ## `toranj-cli` Components
46 `cli` python module defines the `toranj-cli` test components.
50 `cli.Node()` class creates a Thread node instance. It creates a sub-process to run `ot-cli-ftd` and…
86 # Form a Thread network with all the given parameters.
108 #### Example (simple 3-node topology)
110 …cript below shows how to create a 3-node network topology with `node1` and `node2` being routers, …
139 …ill save its corresponding logs. By default the logs are saved in a file `ot-logs<node_index>.log`.
141 …o run all test-cases, if any test fails, to help with debugging of the issue, the last 30 lines of…
143 A `cli.Node()` instance can also provide additional logs and info as the test-cases are run (verbos…
148 $ Node1.__init__() cmd: `../../../examples/apps/cli/ot-cli-ftd --time-speed=1 1`
151 $ Node1.cli('state') -> disabled
158 $ Node1.cli('thread start')
159 $ Node1.cli('state') -> detached
160 $ Node1.cli('state') -> detached
162 $ Node1.cli('state') -> leader
165 …abled when env variable is set to any of `1`, `True`, `Yes`, `Y`, `On` (case-insensitive)), otherw…
167 ## `toranj-cli` and `thread-cert` test framework
169 …-cli` uses CLI commands to test the behavior of OpenThread with simulation platform. `thread-cert`…
171 - `toranj` test cases are useful to validate the real-time (non event-based) simulation platform im…
172 - `toranj` test cases can be used in situations where the platform layer may not support event-base…
173 - `toranj` frameworks allows for more interactive testing (e.g., read–eval–print loop (REPL) model …
174 - `thread-cert` test cases can run quickly (due to virtual time emulation), but the test script its…