Juan Carrano
913f74b90b
tests/lua_loader: test the RIOT-customized lua loader.
...
For the RIOT port of Lua, the module loader has been more or less
rewritten to allow for easily integrating source modules defined in static
arrays and C modules embedded in the application.
So far the loader had not been tested (and a bug was found). This test
should give a bit more certainty that the RIOT integration works as it
should.
2019-05-31 17:16:06 +02:00
Francisco
d1f06bd9c7
Merge pull request #8855 from aabadie/pr/pkg/semtech-loramac_shell
...
sys/shell: add loramac shell command
2019-05-29 18:06:05 +02:00
Peter Kietzmann
3e33c11c16
Merge pull request #11606 from leandrolanzieri/pr/tests/shell_stdio_rtt_fix
...
tests/shell: Initialize xtimer when stdio_rtt is used
2019-05-29 17:41:49 +02:00
Juan I Carrano
c6affd7388
Merge pull request #11602 from cladmi/pr/unittests/clean_board_insufficient_memory
...
tests/unittests: enable boards with enough memory
2019-05-29 17:23:13 +02:00
Leandro Lanzieri
859250c66f
tests/shell: Init xtimer when stdio_rtt is used
2019-05-29 17:18:30 +02:00
fd9b3c7b84
tests/pkg_semtech-loramac: use auto-init to initialize the mac
2019-05-29 16:53:53 +02:00
fdeba82b16
tests/pkg_semtech-loramac: use system shell command
2019-05-29 16:53:52 +02:00
56fb2578bf
tests/pkg_semtech-loramac: use semtech_loramac_rx with supported boards
2019-05-29 16:24:53 +02:00
14a4db137c
tests/pkg_semtech-loramac: conditionally build RX related code
2019-05-29 16:24:52 +02:00
0838cf99bb
tests/pkg_semtech-loramac: add RX thread for downlink messages
2019-05-29 16:24:23 +02:00
Vincent Dupont
c8655ab164
unittests: add random/hwrng tests in tests-devfs
2019-05-29 15:50:25 +02:00
Sebastian Meiling
1216c5f3b8
Merge pull request #11601 from cladmi/pr/unittests/remove_large_tests
...
tests/unittests: remove unused LARGE_STACK_TESTS
2019-05-29 11:12:12 +02:00
0c59ea132f
Merge pull request #11338 from lpaulic/pr/drivers-ds18-whitelist
...
tests/drivers_ds18: add tested boards to the board whitelist
2019-05-29 10:54:41 +02:00
Kevin "Bear Puncher" Weiss
772dcd189b
Merge pull request #11532 from leandrolanzieri/pr/drivers/at_rcv-functions
...
drivers/at: Add 'at_recv_bytes_until_string' function
2019-05-29 09:55:33 +02:00
Kevin "Bear Puncher" Weiss
6616032150
Merge pull request #9941 from bergzand/pr/pkg/monocypher/v205
...
pkg/monocypher: bump version to 2.0.5
2019-05-29 09:55:08 +02:00
Peter Kietzmann
2bc524fb4d
Merge pull request #10228 from bergzand/pr/checksum/fletcher16_split
...
Fletcher16: extend with multi-part functions
2019-05-28 22:49:19 +02:00
Gaëtan Harter
7286a99e55
tests/unittests: enable boards with enough memory
...
Now that tests with packages have been moved out of `unittests`
re-enable boards with enough memory.
The removed boards list matches the boards that now compiled locally
with `BUILD_IN_DOCKER=1 make buildtest` and also the output of murdock
for boards that were able to link despite being in the list:
avsextrem:gnu
cc2538dk:gnu
firefly:gnu
mbed_lpc1768:gnu
msba2:gnu
openmote-b:gnu
openmote-cc2538:gnu
remote-pa:gnu
remote-reva:gnu
remote-revb:gnu
seeeduino_arch-pro:gnu
2019-05-28 21:54:33 +02:00
Gaëtan Harter
d17b092232
tests/unittests: remove renamed openmote
...
The board as renamed to openmote-cc2538.
2019-05-28 21:54:19 +02:00
Gaëtan Harter
ecd174c488
tests/unittests: remove unused LARGE_STACK_TESTS
...
All tests that were in LARGE_STACK_TESTS have been moved out of the directory.
This handling is not needed anymore.
2019-05-28 20:50:20 +02:00
Cenk Gündoğan
b6655a2bba
Merge pull request #10988 from miri64/gnrc_sixlowpan_frag/enh/expose-interval-type
...
gnrc_sixlowpan_frag: prepare reassembly base types for VRB
2019-05-28 18:55:55 +02:00
Gaëtan Harter
79877679e4
Merge pull request #10210 from bergzand/pr/pkg/spiffs_move
...
tests/spiffs: Move from unittests to regular test
2019-05-28 18:53:20 +02:00
Peter Kietzmann
3e5a00d14c
Merge pull request #11595 from cladmi/pr/tests_rng/fix_for_msp430
...
tests/rng: fix for msp430
2019-05-28 18:44:37 +02:00
Francisco
b8d602abdc
Merge pull request #11583 from aabadie/pr/pkg/semtech-loramac-cflags
...
pkg/semtech-loramac: move region CFLAGS definitions from applications to pkg
2019-05-28 18:42:03 +02:00
e80fccaf50
Merge pull request #11511 from gdoffe/scanf_float
...
sys: add pseudomodule scanf_float
2019-05-28 18:23:43 +02:00
Martine Lenders
52e4247798
gnrc_sixlowpan_frag: introduce reassembly buffer base class
2019-05-28 18:07:42 +02:00
Martine Lenders
495eaa36a6
gnrc_sixlowpan_frag: remove unnecessary type indirection
...
The members of `rbuf_t` and `gnrc_sixlowpan_rbuf_t` are now identical
so we can remove the internal type.
2019-05-28 18:07:42 +02:00
Martine Lenders
8cc5d94956
gnrc_sixlowpan_frag: add arrival time to public type
...
The arrival time is also needed for the VRB's garbage collection.
2019-05-28 18:07:42 +02:00
Martine Lenders
b84e496563
gnrc_sixlowpan_frag: add intervals to public type
...
The fragment intervals are also required by the VRB, so make them part
of the public representation of a reassembly buffer.
2019-05-28 18:07:42 +02:00
eb7d7d6d99
tests/spiffs: Move from unittests to regular test
2019-05-28 17:41:11 +02:00
1d38863e2e
tests/littlefs: Move from unittests to regular test
2019-05-28 17:39:26 +02:00
Gaëtan Harter
381382b61a
tests/rng: take into account stack buffers and printf
...
Take into account stack buffers and printf for allocating the default
stack size.
This solves stack size issues with `wsn430-v1_3b` and `z1`.
It now have a main stack usage of 514 bytes out of 768 on `wsn430-v1_3b`.
2019-05-28 15:43:15 +02:00
Gaëtan Harter
d1c454790f
tests/rng: alloc shell buffer in .data
...
Do not allocate the shell buffer on stack to reduce stack usage.
2019-05-28 15:43:15 +02:00
Gaëtan Harter
0e66b18f0c
tests/rng: expect shell prompt in test
...
Be more pedantic in expected output for shell commands.
For slow boards, `ws430-v1_3b/arduino-mega2560/msba2`, some commands
were sent before the output of the previous command.
2019-05-28 15:43:15 +02:00
Juan Carrano
66c66b59a5
tests/unittests: add tests for scanf_float.
...
Newlib-nano does not seem to support hexadecimal floats or the %a
specifier. What is even weirder, it reports a successful conversion
anyways.
Tests for these two cases have been commented out.
2019-05-28 12:10:39 +02:00
Gaëtan Harter
fe81c51dcd
tests/cortexm_common_ldscript: update code section for kinetis
...
Update the 'code' section detection to also work on kinetis.
The boards using 'cortexm.ld' have the code section starting with
'.text'. For the 'cpu/kinetis/kinetis.ls' the first section is '.vector'.
Update the 'awk' matching pattern to correctly detect the kinetis boards.
It is a dependency to allow testing upcoming offset support with kinetis.
I am not 100% sure about the pattern for awk.
2019-05-27 15:45:49 +02:00
92ee05289a
tests/pkg_semtech_loramac: remove useless lora region cflags
2019-05-26 11:47:16 +02:00
Martine Lenders
b251f96022
tests/pkg_minmea: remove blacklisting of ATmega-based boards
...
The reason for the blacklisting was fixed in the current version of
minmea.
2019-05-24 19:03:27 +02:00
Martine Lenders
5522f3d7a5
tests/pkg_minmea: port to fmt
...
With `newlib-nano` and other smaller `libc`s the output of floats does
not work with `printf()`. Since minmea uses floating point operations
I used `fmt` instead.
2019-05-24 18:58:47 +02:00
Marian Buschsieweke
855b5bd54d
tests: Updated BOARD_INSUFFICIENT_MEMORY
...
Added arduino-leonardo to BOARD_INSUFFICIENT_MEMORY where needed
2019-05-24 17:57:44 +02:00
Marian Buschsieweke
5522e9efb5
tests: Updated BOARD_BLACKLIST
...
Added arduino-leonardo to BOARD_BLACKLIST where needed
2019-05-24 17:56:42 +02:00
Marian Buschsieweke
112b88f7ee
tests/periph_timer: Set freq for Arudino Leonardo
...
The Arduino Leonardo requires - like the other ATmega based Arduinos - a
different frequency than the default 1000000, as this frequency cannot be
achieved on a 16MHz ATmega with any available prescaler.
2019-05-24 15:12:47 +02:00
Martine Lenders
10d0dfaf33
Merge pull request #11378 from kaspar030/tests/pthread_tls_allow_negative_key
...
tests/pthread_tls: allow negative key values
2019-05-23 16:14:58 +02:00
69a38f8b7b
tests/driver_ds75lx: add test application
2019-05-22 16:54:19 +02:00
07a7ae9c3a
test: not enough memory for i-nucleo-lrwan1
2019-05-21 09:57:33 +02:00
ea2988c057
tests: add lsn50 to insufficient memory boards
2019-05-17 22:43:04 +02:00
Hauke Petersen
e172c80bad
tests/nimble_l2cap: adapt to config var name change
2019-05-17 10:34:26 +02:00
Hauke Petersen
5bd53db88f
tests/l2cap: use newly introduced TX_UNSTALLED evt
2019-05-17 10:34:26 +02:00
Leandro Lanzieri
d57f8ff793
Merge pull request #11536 from ParksProjets/pr_ds18
...
drivers/ds18: fix `ds18_read` for negative temperatures
2019-05-17 10:27:51 +02:00
Guillaume Gonnet
c9fa1d7503
tests/drivers_ds18: display negative numbers
...
When `ds18_read` returns -2506, DS18 test print `Temperature [ºC]: -25.-6`
whereas it should print `Temperature [ºC]: -25.06. This commit fixes this
issue.
2019-05-16 20:22:02 +02:00
Leandro Lanzieri
f5f76c7375
tests/driver_at: Fix README typo
2019-05-16 14:45:53 +02:00
Leandro Lanzieri
b5171f4d48
tests/driver_at: Add receive until string test
2019-05-16 14:45:53 +02:00
Hauke Petersen
8637d308bd
tests: add test for evens_wait_timeout()
2019-05-16 12:01:42 +02:00
Gaëtan Harter
dde4fe0dc1
Merge pull request #11493 from fjmolinas/pr_xtimer_usleep_negative
...
tests/xtimer_usleep: fail with negative offsets
2019-05-14 12:45:15 +02:00
francisco
a687a26f42
tests/xtimer_usleep: fail with negative offset
...
- xtimer_usleep(timeout) should sleep for at least timeout us.
Negative offset, i.e. sleeping less than the specified time
is incorrect.
2019-05-14 08:57:29 +02:00
Juan I Carrano
cbc08edcd1
Merge pull request #11358 from fjmolinas/riot-cortexm-address-check
...
cpu/cortexm_common: function to check address validity
2019-05-13 11:50:48 +02:00
Oleg Artamonov
a5ce6deb02
cpu/cortexm_common: function to check address validity
2019-05-13 09:35:34 +02:00
Martine Lenders
98f97afc97
Merge pull request #11467 from kaspar030/increase_posix_semaphore_timeout
...
tests/posix_semaphore: unify and increase allowed test4 margin
2019-05-06 15:47:45 +02:00
a9cd9433f0
tests/posix_semaphore: unify and increase allowed test4 margin
...
Previously, there was a very tight allowed margin (100us), then some
special cases for platforms for which the test would otherwise fail,
increasing the margin.
This turned out to be a maintanance burden, as each slightly special
board needed a PR adding the special case.
This commit sets a quite large margin (1000us, 0.1% of total delay),
which should be large enough to not trip over platform-induced timer
inaccuracies, but still verify that the module is using timers
correctly.
(This is not a timer accuracy test.)
2019-05-06 14:51:44 +02:00
Dylan Laduranty
c49e72ac66
Merge pull request #11307 from fedepell/rwwee_autotests
...
tests/periph_flashpage: add RWWEE automatic test if hw supports it
2019-05-04 23:46:17 +02:00
Gaëtan Harter
ad599f724d
tests/pkg_cc25519: increase timeout for arduino-mega2560
...
`arduino-mega2560` finishes the test in 170 seconds so set a bigger timeout.
2019-04-30 21:59:54 +02:00
Francisco
c073e56b25
Merge pull request #11448 from cladmi/pr/tests/periph_hwrng
...
tests/periph_hwrng: add automated python test
2019-04-30 08:43:00 -07:00
Gaëtan Harter
564402e88f
tests/periph_hwrng: enable test in murdock
2019-04-30 15:50:09 +02:00
Francisco
cd0ab4a193
Merge pull request #11469 from aabadie/tests/periph_timer_kw41z
...
tests/periph_timer: include kw41z boards in low-power timer boards
2019-04-30 06:23:29 -07:00
96fd49520b
tests/periph_timer: include kw41z boards in low-power timers
2019-04-30 14:58:40 +02:00
Frank Hessel
19275d5788
tests/driver_sdcard_spi: Use uint8_t for byte buffers
2019-04-29 19:25:39 +02:00
Gaëtan Harter
9a15b32c57
tests/periph_hwrng: add automated python test
...
Add the automated test for 'periph_hwrng'. It only checks that numbers
are returned, not their value.
2019-04-25 15:21:26 +02:00
Martine Lenders
1fdccd5a2e
Merge pull request #11429 from jia200x/pr/fix_at86rf2xx_test
...
drivers/at86rf2xx: enable NETOPT_RX_END_IRQ and fix RSSI values
2019-04-24 20:26:23 +02:00
Martine Lenders
c1be18a002
tests/gnrc_udp: include gnrc_pktbuf_cmd
per default
...
`tests/gnrc_udp` was specifically introduced for testing the release
specs. All of them ask the tester to check the packet buffer after the
test. So it makes sense to include the module that allows for that per
default for this test so the tester does not forget to include it ;-).
2019-04-24 16:45:25 +02:00
Martine Lenders
cfde3f1596
Merge pull request #11387 from danpetry/tests/periph_rtt_testfix
...
tests/periph_rtt: Correct the test script syntax
2019-04-23 12:30:15 +02:00
Jose Alamos
576bbaa248
drivers/at86rf2xx: print signed RSSI instead of unsigned
2019-04-23 11:15:26 +02:00
Jose Alamos
53a54dcea1
tests/at86rf2xx: enable NETOPT_RX_END_IRQ
2019-04-23 11:14:05 +02:00
José Alamos
d16d911f42
Merge pull request #10120 from mtausig/ocb
...
Add OCB encryption mode
2019-04-23 11:08:30 +02:00
Mathias Tausig
dcab239b9b
crypto: Implement Unit Tests for OCB mode
2019-04-23 10:36:31 +02:00
c93bb62040
Merge pull request #11427 from aabadie/pr/pkg/c25519_make_cleanup
...
pkg/c25519: cleanup in Makefiles
2019-04-23 09:55:56 +02:00
ddc909f8d9
tests/pkg_semtech-loramac: fix build commands in README
2019-04-22 21:12:25 +02:00
33bc8b67cc
tests/pkg_c25519: remove useless test target
2019-04-22 21:08:47 +02:00
Juan I Carrano
7169695cb5
Merge pull request #11379 from kaspar030/tests/pthread_cooperation_disable_hifive1
...
tests/pthread_cooperation: add hifive1 to BLACKLIST
2019-04-15 13:52:42 +02:00
Gilles DOFFE
3a83648f2a
drivers: add licence to motor_driver source files
...
Related to PR #10290 , add missing licence to some source files.
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-04-13 00:29:58 +02:00
danpetry
b3ed7ade10
tests/periph_rtt: Correct the test script syntax
...
Previously the test was failing due to apparently incorrect Python syntax in
the testrunner script. This fix corrects this and the test now passes.
2019-04-12 14:39:14 +02:00
afc983724b
tests/pthread_cooperation: add hifive1 to BLACKLIST
...
The hifive1 has only 16kB of memory. The tests tries to allocate 12
thread stacks with 1kB (default) stacksize each. The corresponding
malloc() fails for the last two threads, making the test fail silently.
2019-04-11 15:42:42 +02:00
33783d9fa2
tests/pthread_tls: allow negative key values
...
On Hifive1, the created keys have a negative value. This commit
adjusts the pexpect script to allow for that.
2019-04-11 15:34:00 +02:00
Martine Lenders
364499f212
Merge pull request #11356 from jcarrano/fix_udp_atoi-master
...
tests/gnrc_udp: Replace atoi() by strtol().
2019-04-11 12:48:21 +02:00
Juan Carrano
c0af4237d8
tests/gnrc_udp: fix printf format string (%d->%u).
...
This was causing the CI build to fail in the static-check stage
(cppcheck).
2019-04-11 11:26:02 +02:00
Martine Lenders
f11d462b82
Merge pull request #11371 from danpetry/tests/gnrc_sock_dns_timeout
...
tests/gnrc_sock_dns: Give time to allow node to set its ll address
2019-04-10 17:43:10 +02:00
Martine Lenders
e0de94cb5f
Merge pull request #11309 from miri64/tests/enh/lwip_sock-l2util
...
tests: remove NETOPT_IPV6_IID dependency from lwip_sock tests
2019-04-10 17:07:16 +02:00
danpetry
b320dd7909
Give time to allow node to set its ll address
...
Set a delay of three seconds at the beginning of the test. Otherwise,
the node will send a neighbour solicitation with a blank link local
address, it won't receive a reply, and the test will fail.
2019-04-10 16:43:27 +02:00
Juan Carrano
54cbdaaa53
tests/gnrc_udp: Replace atoi() by strtol().
...
This patch is a reduced version of an earlier one, with the bare minimum
required to be able to run the test and get the release going.
Original description:
atoi() cannot detect errors. Many implementation return zero on error
and that is what was being checked here, making the "udp send" command
unable to parse integer values of zero. On top of this, the behavior on
errors does not seem to be specified in the standard (so it is not even
correct to check for zero even when zero is not an accepted value, like
for a port number).
The result of all this is that sending UDP packets of zero length (as
required by the Release Specs) was not possible.
This patch replaces atoi by strlen, which allows for robust error detection.
Sending zero length packets is possible.
2019-04-10 15:33:46 +02:00
Juan I Carrano
9832299e62
Merge pull request #11319 from miri64/pkg/new/ubasic
...
pkg: Initial introduction of ubasic package
2019-04-08 17:38:03 +02:00
Martine Lenders
9f960fd61c
tests: provide tests for ubasic package
2019-04-08 17:09:28 +02:00
Sebastian Meiling
4dd09eaa06
Merge pull request #6178 from OTAkeys/pr/can_stm32
...
can stm32: add a driver for STM32 bxCAN peripheral
2019-04-08 08:50:08 +02:00
25b0d4d67b
tests/pkg_c25519: increase timeout on non-native
2019-04-05 16:33:53 +02:00
Luka Paulic
e16b42aeb6
test: reverted to last commit
2019-04-04 22:05:00 +02:00
f6f988cfbf
Merge pull request #9389 from bergzand/pr/pkg/c25519/initial
...
c25519: Initial support for the c25519 package
2019-04-04 14:23:09 +02:00
2ed516fa39
c25519: add test application
2019-04-04 14:05:57 +02:00
Luka Paulic
8f658aee8a
drivers: modify DS18 driver so it is supported on all platforms
2019-04-04 12:01:02 +02:00
Luka Paulic
480bc74edd
tests: add tested boards to the board whitelist
2019-04-04 07:38:35 +02:00
Hyungsin
d9c17c2154
boards: add initial hamilton board support
2019-04-03 15:00:35 -07:00
88171698e0
Merge pull request #10931 from kb2ma/nanocoap/pktapi_opt_enospc
...
net/nanocoap: Packet API return error if buffer full
2019-04-03 14:49:44 +02:00
Vincent Dupont
74ddf56171
tests/conn_can: build stm32 CAN drivers
...
Build can_stm32 module on boards which have a stm32 CAN controller.
2019-04-03 11:12:46 +02:00
Martine Lenders
397adf79ca
tests: remove NETOPT_IPV6_IID dependency from lwip_sock_ip
2019-03-29 13:21:58 +01:00