Commit Graph

153 Commits

Author SHA1 Message Date
Marco Grella
211d410d86 USE_SUBGHZ_BOARD fix in Makefile.compile-test 2015-07-24 18:19:46 +02:00
Marco Grella
d87f6f67e2 Added new stm32nucleo-spirit1 platform 2015-07-24 16:23:13 +02:00
Nicolas Tsiftes
8b2af09ee1 Merge pull request #1062 from simonduq/travis-rpl-fix-logs
Fix log messages of Travis tests in 12-rpl
2015-07-03 15:13:01 +02:00
George Oikonomou
b4ec0c7c1d Remove doxygen explicit links to non-existing symbols
Parts of the stm32w108 doxygen comments have explicit links to symbols that do not exist anywhere in our source base, let alone be documented. This is likely to be caused by a partial import of manufacturer libraries in the Contiki source tree.

These links were previously not generating warnings in the doxygen log because we were not defining `DOXYGEN_SHOULD_SKIP_THIS` and they were thus being skipped altogether by the doxygen pre-processor. Defining `DOXYGEN_SHOULD_SKIP_THIS` causes those doxygen comments to get processed and to thus generate warnings.

This commit removes explicit links to non-existent symbols and updates `doxyerrors.cnt` accordingly.
2015-06-20 16:10:25 +01:00
Benoît Thébaudeau
2eef189a0a doxygen: Fix some warnings
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
2015-06-20 03:22:31 +02:00
Moritz 'Morty' Strübe
c4f8f0acfb Add regression-test for tools 2015-05-17 12:26:08 +02:00
Brad Campbell
6eaada0c3f Delete old CoAP implementation
It seems that this implementation of CoAP in Contiki is no longer
maintained in favor of the `er-coap` implementation. This commit
removes the code to prevent confusion and further bit-rot.
2015-05-14 17:20:46 -04:00
Simon Duquennoy
700c22490c Modified RPL temporary root loss test: now waiting a while after the root is back and checking that all messages after its return are correctly routed 2015-05-10 23:11:31 +02:00
Simon Duquennoy
043f6a39c1 Fix log messages of Travis tests in 12-rpl 2015-05-10 19:57:22 +02:00
Simon Duquennoy
1ac5d85042 Enable NA in examples that need it 2015-05-10 19:56:38 +02:00
Nicolas Tsiftes
05d2d843da Merge pull request #1053 from simonduq/rpl-probing
RPL probing
2015-05-10 17:22:10 +02:00
Nicolas Tsiftes
44af0fa66b Merge pull request #1003 from adamdunkels/pr/http-socket-dns64-tcp-socket
New HTTP socket, DNS64, IP64 Cooja tests
2015-05-10 17:14:31 +02:00
Adam Dunkels
e712d25d4c Allow four more warnings 2015-05-10 10:51:13 +02:00
Adam Dunkels
578d7c090c Added missing Makefile for the regression tests 2015-05-10 10:51:12 +02:00
Adam Dunkels
ffc25082a3 Travis test that sets up an HTTP socket and requests www.contiki-os.org 2015-05-10 10:51:12 +02:00
Simon Duquennoy
d1ec313081 Add regression test for probing 2015-05-10 09:47:17 +02:00
George Oikonomou
598fd770b8 Merge pull request #960 from g-oikonomou/travis-arm-aapcs-tests
Test cc2538dk with the recommended toolchain
2015-05-09 22:31:18 +01:00
Adam Dunkels
d5f06c91bb Disable the websever6 compile test for the exp5438 platform 2015-04-01 21:33:27 +02:00
George Oikonomou
52eb7a3b57 Move cc2538dk travis tests to the arm-aapcs job
It makes sense to test cc2538dk with the toolchain recommended in the README (GNU Tools for ARM Embedded Processors) rather than the one which was being used two years ago (Sourcery G++ Lite)
2015-02-28 15:20:47 +00:00
Jonas Olsson
8bf35f9e4a Add cc26xx travis tests 2015-02-25 13:16:27 +01:00
George Oikonomou
76d8956a02 Adjust warning count in the doxygen travis job 2015-02-22 16:39:49 +00:00
Jonas Olsson
303f4a41fc Add Travis test for the MQTT demo 2015-02-17 16:02:55 +01:00
George Oikonomou
65c1b667a5 Adjust doxygen travis test error count 2015-02-16 10:26:11 +01:00
George Oikonomou
6473fd7e8a Adjust doxygen error count 2015-02-15 21:55:16 +01:00
Simon Duquennoy
722b3258d1 Cleanup of the Contiki network layer configuration. Now using CONTIKI_WITH_IPV6, CONTIKI_WITH_IPV4, and CONTIKI_WITH_RIME in makefiles, and UIP_CONF_IPV6, UIP_CONF_IPV4, UIP_CONF_RIME in c code. Now only the stacks that are used are compiled (via makefile MODULES). Make IPv6 the default network stack. 2014-12-01 20:13:09 +01:00
Nicolas Tsiftes
2a29214683 Merge pull request #698 from sieben/scan_build
Adding static analysis through the scan-build command
2014-11-28 19:52:55 +01:00
Moritz 'Morty' Strübe
c9df5a6822 Adjust number of errors to travis environment 2014-11-19 16:23:19 +01:00
Moritz 'Morty' Strübe
a3c03edb07 Add doxygen regression testing 2014-11-19 16:23:18 +01:00
Moritz 'Morty' Strübe
1692169138 Output sha1sums of files used for simulation on fail
This helps reproducing results from the CI
2014-11-13 09:10:53 +01:00
Adam Dunkels
d1bb7be7d4 Need to have seed number included in filename, else the faillog files won't be reported at end of test 2014-11-11 11:17:02 +01:00
Rémy Léone
a069f8f73d Adding a scan-build command
scan-build http://clang-analyzer.llvm.org/scan-build.html is a clang
based tool designed to provide static analysis over C code files.
2014-10-21 17:22:06 +02:00
kkrentz
0579e304e4 llsec: Renamed ccm to ccm_star & Renamed llsec regression test 2014-10-16 09:21:56 -07:00
Moritz 'Morty' Strübe
74b741bad2 Support running multiple random seeds in case one fails 2014-10-09 09:43:07 +02:00
Adam Dunkels
24ba4a4dc3 Added a simple regression test that uses the tests in examples/llsec/ccm-tests 2014-08-05 05:07:06 -07:00
Fredrik Österlind
ed7e09ed5b Merge pull request #755 from sieben/SkyByteRadio
SkyByteRadio was replaced by Msp802154Radio
2014-07-24 09:15:45 +02:00
Jim Paris
efe3f4dabc Add modern ARM compiler and ev-aducrf101mkxz to travis tests 2014-07-23 16:21:54 -04:00
Rémy Léone
911f3aa07c SkyByteRadio was replaced by Msp802154Radio 2014-07-23 15:42:59 +02:00
Jim Paris
b5f37e856c Rename travis "arm" BUILD_ARCH to "arm-apcs".
These platforms are built with an old ARM compiler that supports the
deprecated APCS standard.
2014-07-08 01:48:28 -04:00
Nicolas Tsiftes
3829860c3c Merge pull request #620 from adamdunkels/push/socket-api
New TCP and UDP socket APIs
2014-04-09 22:12:59 +02:00
Adam Dunkels
367eed96f4 Add a compile test for the tcp-socket example 2014-04-09 22:01:18 +02:00
George Oikonomou
cc41efaadd Update regression sims to org.contikios 2014-03-05 20:31:19 +00:00
Adam Dunkels
38a0c867f2 Don't wait for a specific packet (which may not arrive) - instead, wait for any packet to arrive. 2014-03-05 20:31:18 +00:00
Adam Dunkels
925f98728f Simple regression test for the IPv6 multicast code with 32 nodes (31 hops) in a line configuration 2014-03-05 20:31:18 +00:00
Adam Dunkels
a05d68a0fa Simple regression test for the IPv6 multicast code with 12 nodes (11 hops) in a line configuration 2014-03-05 20:31:18 +00:00
George Oikonomou
55f1f01a98 Multicast compile regression tests 2014-03-05 20:31:17 +00:00
Adam Dunkels
45265249fc Changed the name of the rimeaddr module to linkaddr 2014-01-29 20:12:24 +01:00
Adam Dunkels
b36fba76bd Updated with the new modularized uip paths 2014-01-26 23:20:44 +01:00
Adam Dunkels
5f3fe7f7c7 Updated include paths for the moved files under net/ 2014-01-26 23:20:23 +01:00
Ian Martin
174d4dd80c Adds support for ADF7023 sub-GHz radio from Analog Devices and RL78 series MCU from Renesas.
This example platform for this port is the EVAL-ADF7XXXMB4Z w/ radio
daughter cards:

    http://www.analog.com/en/evaluation/eval-adf7023/eb.html

See the platform readme for usage and platform information:

    https://github.com/contiki-os/contiki/tree/master/platform/eval-adf7xxxmb4z/readme.md

All files provided by Analog Devices for this port are released under
the same license as Contiki and copyright Analog Devices Inc. per
agreement between Redwire Consulting, LLC and Analog Devices Inc. (SOW 08122013)
2014-01-04 18:56:51 -05:00
Sébastien Dawans
d772baa37d Travis test for slip-radio 2013-12-09 21:06:37 +01:00
George Oikonomou
d8d15fec67 Remove Sensinode tests from travis 2013-12-03 14:13:40 +00:00
Adam Dunkels
b01469907b Don't compile webserver-ipv6 for the sky platform, as it is a little too small. Use the larger exp5438 instead 2013-12-02 23:09:25 +01:00
Adam Dunkels
0fd503af42 Removed the experimental checkpointing code 2013-11-28 14:09:17 +01:00
Adam Dunkels
0d04db2b03 Merge pull request #428 from g-oikonomou/config-sanity
Remove unnecessary stuff from various Makefiles (Config Sanity, Pt 1)
2013-11-26 15:05:08 -08:00
Adam Dunkels
d05a9e2e39 Disabling the fragmentation test for the sky, as it is a little too small to reliably run this firmware 2013-11-24 16:24:13 +01:00
Adam Dunkels
52a0b4594f Removed the old esb regression tests 2013-11-22 16:33:46 +01:00
Adam Dunkels
6265219775 Merge pull request #453 from adamdunkels/push/travis-fix
Fix broken travis
2013-11-22 02:36:09 -08:00
Adam Dunkels
b5f4588e56 Loaded the simulation files in Cooja and saved them again to avoid them having any non-backward-compatible constructs in them. 2013-11-20 23:03:50 +01:00
Oliver Schmidt
1f8fbbd161 Reduce travis overhead for testing 6502 ports.
- build cc65 libraries only for target supported by Contiki
- instead of building all examples for all 6502 targets build
  - all examples for one target (c64)
  - the most demanding client example (webbrowser) for all 6502 targets
  - the most demanding server examples (webserver) for all 6502 targets
2013-11-20 21:17:43 +01:00
Fredrik Osterlind
b5c94910ac Renamed Java packages to match our contiki-os.org domain. Note that this commit does not affect external dependencies
like /tools/mspsim.

This is a very simple modification that affects a very large number of files in Contiki: Cooja,
/platform/cooja, Collect-view, Coffe-manager, and Cooja simulation files (.csc).

I've gone through Contiki to update all references I could find. Nevertheless, this commit will likely
break external dependencies, like saved Cooja simulation files.
2013-11-20 16:43:27 +01:00
George Oikonomou
58ef2342c2 Stop setting WITH_UIP6=1 in example Makefiles
It achieves exactly nothing other than generate confusion
2013-11-20 14:52:32 +00:00
George Oikonomou
820e50f3ed Add 6502 tests to travis 2013-11-20 13:31:32 +00:00
Moritz 'Morty' Strübe
dcbd7936ad Move simulation execution from Makefile to Bash script; show Progress
Additional code is needed to show the progress. Otherwise Travis is
likely to become unhappy and terminates the job. This was no fun within
the Makefile. Moving the execution to a Bash script allows better
maintainability.
In case of an error the error all logs will be printed when using a CI.
2013-11-11 08:18:35 +01:00
Moritz 'Morty' Strübe
d81abb33fd Remove broken test from regression testing 2013-11-11 08:18:35 +01:00
Moritz 'Morty' Strübe
08047d1a27 Tolerate loosing one packet in 01-sky-shell-collect.csc 2013-11-11 08:18:25 +01:00
Moritz 'Morty' Strübe
c89e827d6c Make regressiontest reproducable 2013-11-06 17:41:59 +01:00
Adam Dunkels
2af2478166 A set of RPL regression tests that the RPL network is able to survive the replacement of one node. The different tests test different placements of the moving node, with a varying number of hops from the root 2013-08-19 17:48:33 +02:00
Adam Dunkels
4cfefe80e4 A RPL regression test that tests that the network survives a random rearrangement 2013-08-19 17:48:33 +02:00
Adam Dunkels
241a4e0100 A RPL regression test that tests that a RPL network survives a temporary root loss 2013-08-19 17:48:33 +02:00
Adam Dunkels
6d386ffc8d A RPL regression test that tests DAO routes going towards the sink and then down 2013-08-19 17:48:32 +02:00
Adam Dunkels
b1e6890b32 Re-enabled the large network RPL test 2013-08-19 17:48:32 +02:00
Nicolas Tsiftes
fe0a0423cb Merge pull request #330 from adamdunkels/push/faster-collect-lossy
Faster collect-lossy travis test
2013-08-11 07:14:28 -07:00
Adam Dunkels
6e7beb93cb Made it easier to configure how many packets that should be received. Reduced the total amount of packets from 10 to 8 to make the test complete faster. 2013-08-11 15:12:18 +02:00
Adam Dunkels
b6770b9de8 Added regression tests that test IPv6 fragmentation 2013-08-11 14:27:21 +02:00
George Oikonomou
3446cee85b Break travis compile tests into smaller builds
* The previous 01-compile test has been renamed to compile-base. It
  now only tests {msp430, avr, native}-based platforms
* New test builds for arm-based and 8051-based ports (one build per arch)
* Only install arm-none-eabi, sdcc and srecord for the builds which need
  them. This will somewhat speed up all other tests
* Test er-rest-example and webserver-ipv6 for the cc2538
* An erroneous comment was fixed and another comment was somewhat
  clarified
2013-08-07 15:00:13 +01:00
George Oikonomou
952607d1b5 Add CC2538 travis compile tests 2013-08-06 21:17:58 +01:00
stefano pascali
36e7db42de Some little refactor 2013-07-19 16:15:55 +02:00
stefano pascali
b43ce0f677 Travis-ci tweaks, added CPUREV to 01 regression test, needed by mbxxx platform 2013-07-12 17:07:04 +02:00
Adam Dunkels
4ac7512895 Temporarily disable large RPL network test until we get link-layer ACKs in Cooja 2013-06-20 10:12:54 +02:00
Nicolas Tsiftes
4b80ad9c89 Merge pull request #239 from darconeous/pull-requests/avr-ravenusb-rpl
avr-ravenusb/cdc_task: Fix compile issues.
2013-05-20 04:42:03 -07:00
Robert Quattlebaum
3e0666265d avr-ravenusb/cdc_task: Fix compile issues.
A lot more changes are in the pipeline, but compiling is a good start.
2013-05-19 11:31:01 -07:00
Mariano Alvira
f90736e7ed Travis: disable 02-sky-ipv6-udp test b/c it's still flaky even with
the longer test time.
2013-05-19 13:14:56 -04:00
Mariano Alvira
e67c07468d Travis: sky-ipv6-udp test needs more time to complete 2013-05-18 18:14:14 -04:00
Mariano Alvira
d662279bb4 Travis: disable flaky or failing tests
* disable hello-world of cooja motes b/c it is flaky
* mark 04-sky-shell-download.csc test as failing. Not sure what
the problem is.
2013-05-18 18:14:14 -04:00
Mariano Alvira
585dd3fdbd Travis: The test criteria for this test was too strict --- one or two
packets get lost. Change the test to ensure that data comes back from
every node and we get at least 75 non-duplicate reports.
2013-05-18 18:14:14 -04:00
Mariano Alvira
d396832d48 Travis: Run java with -Xshared:on. The previous jvm had shared on by default and cooja
requires this.
2013-05-18 18:14:10 -04:00
Mariano Alvira
1ef6112ac7 Travis: correct the name for the ipv6-apps test (travis.yml had the correct name
--- this is why the test was failing)
2013-05-18 18:11:59 -04:00
Mariano Alvira
3ea8cce948 Travis: Print out logs so that debugging travis is possible. 2013-05-18 18:11:45 -04:00
Robert Quattlebaum
535e90343c Merge pull request #144 from darconeous/pull-requests/settings-for-all-targets
core/lib/settings: Generalized settings manager to work on any platform
2013-05-18 12:03:09 -07:00
Robert Quattlebaum
b8c0f2de6c cpu/native: Add file-backed simulated EEPROM to native cpu.
This patch removes a defunct EEPROM implementation from the native
platform and provides a new EEPROM implementation for the native cpu.
The previous implementation appears to be vestigal.

This is useful for testing code which uses the EEPROM without running
the code on the actual hardware.

By default the code will create a new temporary file as the EEPROM
backing, reinitializing each time. If you would like to preserve the
EEPROM contents or specify a specific EEPROM file to use, you can set the
`CONTIKI_EEPROM` environment variable to the name of the EEPROM file you
wish to use instead. If it already exists, its contents will be used.
If it does not already exist, it will be created and initialized by
filling it with `0xFF`---just like a real EEPROM.

A new example is also included, which was used to verify the correctness
of the implementation. It can easily be used to verify the EEPROM
implementations of other targets.
2013-05-18 10:29:41 -07:00
Robert Quattlebaum
28a1e40ebd core/lib/settings: Generalized Settings Manager to work on any platform
This commit moves the Settings Manager from the AVR codebase
into the Contiki core library. Any platform that implements
the Contiki EEPROM API can now use the Settings Manager's
key-value store for storing their persistent configuration info.

The Settings Manager is a EEPROM-based key-value store. Keys
are 16-bit integers and values may be up to 16,383 bytes long.
It is intended to be used to store configuration-related information,
like network settings, radio channels, etc.

 * Robust data format which requires no initialization.
 * Supports multiple values with the same key.
 * Data can be appended without erasing EEPROM.
 * Max size of settings data can be easily increased in the future,
   as long as it doesn't overlap with application data.

The format was inspired by the [OLPC manufacturing data format][].

Since the beginning of EEPROM often contains application-specific
information, the best place to store settings is at the end of EEPROM
(the "top"). Because we are starting at the end of EEPROM, it makes
sense to grow the list of key-value pairs downward, toward the start of
EEPROM.

Each key-value pair is stored in memory in the following format:

Order    | Size     | Name         | Description
--------:|---------:|--------------|-------------------------------
       0 |        2 | `key`        | 16-bit key
      -2 |        1 | `size_check` | One's-complement of next byte
      -3 |   1 or 2 | `size`       | The size of `value`, in bytes
-4 or -5 | variable | `value`      | Value associated with `key`

The end of the key-value pairs is denoted by the first invalid entry.
An invalid entry has any of the following attributes:

 * The `size_check` byte doesn't match the one's compliment of the
   `size` byte (or `size_low` byte).
 * The key has a value of 0x0000.

[OLPC manufacturing data format]: http://wiki.laptop.org/go/Manufacturing_data
2013-03-20 11:57:13 -07:00
Adam Dunkels
e9b1374383 Updated paths to relative paths to make it easier to move tests to new directories 2013-03-18 09:07:33 +01:00
Adam Dunkels
49bf7626f1 Split the collect test into collect and collect-lossy to make each individual
travis build complete faster.

Also changed the armgcc download link to a github location.
2013-03-18 09:07:33 +01:00
Robert Quattlebaum
f145c17039 core/net/resolv: IPv6 and mDNS ("Bonjour") support. Major refactor.
This patch updates the DNS resolver to support IPv6 and introduces an
improved API for looking up DNS entries. This patch also adds optional
support for mDNS lookups and responses to the DNS resolver.

Here is a quick summary of the changes:

 * Added support for IPv6 lookups.
 * DNS queries now honor record expiration.
 * Added support for mDNS, compatible with "Bonjour".
 * Implemented a new lookup api, `resolv_lookup2()`, which provides
   more information about the state of the record(error, expired,
   looking-up, etc.).

About mDNS/Bonjour Support
--------------------------

This patch adds basic support for mDNS/Bonjour, which allows you to
refer to the name of a device instead of its IP address. This is
incredibly convenient for IPv6 addresses because they tend to be very
long and difficult to remember. It is especially important for
link-local IPv6 addresses, since not all programs support the '%'
notation for indicating a network interface (required on systems with
more than one network interface to disambiguate).

In other words, instead of typing in this:

 * `http://[fe80::58dc:d7ed:a644:628f%en1]/`

You can type this instead:

 * `http://contiki.local/`

Huge improvement, no?

The convenience extends beyond that: this mechanism can be used for
nodes to talk to each other based on their human-readable names instead
of their IPv6 addresses. So instead of a switch on
`aaaa::58dc:d7ed:a644:628f` triggering an actuator on
`aaaa::ed26:19c1:4bd2:f95b`, `light-switch.local` can trigger the
actuator on `living-room-lights.local`.

What you need to do to be able to look up `.local` names on your
workstation depends on a few factors:

 * Your machine needs to be able to send and receive multicast packets
   to and from the LoWPAN. You can do this easily with the Jackdaw
   firmware on an RZUSBStick. If you have a border router, you will need
   it to bridge the mDNS multicast packets across the border.

 * If you are using a Mac, you win. All Apple devices support mDNS
   lookups.

 * If you are using Windows, you can install Apple's Bonjour for Windows
   package. (This may be already installed on your machine if you have
   installed iTunes) After you install this you can easily do `.local`
   lookups.

 * If you are using a Unix machine, you can install Avahi.

The default hostname is set to `contiki.local.`. You can change the
hostname programmatically by calling `resolv_set_hostname()`. You can
change the default hostname by changing `CONTIKI_CONF_DEFAULT_HOSTNAME`.

You may disable mDNS support by setting `RESOLV_CONF_SUPPORTS_MDNS` to
`0`.

---------------------------------

core/net/resolv: `resolv_lookup2()` -> `resolv_lookup()`

Note that this patch should fix several `resolv_lookup()` bugs
that already existed. There were many cases where `resolv_lookup()`
was being called and the IP address ignored, but later code
assumed that the IP address had been fetched... ANYWAY, those
should be fixed now.

---------------------------------

examples/udp-ipv6: Updated client to use MDNS to lookup the server.

Also updated the Cooja regression test simulation.
2013-03-10 11:40:08 -07:00
George Oikonomou
02b90c9c63 Added rtests for 8051 ports 2012-12-16 22:21:44 +00:00
Mariano Alvira
911bdd1b77 add a few important econotag compile tests 2012-12-11 12:58:49 -05:00
Mariano Alvira
9f297cdd4e Fix up compile test so that you can do nested subdirectories 2012-12-11 12:58:11 -05:00
Adam Dunkels
0c55037ee8 Regression tests for RPL, Rime trickle, and Rime mesh routing protocols
The RPL tests test up and down routing, root reboots, 28-hour tests, and tests with more nodes than fit the routing tables
2012-12-10 01:50:17 +01:00
Adam Dunkels
15a249fb4a Make IPv6/RPL collect test faster by reducing the number of received packets 2012-12-10 01:50:12 +01:00
Adam Dunkels
ccc4b9e37f Make regression tests deterministic by having a constant random seed 2012-12-10 01:50:06 +01:00