Commit Graph

154 Commits

Author SHA1 Message Date
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
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 459de968e9 [tests] add traffic analysis for Cert_5_3_11 as TestPlan (#2539) 2018-02-07 16:54:36 +00:00
Zhanglong Xia ed05498cdc [tests] add traffic analysis for Cert_5_3_09 as TestPlan (#2522) 2018-02-01 16:52:06 +00:00
Jonathan Hui d426d7cfbd [posix] implement virtual time and update tests to utilize virtual time (#2508)
This commit adds the following features:

- Example posix drivers to support virtual time simulation, allowing tests
  to run faster than real time.

- A python-based simulation driver that coordinates the virtual time
  simulations.  Each alarm event and message transmission across all nodes
  are scheduled in a single discrete time event queue.  As a result, only
  a single node is making forward progress at a time.

- Updated tests to utilize new virtual-time simulator, allowing them to run
  faster than real time.

- To enable virtual time feature, define VIRTUAL_TIME=1 env var and set
  CPPFLAGS=-DOPENTHREAD_POSIX_VIRTUAL_TIME=1.
2018-01-29 19:30:46 +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 2636df1952 [tests] add traffic analysis for Cert_5_3_08 as TestPlan (#2484)
This commit adds the method set_lowpan_context to set the lowpan context of sniffer.
2018-01-22 16:48:00 +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
Zhanglong Xia f9df5c2c09 [tests] delete deprecated test case cert_5_2_02 (#2465)
The test case cert_5_2_02 has been deprecated from the Certification Test Plan V1.1 R64
2018-01-12 17:09:38 +00:00
Zhanglong Xia 442289a104 [tests] fix the unstable test case Cert_5_5_08_SplitRoutersLostLeader (#2457)
The unstable failing lies in when Leader has lower partition id and switches to better partition
formed by original routers.  The default RouterSelectionJitter of Leader is 120s, however the
migration waiting time in script is 60s, thus there are chances that the ping happens when the
Leader just becomes router in the new partition but before link sychronization, causing the ping
packet dropped on ROUTER3.

Two options to resolve this: 1) increase the waiting time for migration to a value > 120s or
2) configure router selection jitter to a small value to relax the waiting time requirements.
2018-01-08 17:29:53 +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
Jonathan Hui 74b3160f9d [meshcop] use IEEE EUI-64 rather than Joiner ID on user input (#2311) 2017-11-07 09:41:46 -08:00
rongli 27a30c7209 [tests] fix the unstable Cert_5_3_03 (#2317) 2017-11-06 08:58:49 -08:00
rongli 04ed60be07 [tests] fix the unstable Cert_5_6_07 (#2316) 2017-11-03 08:49:25 -07: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
Kamil Burzynski 005781d066 [network-data] add Service/Server TLV support (#2256) 2017-10-26 12:27:19 -07:00
hjian2017 a6865bae23 [travis] fix increasing failures on Cert_5_3_03_AddressQuery (#2291) 2017-10-23 22:29:42 -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
Buke Po 6060448140 [tests] change to test mtd apps (#2140)
* [mle] fix mtd child not reattach after partition
2017-09-10 21:14:14 -07:00
hjian2017 2903bfd963 [tests] add traffic analysis for Cert_5_2_04_REEDUpgrade.py (#2162) 2017-09-07 08:39:06 -07:00
hjian2017 ce061e2174 [test] add traffic analysis for Cert_5_2_3_LeaderReject2Hops (#2142)
Also add a method last_mle_message to find the newest mle; Add a method assertAssignedRouterQuantity to confirm if Leader contains the Route64 TLV with 32 assigned router IDs.
2017-08-30 08:41:31 -07:00
Jonathan Hui 850713f09b [tests] increase timeout for MLE Child Update Request. (#2146)
This commit increases the time in waiting for a child to reattach.  This
reflects the recent change to add retransmissions to the MLE Child Update
Request message.
2017-08-28 20:16:52 -07:00
hjian2017 97a2fc4cc3 [test] Add traffic analysis for Cert_6_1_01_RouterAttach (#2119)
Also fix the method assertMleMessageContainsOptionalTlv() in message.py to
output appropriate log.
2017-08-22 18:35:10 -07:00
Buke Po 886f30f3a9 [tests] fix typo in Cert_9_2_12_Announce.py (#2072) 2017-08-06 22:27:21 -07:00
Buke Po d4944ff373 [tests] add missing message type (#2053) 2017-08-02 21:49:55 -07:00
Buke Po 06b523f3bd [tests] separate large tests to lower peak memory (#1989)
After Travis updated its environment, Travis fails distcheck due to insufficient memory. Although OpenThread itself doesn't use much memory, the address sanitizer does.

This commit separates large scale test cases to lower peak memory usage when running certification tests on Travis.
2017-07-13 07:27:10 -07:00