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

2221 Commits

Author SHA1 Message Date
Francisco Acosta
d634b7b1d9 tests: add more hardware in the loop tests 2018-05-15 19:54:51 +02:00
Gaëtan Harter
64bc06f2b6
tests/unittests: add empty list clist_foreach case
Add clist_foreach empty list test case which should:

* not call `func`
* return `NULL`
2018-05-15 16:49:59 +02:00
56c2b6a0e3
Merge pull request #9017 from kaspar030/clist_add_foreach_return
core/clist: make clist_foreach() return break-causing node
2018-05-15 16:48:12 +02:00
bcb458192d tests/unittests: add nucleo-l496zg to arm boards 2018-05-15 11:56:51 +02:00
Bas Stottelaar
14e5a2b683
Merge pull request #9098 from basilfx/feature/efm32_unittests
tests: unittests: disable for new efm32 boards.
2018-05-14 11:13:12 +02:00
1f436e2486
Merge pull request #8965 from aabadie/pr/drivers/io1_xplained_enh_sd
drivers/io1_xplained: improve driver and add support for the sdcard and light sensor
2018-05-14 09:00:47 +02:00
372aadd626
Merge pull request #8978 from Hyungsin/forupstream_fxos8700
drivers: add driver for FXOS8700 3-axis accelerometer/magnetometer
2018-05-14 08:45:58 +02:00
Bas Stottelaar
e7b3e4bf64 tests: unittests: disable for new efm32 boards. 2018-05-13 18:59:12 +02:00
Hyungsin
beaf08bcb2 drivers: add driver for FXOS8700 3-axis accelerometer/magnetometer 2018-05-12 17:51:58 -07:00
234b363e8c
Merge pull request #9032 from cladmi/pr/fix/test/wsn430/mutex_unlock_and_sleep
tests/mutex_unlock_and_sleep: increase timeout
2018-05-12 02:09:37 +02:00
a0077f3c4b tests/unittests: test clist_foreach() return value 2018-05-12 00:13:41 +02:00
e05b780a10
Merge pull request #9118 from cladmi/pr/tests/trickle
tests/trickle: initialize prev_now in main
2018-05-11 20:57:01 +02:00
925f3c3a03 tests/pkg_cayenne_lpp: improve test and fix failing checks
- generated payloads can differ between architectures due to floating precision
- reworked how buffer content is tested in the application
- second test value depends on architecture (native and other platforms)
2018-05-11 18:57:36 +02:00
Gaëtan Harter
4032cf73b0
tests/trickle: initialize prev_now in main
Having `prev_now` initialized to 0 breaks tests on `arduino-zero` and
`arduino-mega2560` as `xtimer_now_usec` is way bigger (72k on `arduino-zero`).

Issue found in:
* #9052 and proposed fix by ZetaR60
* https://github.com/RIOT-OS/Release-Specs/issues/62#issuecomment-387421737
2018-05-11 17:56:27 +02:00
Gaëtan Harter
d0f22b787c
Merge pull request #8112 from cladmi/pr/crypto/input_len
crypto/ccm: fix input_len checking with length_encoding
2018-05-09 18:56:34 +02:00
7f83c450c8
Merge pull request #9100 from cladmi/pr/tests/libfixmath_unittests
tests/libfixmath_unittests: fix for iotlab-m3 and samr21-xpro
2018-05-09 15:30:26 +02:00
Gaëtan Harter
2c240cadf6
tests/libfixmath_unittests: increase timeout for samr21/iotlab-m3
On iotlab-m3 test duration was 80 seconds and 250 on samr21.
2018-05-08 14:46:45 +02:00
Gaëtan Harter
1773b06a62
tests/libfixmath_unittests: add missing printf_float dependency
The test fix16_str_unittests uses snprintf("%0.5f") to compare to fix16_to_str.
2018-05-08 14:46:38 +02:00
Gaëtan Harter
4f2521262b
tests/mutex_unlock_and_sleep: reduce number of loops in test
Globally speed up automated tests as iterating more does not add anything.

Especially usefull for wsn430 that now takes ~30 seconds instead of the double.
2018-05-08 11:55:49 +02:00
Gaëtan Harter
57a2397631
tests/mutex_unlock_and_sleep: reduce number of iterations on boards
Reduce number of iterations, it allows taking less than 3 seconds on wsn430.

Tested on wsn430 and iotlab-m3 to check that speed was not too fast to read when
executing term.
2018-05-08 11:55:10 +02:00
Gaëtan Harter
2dfb5847f3
tests/mutex_unlock_and_sleep: replace modulo to speed up tests on wsn430
Doing a 32 bit modulo is really slow on wsn430, even when changing to a power of
two modulo.

Replace modulo by a double counter.
2018-05-08 11:54:57 +02:00
7e2f5cf99a tests/pkg_semtech-loramac: adapt to change in pkg 2018-05-08 11:14:05 +02:00
jia200x
736c757b80
Merge pull request #8639 from aabadie/pr/pkg/loramac_link_check
pkg/semtech-loramac: add link check support
2018-05-08 11:11:33 +02:00
Gaëtan Harter
fa33eacd1f
crypto/ccm: fix _fits_in_nbytes function
Function is broken with num_bytes >= 4.

Could happen when storing input_len with len_encoding >= 4.
It can take values from 2 to 8, so make it work for cases it would overflow.
2018-05-07 15:08:00 +02:00
Gaëtan Harter
a47e5e427e
tests/ccm: add test for input_len check 2018-05-07 15:08:00 +02:00
Francisco Acosta
5519f06e1e
Merge pull request #8897 from ZetaR60/RIOT_atmega_race
tests/thread_race: add test for race conditions
2018-05-04 19:38:27 +02:00
Matthew Blue
8d40e3c481 tests/thread_race: add test for race conditions 2018-05-04 12:49:01 -04:00
Gaëtan Harter
154fbcff35
tests: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-04 10:52:26 +02:00
f9c75d0df7
Merge pull request #8915 from ZetaR60/RIOT_ads101x
drivers/ads101x: support for ADCs
2018-05-03 08:31:03 +02:00
e13b1b7dd2
Merge pull request #9045 from cladmi/pr/tests/thread_flags/wsn430
tests/thread_flags: fix printf on 16bit platform
2018-04-28 14:49:47 +02:00
Joakim Nohlgård
9c85ce1916
Merge pull request #8733 from gebart/pr/matstat
matstat: Integer mathematical statistics library
2018-04-28 09:37:02 +02:00
Joakim Nohlgård
5c59f6a39a unittests: Add tests for matstat library 2018-04-28 08:03:35 +02:00
Gaëtan Harter
8edd9a924c
tests/thread_flags: fix printf on 16bit platform
Diff output was truncated to a 16b unsigned on wsn430 which made tests fail

    main: timeout triggered. time passed: 34581us

Instead of

    main: timeout triggered. time passed: 100117us
2018-04-27 21:08:20 +02:00
b522d5e6ee
Merge pull request #9033 from cladmi/pr/tests/pkg_tiny-asn/blacklist/wsn430
tests/pkg_tiny-asn1: blacklist wsn430 boards
2018-04-27 15:22:39 +02:00
97618c0ec0
Merge pull request #9031 from cladmi/pr/fix/test/sizeof_tcb
tests:sizeof_tcb: fix for wsn430 and arduino
2018-04-27 11:42:22 +02:00
95a5befdf9
Merge pull request #9030 from cladmi/pr/fix/test/wsn430/float
tests/float: increase timeout for wsn430
2018-04-27 11:40:26 +02:00
Gaëtan Harter
a1fe556f02
tests/pkg_tiny-asn1: blacklist wsn430 boards
Boards do not have enough memory to `malloc` for the test

    ERROR: Could not allocate the memory for the ASN.1 objects
2018-04-26 16:53:07 +02:00
Gaëtan Harter
23eefa3408
tests/sizeof_tcb: fix printf format to work on arduino
arduino-uno and arduino-mega2560 do not support the '%-*s' option.
2018-04-26 16:04:40 +02:00
Gaëtan Harter
4f1206c1c5
tests/sizeof_tcb: fix test for 16bit wsn430 2018-04-26 16:04:37 +02:00
Gaëtan Harter
ac1bf94f67
tests/float: increase timeout for wsn430 2018-04-26 16:00:53 +02:00
Gaëtan Harter
fa58928695
tests/bloom_bytes: increase timeout for wsn430
adding 512 elements took 10243ms
    checking 10000 elements took 134720ms
2018-04-26 15:57:27 +02:00
aa0acd62c7 tests/pkg_semtech-loramac: add new link_check command 2018-04-19 15:51:43 +02:00
378ec103f9 tests/pkg_semtech-loramac: apply new API 2018-04-19 11:44:51 +02:00
f872a7f676 tests/driver_io1_xplained: print light sensor values 2018-04-17 11:06:01 +02:00
367190c08d tests/driver_io1_xplained: use sdcard in test application 2018-04-17 10:49:48 +02:00
57734a1e15 tests/driver_io1_xplained: rework with new API 2018-04-17 10:48:49 +02:00
f18f25c5c2
Merge pull request #8577 from gebart/pr/analog_util-refactor
sys/analog_util: Refactor, add test
2018-04-17 10:40:53 +02:00
ba809c231e
pkg/libcose: add simple unittest application 2018-04-16 19:02:04 +02:00
Dylan Laduranty
ff5817c569
Merge pull request #8926 from aabadie/pr/drivers/sx127x_fixes
drivers/sx127x: various improvements
2018-04-16 16:10:27 +02:00
355c559ae9
test/cn-cbor: Use memarray as block allocator 2018-04-16 15:27:43 +02:00