Commit Graph

183 Commits

Author SHA1 Message Date
Jonathan Hui e87bc42184 [diag] move factory diags into core (#4010)
- Simplifies make files by not having to deal with separate library.
- Combine factory diags source into single source file.
2019-07-23 08:47:16 -07:00
Paweł Wańczyk db8c4c8339 [diag] diagnostic module improvements (#3969)
Added diagnostic statistic clearing.
Improved tx power setting.
Provide RSSI of the last received packet.
2019-07-18 21:24:58 -07:00
Yakun Xu e80f46a993 [posix-sim] use multicast to simulate radio (#3993)
This commit uses multicast to simulate radio transmissions. This
avoids sending a frame multiple times and avoids duplicated packets in
captures.

This implementation uses two separate sockets for tx and rx. The
current implementation of thread-cert requires the sniffer to report
the sender of each packet. This issue can be addressed by stateful
tracking state of each node, but left for future work.
2019-07-16 09:03:42 -07:00
Li Cao b289c94122 [tests] fix mac header ie parsing problem (#3976) 2019-07-16 08:47:38 -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
Li Cao 0a084bbb9a [tests] change string concatenation format in python scripts (#3929) 2019-06-20 09:35:41 -07:00
Kamil Sroka c14cc60962 [windows] remove unsupported platform (#3878) 2019-06-06 11:55:18 -07:00
Jonathan Hui 9cd11a2761 [cli] move joiner to separate source files (#3862) 2019-05-28 18:25:50 -07:00
Duda, Lukasz 8d462f316e [cert] add additional validation for Cert_6_1_06 (#3853)
Also fix link quality configuration.
2019-05-22 10:56:19 -07:00
Duda, Lukasz 7310a34646 [cert] add additional validation for Router_5_1_11 test (#3853) 2019-05-22 10:56:19 -07:00
Yakun Xu 27980027be [test] fix unclosed file (#3810)
This commit fixes python warning "ResourceWarning: unclosed file" when set
pexpect to None.
2019-05-11 09:58:06 -07:00
Jonathan Hui d4063fe9b8 [cli] clean up coaps example implementation (#3795) 2019-05-06 08:48:02 -07:00
Yakun Xu 5f220682cd [tests] add an inspector for travis certification tests (#3700)
This commit adds a debugger to inspect nodes status.
2019-03-22 08:11:39 -07: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 d3791348d1 [tests] enhance Cert_8_1_01_Commissioning (#3457) 2019-02-27 19:16:02 -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
Irving-cl 2ac8890c41 [tests] fix class name for Cert_9_2_04 (#3572) 2019-02-11 10:50:58 -08:00
Yakun Xu e68e86317e [ci] test with time sync and header ie (#3514)
This commit adds the missing test with ie present by enabling TIME_SYNC
feature, so that IE code are covered.
2019-02-01 16:08:43 -08:00
Yakun Xu 612d9de236 [posix] fix diagnostics for missing diag alarm (#3494)
This commit fixes a bug that `alarm.c` misses definition of
OPENTHREAD_ENABLE_DIAG for not including `openthread-core-config.h`.
This commit adds the `openthread-core-config.h` to every platform sources.

Also, this commit enhances the `test_diag.py` to make sure diag can send
packets out.
2019-01-23 08:49:27 -08:00
Irving-cl f5c49e2dd0 [tests] fix mac key id mode parsing (#3448) 2019-01-11 09:02:52 -08:00
Yakun Xu a42efee470 [script] add script to run cert tests (#3397) 2019-01-07 09:03:36 -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
Yakun Xu f2e3555a2a [posix-app] simplify UART on POSIX app (#3384) 2018-12-21 14:35:24 -08:00
Jonathan Hui ce7b65e117 [tests] update 5.2.7 to not require Link Accept from DUT_ROUTER (#3358) 2018-12-13 10:44:30 -08:00
Jonathan Hui 22dd0e0f7d [tests] add python3 support (#3146) 2018-10-12 11:10:18 -07:00
Jonathan Hui 2dea42cea6 [dhcp6] add dhcp6 server support to NCP (#3128) 2018-10-08 15:42:11 -07:00
Jonathan Hui 1ba69deb30 [coaps] add functional tests for psk and x509 (#3096) 2018-09-27 15:15:08 -07: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
Yakun Xu 311b9283c2 [tests] move test_diag into tests/scripts/thread-cert (#3049) 2018-09-11 01:22:42 -10:00
Yakun Xu afb4d2e72a [travis] add code coverage flag (#3037) 2018-09-10 14:40:23 -10:00
Yakun Xu bdffbe5671 [posix-app] enhance virtual time for posix app (#3016) 2018-09-05 18:08:36 -07:00
Yakun Xu 5016af4cde [tests] increase child timeout (#3000)
* fix calculate default poll period

* add default child timeout in config.py

* define FAILED_CHILD_TRANSMISSIONS
2018-08-30 11:58:32 -07:00
Yakun Xu 2e89aa0ad3 [tests] add missing simulator parameter (#2999) 2018-08-28 09:28:14 -07:00
rongli d103797ba0 [tests] fix unstable Cert_5_3_03 (#2998) 2018-08-28 09:26:45 -07:00
Jonathan Hui bf3c081843 [tests] update pycryptodome version to 3.6.6 (#2997) 2018-08-28 09:24:46 -07:00
Yakun Xu af2bfc1cc4 [test] save packets as pcap file in thread-cert tests (#2965) 2018-08-20 09:27:04 -07:00
Yakun Xu 0645a3ae65 [travis] fix cert 5-2-05 address query (#2894) 2018-07-16 11:28:21 -05:00
Yakun Xu 564d57ec07 [travis] fix Cert_6_3_02_NetworkDataUpdate of posix-ncp check (#2892) 2018-07-16 11:26:12 -05:00
Yakun Xu 1b14a36a35 [posix] radio only host side driver (#2690) 2018-06-25 16:32:32 -07:00
Jonathan Hui 76c9d7f65f [tests] fix occasional failures in Cert_5_2_07_REEDSynchronization.py (#2588)
This commit adds delay to allow topology to form and allow the REED to
establish receive-only links.
2018-03-01 13:47:37 +00:00
Jonathan Hui 1c6714712b [tests] fix occasional failures in Cert_6_1_03_RouterAttachConnectivity.py (#2580)
This commit adds necessary delay to allow the router topology to establish
links with neighboring routers.
2018-02-23 17:04:56 +00:00
Jonathan Hui 1a025f8c3e [tests] fix occasional failures in Cert_5_2_01_REEDAttach.py (#2577)
This commit adds delay to allow routes to form between REED1 and Leader.
2018-02-22 16:55:04 +00:00
Jonathan Hui 757f9163f7 [tests] fix occasional failures in Cert_5_1_09_REEDAttachConnectivity.py (#2575)
This commit adds necessary delay to allow the REEDs to establish links with
neighboring routers.
2018-02-22 16:54:25 +00:00
Jonathan Hui e69ed68223 [tests] fix occasional failures in Cert_5_1_08_RouterAttachConnectivity.py (#2574)
This commit adds necessary delay to allow the router topology to establish
links with neighboring routers.
2018-02-22 16:54:07 +00:00
Jonathan Hui 6f5c939eeb [tests] fix occasional failures in Cert_5_3_05_RoutingLinkQuality.py (#2564)
Updating the bidirectional link quality requires a two-way exchange via MLE
Advertisements.  In the worst case, this can take 2.5x the worst-case MLE
Advertisement period.  This commit increases the delay after updating link
quality configurations.
2018-02-20 17:29:50 +00:00