Commit Graph

35 Commits

Author SHA1 Message Date
Jonathan Hui 318b4b0771 [bbr] remove domain prefix support from stack and harness (#13203)
This commit removes all Domain Prefix configuration and management logic
from the OpenThread stack, CLI commands, unit tests, and GRL harness
THCI wrapper.

- Removed public Backbone Router Domain Prefix APIs.
- Removed Domain Prefix flag ('mDp') and 'D' flag parser/formatter
  from core network data types, Spinel, and CLI.
- Cleaned up local Backbone Router and Leader logic to exclude Domain
  Prefix configuration, tracking, and events.
- Updated RoutingManager prefix advertisement (RIO) to exclude
  special handling for Domain Prefix.
- Updated CLI documentation to remove Domain Prefix references.
- Removed domain prefix helper methods from python test certification
  scripts.
- Removed auto-addition of default domain prefix and D flag support
  from GRL harness OpenThread.py.
2026-06-04 19:36:33 -07:00
Thomas ba6a803ed5 [otci] update to support more commands (#11015)
* otci now supports all commands the Thread Test Harness requires
* improve typehinting across the board
* fixes some typos
2025-03-18 22:53:22 -05:00
Handa Wang e19c775ce3 [doc] fix typos in comments (#10664)
Done by `script/code-spell` with some manual fixes.
2024-09-02 14:05:54 -07:00
Zhanglong Xia f64b7cc73c [test] add code spell check and correct wrong spelling (#9066) 2023-05-22 18:04:09 -07:00
Yakun Xu 30b79ccee8 [test] migrate tests to cmake (#8929)
This commit migrate tests not targeting autotool to cmake.

* removed openthread-test-driver
* removed functional tests from autotool based check
* corrected file permission of python scripts
* added --run-directory to specify directory to collect logs and captures
* get test-ot-test-srp-server pass on POSIX platform
2023-05-04 09:59:24 -07:00
Abtin Keshavarzian 71e00eb20f [test] add missing tests in the Makefile.am & update file access mode (#6825)
This commits updates `thread-cert/Makefile.am` adding some existing
tests that were not included in the Makefile when the tests were
added. It also sorts the entries to be in alphabetical order.

This commit also updates the access control mode for all script files
to be executable by all (`chmod 755` or "-rwxr-xr-x").
2021-07-19 14:35:50 -07:00
Simon Lin d5855ab74b [style] bump yapf version to 0.31.0 (#6434) 2021-04-12 07:30:27 -07:00
Jing Ma 69e97581e7 [thread-cert] add case 8.1.6 using pktverify (#5898) 2020-12-14 23:24:43 -08:00
Simon Lin 2daa097bb4 [github-actions] run Thread 1.1 cert tests for 1.2 build (#5547)
This commit runs Thread 1.1 certification tests with packet
verification for 1.2 build because Thread 1.2 certified devices are
supposed to be able to pass Thread 1.1 certification first.

Note: changes to test TOPOLOGY:
- Original: nodes use version=1.1 by default
- Now: nodes use version according to ENV, except explicitly specified
2020-09-24 19:13:30 -07:00
Simon Lin d7343c877b [style] change python yapf column_limit to 119 (#5339) 2020-08-06 21:40:24 -07:00
Rongli Sun b51d9100e6 [dua] support to specify iid for domain unicast address (#4900) 2020-06-09 10:38:13 -07:00
Simon Lin 8dbc0d9605 [test] fix python issues in tests (#4960) 2020-05-19 10:31:50 -07:00
Rongli Sun 60be2be68a [mle] 1.2 MED registers MA (scope > 3) to its parent via AR TLV (#4837) 2020-04-24 10:17:55 -07:00
Yakun Xu 33808ebfba [style] apply google python style guide (#4501)
This commit applies and enforces Google's python style for tests.
2020-02-04 10:27:50 -08:00
Jonathan Hui 43be2b821f [tests] require python3 and drop support for python2 (#4220) 2019-10-04 11:03:58 -07:00
Jonathan Hui f924adcb60 [style] update python style to conform to PEP 8 (#3951)
With the exception of line length set to 119 vs. 79.

Add tests/ and tools/ to py-pretty-check.
2019-07-11 11:45:55 -04:00
Irving-cl a637cdccf4 [tests] add test case Cert_9_2_02 (#3589)
1. Add new test case **Cert_9_2_02**. Since the test case contains 2
topologies, added 2 new files:
- `Cert_9_2_02A_MGMTCommissionerSet.py`,
- `Cert_9_2_02B_MGMTCommissionerSet.py`.

2. Add mesh_cop tlvs parsing. The corresponding file is
`mesh_cop.py`. The mesh_cop tlvs are used in many cases. For example,
`CommissionerSessionId` is used in both the parsing of **Commissioning
Data**(in mle) and the parsing of **CoAP**. Collected all mesh_cop
tlvs refered in Thread into this file with some unused tlvs
unimplemented.

3. Reuse `SubTlvsFactory` in `network_data.py`. `SubTlvsFactory` are
used to choose the corresponding factory of specific tlv and do the
parsing of it. The `NetworkLayerTlvsFactory` in `network_layer.py` had
exactly the same function with it (almost the same code). Moved the
`SubTlvsFactory` into a new file `tlvs_parsing.py` and change the
usage in `network_data.py` and `network_layer.py`. This helps us
remove some redundant code.

4. Some format issues. Remove some trailing spaces.
2019-03-19 21:17:15 -07:00
rongli 11339835e4 [mle] do not echo back ML-EID registered by MTD (#3640)
* do not echo back ML-EID registered by MTD
* update the address registration check in Cert_7_1_01 and Cert_7_1_03
2019-03-04 08:36:27 -08:00
wgtdkp dc947f0152 [tests] support testing commissioning (#3441)
Add support for testing commissioning process, including:

1. Add DTLS, Thread Discovery and commissioning messages(JOIN_FIN.req etc) parsing;
2. Support parsing log from UART response, and construct decrypted messages;
3. Common commands for commissioning related verification;
2019-02-26 15:49:57 -08:00
Irving-cl cf7bc35bbe [tests] add traffic check in test case Cert_7_1_01 (#3405) 2019-02-18 13:41:30 -08:00
wgtdkp 3f6d50a728 [tests] enhance Cert_7_1_03_BorderRouterAsLeader (#3399) 2018-12-29 11:25:39 -08:00
Irving-cl d34f279e5a [tests] enhance Cert_6_1_02_REEDAttach_MED/SED (#3387) 2018-12-29 09:50:12 -08:00
wgtdkp 35eaaab653 [tests] enhance Cert_5_1_06_RemoveRouterId (#3379) 2018-12-24 15:08:47 -08:00
Jonathan Hui 5fb4423a6c [license] update license headers (#3081) 2018-09-18 06:44:58 -10:00
Jonathan Hui a23f778e11 [tests] support python3 (#3068) 2018-09-14 10:58:40 -10:00
Zhanglong Xia edc299a368 [tests] add traffic analysis for Cert_5_5_01 as TestPlan (#2540) 2018-02-08 17:04:04 +00:00
Zhanglong Xia 9d4f367e6d [tests] add traffic analysis for Cert_5_3_10 as TestPlan (#2502) 2018-01-25 17:31:03 +00:00
Zhanglong Xia 836377093e [tests] add traffic analysis for Cert_5_2_01 as TestPlan (#2463)
This commit modifies the method assertSentToNode to confirm if the destination Mac address of
the message is the node's Mac address. Add method check_parent_request, check_parent_response,
check_child_id_request and check_child_id_request to command.py.
2018-01-15 19:36:38 +00:00
hjian2017 d1f577d068 [tests] add traffic analysis for Cert_5_3_07_DuplicateAddress.py (#2298) 2017-11-11 16:24:38 -08:00
hjian2017 4dc9f8edf0 [tests] add traffic for Cert_5_3_06_RouterIdMask.py (#2295) 2017-11-10 08:47:54 -08:00
hjian2017 d8e2c2f73d [tests] add traffic analysis for Cert_5_3_05_RoutingLinkQuality.py (#2289) 2017-11-01 08:53:18 -07:00
hjian2017 58a89be622 [tests] add traffic analysis for Cert_5_3_04_AddressMapCache.py (#2290) 2017-10-30 09:34:53 -07:00
hjian2017 5bc2b8113b [tests] add traffic to 4 test cases: from Cert_5_2_07 to Cert_5_3_03 (#2214)
- Add a method in message.py to verify if receive a ICMPv6 message.
- Add two methods in command.py to verify link request and link accept.
2017-10-18 09:25:22 -07:00
hjian2017 4e3ef18737 [tests] dd traffic analysis for Cert_5_2_06_RouterDowngrade.py (#2192)
Also add a method in command.py to verify a properly formatted address release command message.
2017-09-21 08:40:51 -07:00
hjian2017 d6a3519036 [tests] add traffic analysis for Cert_5_2_05_AddressQuery.py (#2173)
Add a fuction in node.py node_cli.py to node's address.
Add a module command to verify commands.
Spinel-cli.py doesn't request address for dhcp prefix now, so put
Cert_5_2_05_AddressQuery.py in XFAIL on ncp.
2017-09-13 01:44:56 -07:00