1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

2606 Commits

Author SHA1 Message Date
josar
82d126158e test/xtimer_hang: use xtimer_periodic_wakeup
When sleeping in the main function with xtimer_sleep not every percentage
will be printed as the sleep duration and the processing time added do
not result in full percentage values.

Using xtimer_periodic_wakeup ensures that every integer percentage is printed.
2018-11-15 12:14:09 +01:00
Gaëtan Harter
147390c209
tests/ccm: add test for auth_data_len upper value
Maximal supported value is 0xFEFF.
2018-11-12 16:38:45 +01:00
Cenk Gündoğan
df9e25353b test: trickle: fix condition for success
The current test implementation wrongly assumes that the diff between
two fired events (e1, e2) must always increase. That is not true, as
event e1 may reside on the upper part of [I/2, I) and e2 on the lower
part of [I, 2*I).

This commit fixes the test to look at the actual time that was randonmly
chosen from both intervals (t1, t2). Given that the intervals are
doubled, t1 must always be smaller than t2.
2018-11-05 16:58:54 +01:00
Francisco Acosta
dd3ca90e8a examples, tests: add memory insufficient arduino boards
The unification of a bigger stack for the atmega platforms
makes some boards to not have enough memory to provide
the big stack plus the application code.

It is possible though, to override the stack size to a
smaller amount if running the test is necessary.
2018-11-02 17:57:13 +01:00
MichelRottleuthner
1606e16879
Merge pull request #10174 from Josar/pr/xtimer_hang/debug_pins
test/xtimer_hang: DEBUG_PINS
2018-11-01 10:20:06 +01:00
josar
162d17c5a2 test/xtimer_hang: DEBUG_PINS
Add the option to use debug pins to investigate timing issues.
2018-10-31 12:41:43 +01:00
Cenk Gündoğan
f30d0a68d8
Merge pull request #10305 from jia200x/pr/fix_my9221_test
tests/driver_my9221: fix for loop indexes
2018-10-31 11:59:14 +01:00
Jose Alamos
b543f2dc67 tests/driver_my9221: fix for loop indexes 2018-10-31 10:59:51 +01:00
Emmanuel Baccelli
365d82ed09
Merge pull request #9829 from OTAkeys/pr/uuid_string
uuid: add uuid_to_string() and uuid_from_string()
2018-10-30 14:30:47 +01:00
Joakim Nohlgård
21efb20184
Merge pull request #9725 from miri64/tests/enh/pkg_cmsis-dsp-testscript
tests/pkg_cmsis-dsp: provide testscript
2018-10-27 02:39:32 +02:00
Martine Lenders
d6ea335bfc unittests: add tests for gnrc_pktbuf_reverse_snips() 2018-10-25 23:11:33 +02:00
Martine Lenders
959e4491fa
Merge pull request #9702 from maribu/phydat_fit
sys/phydat: New phydat_fit API
2018-10-25 19:16:54 +02:00
Martine Lenders
466bc341a6
Merge pull request #10231 from miri64/gnrc_ipv6_ext/enh/move-rh-to-gnrc
gnrc_ipv6_ext: move ipv6_ext_rh (partly) to GNRC
2018-10-25 19:15:22 +02:00
danpetry
99ae495226
Merge pull request #10011 from leandrolanzieri/pr/drivers/ds18
drivers/ds18: Add Maxim Integrated 1-Wire temperature sensor driver
2018-10-25 17:26:10 +02:00
Gaëtan Harter
c5deac4865
Merge pull request #10023 from miri64/gnrc_netif/fix/no-addr-but-addr-len
gnrc_netif: Fix l2addr_len > 0, but no l2addr edge-case
2018-10-25 14:31:32 +02:00
Martine Lenders
390ddfba7c tests/unittests: adapt for value name changes 2018-10-25 14:02:46 +02:00
Gaëtan Harter
40187e81fa
Merge pull request #10184 from bergzand/pr/tests/tweetnacl_move
tests/tweetnacl: Move from unittests to regular test
2018-10-25 12:27:16 +02:00
José Alamos
059ef5c437
Merge pull request #10201 from MrKevinWeiss/pr/tests/fixlibfixmath
tests/libfixmath: Add delay at start of test
2018-10-25 11:06:37 +02:00
MrKevinWeiss
646c6d67c0 tests/libfixmath: Add delay at start of test
The delay allows allows time for the `make term` to connect and start flushing the output buffer before the buffer overflows.
2018-10-24 17:27:30 +02:00
137e4825ed
tests/tweetnacl: Move from unittests to regular test
Stack size is changed from 4 times the default + printf to 5 times the
default stack size. Only on the lpc2387 this reduces the resulting stack
space. the test is not rerun for the lpc2387 and is untested.

Tests are disable for the Arduino. While they "might" work, it takes
around 8 minutes to complete the tests.
2018-10-24 16:56:32 +02:00
Frits Kuipers
8b8790c18f drivers/ds18: Add Maxim Integrated ds18 driver
tests/driver_ds18: Add test application for DS18B20 sensor.

tests/driver_ds18: Add whitelist of boards
2018-10-24 16:02:05 +02:00
José Alamos
ea219c3eba
Merge pull request #10217 from cladmi/pr/tests/heatshrink/ci
tests/pkg_heatshrink: re-enable CI test
2018-10-24 13:56:16 +02:00
Marian Buschsieweke
fe46cae00d
sys/phydat: New phydat_fit API
The current phydat_fit implementation the following limitations:
- The API is way more complicated to use than needed
- It doesn't perform any rounding
- It uses `long` in a place where actual width (or better range) of the type
  is pretty important.

This commit addresses these limitations and uses lookup-tables to reduce the
number of divisions required.

Before this commit code using it looked like this:
``` C
long values[] = { 100000, 2000000, 30000000 };
phydat_t dat = { .scale = 42, .unit = UNIT_V };
phydat_fit(&dat, values[0], 0, phydat_fit(&dat, values[1], 1, phydat_fit(&dat, values[2], 2, 0)));
```

Now it can be used like this:
``` C
int32_t values[] = { 100000, 2000000, 30000000 };
phydat_t dat = { .unit = UNIT_V, .scale = 42 };
phydat_fit(&dat, values, 3);
```
2018-10-24 13:05:51 +02:00
Gaëtan Harter
f160a75aa5
Merge pull request #10209 from bergzand/pr/pkg/hacl_move
tests/hacl: Move from unittests to regular test
2018-10-23 18:32:27 +02:00
Martine Lenders
3068fb8aed
Merge pull request #9034 from cladmi/pr/tests/pkg_micro-ecc/blacklist/wsn430
tests/pkg_micro-ecc: blacklist wsn430 boards
2018-10-23 18:17:44 +02:00
052fea24aa
tests/hacl: Move from unittests to regular test 2018-10-23 17:46:13 +02:00
danpetry
6fcb9ad552 tests/tsl4531x: Add tests to cover API changes.
The changes to the test correspond to the change in the API and design
of the driver, as described in the previous commit and in tsl4531x.h.
2018-10-23 17:26:28 +02:00
Juan Carrano
b99bd67efd tests/driver_tsl4531x: Add tests for illuminance sensor.
Missing README.
2018-10-23 17:26:28 +02:00
Gaëtan Harter
4157a07152
tests/external_module_dir: test for EXTERNAL_MODULE_DIRS
It demonstrates:

 * Adding a module with source code
 * Setting a header include directory
 * Adding dependences, which are evaluated before other modules dependencies

If the application compiles, everything is ok.
2018-10-23 13:22:25 +02:00
Gaëtan Harter
69225e6add
tests/pkg_micro-ecc: blacklist 16bits boards
Test breaks on wsn430 boards with the node rebooting.

This must come becauso `micro-ecc` does not have 16b support.
I also blacklisted the other 16bits boards.

 * https://github.com/kmackay/micro-ecc/issues/96
2018-10-22 14:28:44 +02:00
cladmi
d23fea6043
tests/pkg_heatshrink: re-enable CI test
When moved out of `unittests` running test on CI was not re-enabled.
2018-10-21 19:31:25 +02:00
aedc5260d8
Merge pull request #9848 from ZetaR60/RIOT_eepreg2
sys/eepreg: EEPROM registration support (version 2)
2018-10-21 11:20:53 +02:00
Matthew Blue
a99361e0b6 tests/eepreg: Initial test support 2018-10-20 09:30:41 -04:00
smlng
24032ac9ae tests/heatshrink: move from unittests to regular test
This moves tests for the heatshrink package from unittests to a regular
test, which should help to decrease binary size of unittests.
2018-10-19 15:18:16 +02:00
Martine Lenders
ed1eb8ed9c
Merge pull request #10183 from bergzand/pr/tests/libcose_move
tests/libcose: Move from unittests to regular test
2018-10-18 15:16:20 +02:00
José Alamos
372a729e21
Merge pull request #10070 from OTAkeys/pr/bump_littlefs_version
pkg/littlefs: bump version to v1.6.2
2018-10-18 14:35:55 +02:00
PeterKietzmann
d3e34b4334 sys/ecc: add repetition code 2018-10-18 13:37:21 +02:00
03e2eca813 tests/libcose: Move from unittests to regular test 2018-10-18 11:43:18 +02:00
Martine Lenders
179f17ca42
Merge pull request #9989 from PeterKietzmann/pr_add_golay
sys/ecc: add golay(24,12) half rate code
2018-10-18 09:31:17 +02:00
PeterKietzmann
9768995a0b sys/ecc: add golay(24,12) ECC 2018-10-18 09:05:28 +02:00
910b088094
Merge pull request #10172 from miri64/tests/fix/lwip_sock_array_address
tests/lwip_sock_{i,ud}p: correctly get array address
2018-10-17 20:36:33 +02:00
8b2d295ab6
Merge pull request #10107 from miri64/tests/fix/lwip-sock-stack
tests/lwip_sock_*: Stop main thread from overflowing
2018-10-17 20:26:31 +02:00
Martine Lenders
bf8ebbac81 tests/lwip_sock_{i,ud}p: correctly get array address
We want the address of the start of the array.
2018-10-17 11:43:11 +02:00
917548f37c
Merge pull request #10170 from fedepell/arduino_tests_1
tests/arduino: add automatic test for arduino module
2018-10-17 09:15:20 +02:00
Martine Lenders
a291facbd7 tests/lwip_sock_tcp: make non-static end-point consts static 2018-10-16 19:09:24 +02:00
Martine Lenders
f6964c1065 tests/lwip_sock_tcp: make IPv4 address byteorder static 2018-10-16 19:09:23 +02:00
Martine Lenders
4934df3112 tests/lwip_sock_ip: make non-static consts static 2018-10-16 19:09:23 +02:00
Martine Lenders
73ec2ac652 tests/lwip_sock_ip: make IPv4 address byteorder static 2018-10-16 19:09:23 +02:00
Martine Lenders
6789a0b246 tests/lwip_sock_udp: make non-static consts static 2018-10-16 19:09:23 +02:00
Martine Lenders
a5370ff6df tests/lwip_sock_udp: make IPv4 address byteorder static 2018-10-16 19:09:23 +02:00