Commit Graph

32 Commits

Author SHA1 Message Date
Jonathan Hui 7d81a632ae Insert MPL Option in host-generated realm-local mcast messages. (#874) 2016-10-26 13:05:35 -07:00
Jonathan Hui ffaade05c6 Update multicast tests to expect multiple ping replies. (#864) 2016-10-24 09:13:38 -07:00
Jonathan Hui 4538dafd3d Add Thread Certification 9.2.4 to automated test. (#823) 2016-10-17 17:26:58 -07:00
Jonathan Hui 117ecaf579 Add Thread Certification 8.2.2 to automated test. (#824) 2016-10-17 10:18:19 -07:00
Jonathan Hui 6878c63faf Add Thread Certification 8.2.1 to automated test. (#822) 2016-10-17 09:18:26 -07:00
Jonathan Hui c28042ce97 Add Thread Certification 9.2.17 to automated test. (#786) 2016-10-12 20:41:11 -07:00
Jonathan Hui 0bafb5a08f Add Thread Certification 9.2.18 to automated test. (#785) 2016-10-12 11:28:29 -07:00
Jonathan Hui 249774eccf Add Thread Certification 5.2.6 to automated test. (#784) 2016-10-11 09:07:51 -07:00
Jonathan Hui a15a1ba687 Add Thread Certification 9.2.16 to automated test. (#770) 2016-10-10 10:42:21 -07:00
Jonathan Hui 7b0280bbde Add Thread Certification 9.2.15 to automated test. (#769) 2016-10-10 09:46:07 -07:00
Jonathan Hui 176325b5a6 Add Thread Certification 9.2.11 to automated test. (#764) 2016-10-07 15:50:09 -07:00
Jonathan Hui 506bf83c1d Add Thread Certification 9.2.10 to automated test. (#761) 2016-10-07 14:14:17 -07:00
Jonathan Hui eb2277ab60 Add Thread Certification 9.2.9 to automated test. (#756) 2016-10-06 12:29:08 -07:00
Jonathan Hui c24b7cfaed Add Thread Certification 9.2.7 to automated test. (#750) 2016-10-05 10:02:08 -07:00
Jonathan Hui 671964c2d4 MLE Announce. (#736) 2016-10-04 10:26:30 -07:00
Jonathan Hui 8d6923fe8b Add initial thread-cert tests for commissioning. (#680) 2016-09-23 15:45:07 -07:00
Martin Turon a853ffc784 spinel-cli: Add ipaddr removal to prefix change handler. (#669)
Fixes Cert_5_6_06 and Cert_5_6_08.  Fixes #517.
Collapse fcs16 into Hdlc class.
Add and correct subcommand completion handlers.
Move prefix handler to separate worker thread and task queue.
Channelize blocking spinel property change handlers to allow parallel
reuse across multiple threads.
2016-09-22 22:58:37 -07:00
Martin Turon ad0efaf72d spinel-cli: Add timestamp to ping. (#658)
Now calculates real round-trip times for ping6 reply:

    12 bytes from fdde:ad00:beef::3388:cc1e:5e44:6150: icmp_seq=0 hlim=63 time=891ms

Increased pexpect timeout for ncp-sim to 4 sec to handle ping responses >2 sec.
Makes Cert_5_3_10_AddressQuery pass reliably, even on low memory Travis VMs.
Added initial stub for commissioner command.
Add env variable control of ncp-sim DEBUG output.
2016-09-21 15:30:36 -07:00
Jonathan Hui 568c69efd3 Add Cert_5_3_10_AddressQuery.py to XFAIL list. (#650) 2016-09-21 09:45:36 -07:00
Martin Turon 1ec2e76ecd Add asynchronous handling of prefix changes -- add slaac ipaddr on each prefix. NCP now passes 13 more thread-cert tests. (#641) 2016-09-20 18:12:57 -07:00
Jonathan Hui 03fea69c1b Energy scan. (#606) 2016-09-16 16:04:01 -07:00
Jonathan Hui 44350178ad Change copyright to The OpenThread Authors. (#583)
- Add a top-level file named AUTHORS which identifies the copyright
holders of the project.
2016-09-13 15:57:11 -07:00
Jonathan Hui c44c20ef66 Implement PAN ID Query/Conflict. (#556) 2016-09-13 09:18:05 -07:00
Martin Turon bb84b9a1f2 spinel-cli: Stability improvements to ping (#561)
* Improve ping reliability by making it fully async. Eliminate 5_1_07 from XFAIL list.
* Some non-core changes: readd missing StreamSocket class, improve handling of  command.
2016-09-12 09:50:25 -07:00
Xiao Ma 5fbadbf445 Update default "CACHE_ENTRIES" and "MAX_CHILDREN" to support required minimum children. (#519)
* Update default "CACHE_ENTRIES" and "MAX_CHILDREN" to support required minimum children.
* Update Cert_5_1_07_MaxChildCount.py due to maximum children number change.
2016-09-05 20:19:07 -07:00
Martin Turon 73060ae8e1 spinel-cli: Add NCP build to TravisCI (#364)
* ncp: Added spinel-cli and initial travis CI test suite integration.

This PR adds a command line tool, named spinel-cli, that converts ot-cli shell commands (as documented in https://github.com/openthread/openthread/blob/master/src/cli/README.md) to spinel NCP commands (as documented in https://github.com/openthread/openthread/blob/master/src/ncp/PROTOCOL.md).

Also added is a patch to node.py that provides a way to run the existing continuous integration certification test suite against an NCP build rather than a CLI build (by prefacing the command to start the test with the environment variable setting NODE_TYPE=ncp-sim):

cd tests/scripts/thread-cert
NODE_TYPE=ncp-sim top_builddir=../../.. python Cert_5_1_02_ChildAddressTimeout.py
The power of this tool is three fold:

1) As a path to add testing of the NCP in simulation to continuous integration
2) As a path to automated testing of testbeds running NCP firmware on hardware
3) As a simple debugging tool for NCP builds of OpenThread

openthread$ cd tools/spinel-cli/
spinel-cli$ ./spinel-cli.py
Opening pipe to ../../examples/apps/ncp/ot-ncp 1
spinel-cli > help

Available commands (type help <name> for more information):
============================================================
channel            extaddr       mode              route
child              extpanid      netdataregister   router
childtimeout       h             networkidtimeout  routerupgradethreshold
clear              help          networkname       scan
contextreusedelay  history       panid             state
counter            ifconfig      ping              thread
debug              ipaddr        prefix            v
debug-term         keysequence   q                 version
eidcache           leaderdata    quit              whitelist
enabled            leaderweight  releaserouterid
exit               masterkey     rloc16

spinel-cli > version
OPENTHREAD/gd4d4e9d-dirty; Aug 11 2016 14:40:44
Done
spinel-cli > thread start
Done
spinel-cli > state
leader
Done
spinel-cli >

The tool provides three ways to connect to an NCP image:

1) pipe to stdin/stdout of a command line tool (default): -p ./ot-ncp
2) serial connection to a hardware device: -u /dev/ttyUSB0
3) socket connection to the port of a helper tool such as ncp-spi-driver: -s 1234

spinel-cli$ ./spinel-cli.py --help
Options:
  -h, --help            show this help message and exit
  -u UART, --uart=UART
  -p PIPE, --pipe=PIPE
  -s SOCKET, --socket=SOCKET
  -n NODEID, --nodeid=NODEID
  -q, --quiet
  -v, --verbose
2016-09-02 15:32:17 -07:00
Marcin K Szczodrak 309685f9f0 enable parallel builds (#303)
* add automate test-driver for openthread

*  enable parallel builds and tests

* enable adding flags to compiler

* Fix typo
2016-08-01 08:48:23 -07:00
Jonathan Hui 0dc1a6a321 Cover all python test scripts by partitioning across different build instances. (#233) 2016-07-04 10:12:06 -07:00
Robert Quattlebaum 059763bfcc travis: Update travis to do a make distcheck instead of just make check (#46)
* travis: Do a `make distcheck` instead of just `make check`

Doing a `make distcheck` instead of just a `make check` ensures that
the build system is sane and that the results from `make dist` have
everything needed.

* build-system: Fixes for `make distcheck`

This commit fixes the `distcheck` target by addressing the following
issues:

 *  Repaired ability to perform builds when the build directory is not
    the source directory.
 *  Addressed an issue with the tarball name that occurs the very
    first time `make` is run.
2016-05-19 13:34:40 -07:00
Jonathan Hui c8908cf687 Fix 'make dist'. (#40)
* Include header files for distribution.
* Include tests scripts for distribution.
* Include docs for distribution.
2016-05-16 21:41:38 -07:00
Marcin K Szczodrak 99870fae01 adjust license text width (#22) 2016-05-12 22:39:11 -07:00
Jonathan Hui 4f9945c533 Initial commit 2016-05-10 22:49:53 -07:00