Commit Graph

431 Commits

Author SHA1 Message Date
Jing Ma eb3f6fd2f2 [thread-cert] refactor case 6.5.2 using pktverify (#5886) 2020-12-09 23:32:16 -08:00
Simon Lin 9380ffd07c [scripts] test multicast routing across Thread and Backbone (#5852)
- This commit fixes some issue in multicast forwarding from Thread to
  Backbone.
- It also adds a test to verify that multicast forwarding works across
  Thread and Backbone.
  - Test script tests/scripts/thread-cert/mcast6.py is added for Host
    to subscribe to a multicast address

The ping reply can not reach ROUTER1 since DUA feature is not
complete.
2020-12-09 08:49:07 -08:00
Jing Ma fdc8a97594 [thread-cert] refactor case 8.1.1 using pktverify (#5883) 2020-12-09 07:34:07 -08:00
Jing Ma 17d813eadd [thread-cert] add case 7.1.8 BorderRouterAsFED using pktverify (#5869) 2020-12-08 10:39:17 -08:00
Jing Ma 60344b6c57 [thread-cert] refactor case 7.1.5 using pktverfiy (#5882) 2020-12-07 22:43:16 -08:00
Jing Ma f804879b8a [thread-cert] add case 7.1.6 BorderRouterAsLeader using pktverify (#5868) 2020-12-07 20:17:26 -08:00
Yakun Xu 7a7390b9ee [test] separate code coverage data files (#5920)
This commit ensures each node create its own profile data, so that they
can be merged after tests to produce more accurate profile data.

This commit also prints the coverage data of message.cpp after all
profile data are merged.
2020-12-07 13:23:26 -08:00
Jing Ma dc5c25799d [thread-cert] refactor case 7.1.3 using pktverify (#5859) 2020-12-07 10:09:31 -08:00
Jing Ma c6c079baaf [thread-cert] fix case 5.3.6 issue #5909 (#5912) 2020-12-07 10:06:05 -08:00
Jiacheng Guo f5a7dc2b9a [radio] send max power table to radio (#5867)
This change sends the max power table to the radio so that the radio
chip can manage the transmit power by self.
2020-12-04 08:08:52 -08:00
Yakun Xu a8b5b07849 [diag] check state before entering diagnostic mode (#5908)
This commit restrict diagnostic mode only when network stack is not up,
which prevents some issues caused by switching to diag mode after the
device was attached. For example, timers may not be triggered properly
after returnning from diagnostic mode.
2020-12-02 23:16:08 -08:00
Simon Lin 6088200bf0 [thread-cert] fix 5.3.3 random fail by small chance (#5892)
5.3.3 pktverify fail by small chance when the ping reply is forwarded
from Router3 -> Leader -> Router2 instead of Router3 -> Router2. In
such case, the direct wpan.dst16 is not Router2's RLOC16, but Leader's
RLOC16.

This commit change 5.3.3 to check for both 6lowpan mesh dst16 and
wpan.dst16 against Router2's RLOC16.
2020-12-02 21:26:31 -08:00
Jing Ma 8f2e1138e8 [thread-cert] refactor case 5.7.1 using pktverify (#5834) 2020-12-02 12:03:35 -08:00
Jing Ma 54b7e2b951 [thread-cert] refactor case 5.5.1 using pktverify (#5827) 2020-12-02 12:02:22 -08:00
Jing Ma 11930730c6 [thread-cert] refactor case 5.3.11 using pktverify (#5825) 2020-12-02 12:02:09 -08:00
Jing Ma 141208b9d3 [thread-cert] refactor case 5.3.9 using pktverify (#5823) 2020-12-02 12:01:58 -08:00
Jing Ma d218dfcb35 [thread-cert] refactor case 7.1.1 using pktverify (#5855) 2020-12-02 08:31:12 -08:00
Jing Ma 5abb781691 [thread-cert] add case 6.1.4 REEDAttachConnectivity using pktverify (#5850) 2020-12-02 08:30:23 -08:00
Jing Ma 8630547d10 [thread-cert] refactor case 5.3.6 using pktverify (#5813) 2020-12-01 21:37:19 -08:00
Zhanglong Xia 0d14e85439 [mle] let the command partitionid return the current partition id (#5872)
If user doesn't set the Partition Id using the command
'leaderpartitionid xxx', the current cli command 'leaderpartitionid'
always return 0. This commit renames the command 'leaderpartitionid'
to partitionid and let the command partitionid returns the current
leader Partition Id and add command partitionid preferred to set or
get preferred Partition Id.
2020-11-30 21:15:18 -08:00
Moandor c7192ba798 [string] add UTF-8 validation (#5810) 2020-11-30 08:33:05 -08:00
Jing Ma 4d23b98aef [thread-cert] refactor case 6.1.1 using pktverify (#5838) 2020-11-29 20:12:55 -08:00
Yakun Xu c7165c9bf0 [test] fix missing attribute _message_factory (#5879) 2020-11-29 19:58:42 -08:00
Jing Ma d932d55b58 [thread-cert] refactor case 6.4.1 using pktverify (#5843) 2020-11-27 10:39:34 -08:00
Jing Ma b120158975 [thread-cert] refactor case 6.1.6 using pktverfiy (#5845) 2020-11-27 09:05:07 -08:00
Jing Ma cb7d8ff5ca [thread-cert] refactor case 6.1.2 using pktverify (#5844) 2020-11-27 09:03:49 -08:00
Jing Ma e1d1e0aad8 [thread-cert] refactor case 6.4.2 using pktverify (#5842) 2020-11-27 09:02:44 -08:00
Moandor 9d9646afaa [spinel] RCP restoration on failures (#5694)
This commit implements the RCP restoration on failure feature. It
keeps the host process running while resetting and initializing the
RCP.
2020-11-26 08:57:13 -08:00
Jing Ma 723ee23794 [thread-cert] refactor case 5.3.10 using pktverify (#5824) 2020-11-26 08:37:49 -08:00
Jing Ma 4f5a6b11b1 [thread-cert] refactor case 5.3.8 using pktverify (#5816) 2020-11-26 08:33:49 -08:00
Jing Ma 5f2d8fcca2 [thread-cert] refactor case 5.3.7 using pktverify (#5815) 2020-11-26 08:32:51 -08:00
Yakun Xu 9164355b8c [ip6] enable multicast loop (#5848)
This commit enables the feature IPV6_MULTICAST_LOOP into OpenThread IPv6
stack. The default-enabled feature allows a node receives a multicast
message sent by its own.
2020-11-26 08:29:03 -08:00
Jing Ma 92de94cde4 [thread-cert] refactor case 6.2.1 using pktverify (#5846) 2020-11-24 08:23:04 -08:00
Jintao Lin 91d2c29fd8 [low-power] fix CSL scheduler to avoid packets stuck in queue (#5833)
This commit:
- Fixes the issue in CSL scheduler dealing with multiple SSEDs.
- Fixes the issue when CSL tx attempts reach max, CSL transmission to
  this child cannot resume.
- Reset CSL sync status after child mode change to RxOnWhenIdle.
- Adds MLE version, CSL synchronization status and queued message
  count to child table.
2020-11-23 22:59:21 -08:00
Yakun Xu d33c2f12af [test] add rcp-ncp node type (#5847)
This commit enables `script/test` to run cert tests on NCP nodes of
POSIX platform.
2020-11-23 17:02:11 -08:00
Moandor acbd38a5f1 [posix] add radio URL parameter cca-threshold (#5832) 2020-11-20 16:01:57 -08:00
Jing Ma 5bd9aba799 [thread-cert] refactor case 5.2.7 using pktverify (#5786) 2020-11-17 23:01:28 -08:00
Rongli Sun e73882255f [tests] fix tun-realm-local-multicast.exp (#5821)
This commit introduces short wait time per new router
to allow link/route establishment.
2020-11-16 22:32:40 -08:00
Jing Ma 1484847c55 [thread-cert] refactor case 5.2.6 using pktverify (#5777) 2020-11-16 22:29:25 -08:00
Jing Ma 4e696af655 [thread-cert] refactor case 5.2.4 using pktverify (#5790) 2020-11-16 22:28:59 -08:00
Jing Ma 1fc75aee9c [thread-cert] refactor case 5.2.5 using pktverify (#5798) 2020-11-16 22:28:21 -08:00
Jing Ma 580d649e97 [thread-cert] refactor case 5.3.3 using pktverify (#5809) 2020-11-16 18:10:14 -08:00
Jing Ma 503f72dfc1 [thread-cert] refactor case 5.3.4 using pktverify (#5811) 2020-11-16 17:18:23 -08:00
Jing Ma 1fc0a7be77 [thread-cert] refactor case 5.3.2 using pktverify (#5803) 2020-11-16 17:17:48 -08:00
Jing Ma 515b2bb067 [thread-cert] refactor case 5.3.5 using pktverify (#5814) 2020-11-16 08:57:36 -08:00
Jing Ma 8e705b0ada [thread-cert] refactor case 5.3.1 using pktverify (#5800) 2020-11-16 08:53:26 -08:00
Moandor 5bc7e7d6a0 [posix] add radio URL parameter fem-lnagain (#5788) 2020-11-09 10:43:46 -08:00
Yakun Xu 6fda0786ed [posix] forkpty-arg value as a single argument (#5772) 2020-11-08 23:31:11 -08:00
Rongli Sun 59b4a51f99 [tests] fix tun-realm-local-multicast.exp (#5776)
Given the linear topology in this test, this commit
introduces wait time so that the Thread Links are
synced well before ping happens.
2020-11-07 19:46:21 -08:00
Jing Ma ebb2fd53ef [thread-cert] refactor case 5.2.3 using pktverify (#5775) 2020-11-05 21:11:05 -08:00