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

3232 Commits

Author SHA1 Message Date
Hauke Petersen
16bbd2f864 tests/unittests/bluetil: adapt to byteorder fixes 2019-08-28 16:49:21 +02:00
Hauke Petersen
a237971cfd tests/l2util: adapt to changes for BLE 2019-08-28 16:49:21 +02:00
harisanthosh
f583368842 net/gnrc/udp: Adding Null pointer check in gnrc_netif_hdr_build 2019-08-26 12:46:26 -07:00
Kevin "Tristate Tom" Weiss
b9a01437be
Merge pull request #12072 from cladmi/pr/test_tools/shell_no_echo
tests/test_tools: add a test for the testing tools environment
2019-08-26 17:12:14 +02:00
Ken Bannister
47ef5c1656 net/nanocoap: add unit test for iterate options 2019-08-24 07:46:54 -04:00
570f95f2bb
tests/pkg_semtech-loramac: disable rx thread for arduino-mega2560
Otherwise the application cannot be linked for this platform
2019-08-23 21:08:35 +02:00
Kevin "Tristate Tom" Weiss
1b1c902dd3
Merge pull request #12022 from JannesVolkens/tmp00x
driver/tmp00x: make tmp006 more generic
2019-08-23 13:26:09 +02:00
cladmi
b3cb076286
tests/test_tools: add a test for the testing tools environment
Check the interaction with a board through make term.
It is using a shell without echo or prompt for reference.

It currently checks that there is no local echo.
2019-08-23 12:14:52 +02:00
Jannes
90c4ef04ef driver/tmp00x: Change tmp006 to tmp00x and add tmp007
Rename TMP006 to TMP00x
Add TMP007 sensor support to TMP00X
Change uint8_t reg to uint16_t
Add to doxygen documentation group
Expose compile time configurations
Move defines from .c to .h
Change double to float, because double is not needed
Add TMP007 register information
2019-08-23 12:11:16 +02:00
Juan I Carrano
647b0cdd29
Merge pull request #12040 from cladmi/pr/tests/unittests/move_cpp_test
tests/cpp_ctors: move tests-cpp_ctors out of unittests
2019-08-22 15:46:38 +02:00
349b83c117
Merge pull request #6927 from OTAkeys/pr/ncv7356
can: add ncv7356 SW transceiver driver
2019-08-22 15:18:35 +02:00
Gaëtan Harter
1e0ca7ca7f
tests/unittests: remove the 'DISABLE_TEST_FOR_ARCH'
Remove the arch disabling tests handling as now unused.

If something like this is necessary again the test must be put
outside of unittests.
2019-08-22 12:39:47 +02:00
Gaëtan Harter
5638881e5b
tests/cpp_ctors: move tests-cpp_ctors out of unittests
This moves 'unittests/tests-cpp_ctors' to its own test.
It prevents requiring 'cpp' in the 'unittests' that forced almost all
architectures to link the unittests with `g++`.
It also removes the need to have disabled tests for architectures.

Some boards were actually not big enough to compile unittests.
But were hidden by the 'cpp' missing feature.

Blacklist boards that were disabled for cpp test even though they
provide the 'cpp' feature.
2019-08-22 12:39:47 +02:00
Gaëtan Harter
1ec4e45f77
tests/unittests: blacklist 8/16bit boards as they do not compile
The boards do not compile the unittests due to issue with too long
integers and other issues.
2019-08-22 10:52:58 +02:00
Juan I Carrano
c35cbda1bf
Merge pull request #12038 from cladmi/pr/tests/crypto/add_rfc_nist_tests
tests/sys_crypto: add RFC3610 and NIST SP 800-38C tests
2019-08-21 18:46:43 +02:00
Gaëtan Harter
46c79018f3
tests/sys_crypto: add tests from NIST SP 800-38C
Taken from pycrypto tests input
2019-08-21 17:52:45 +02:00
Gaëtan Harter
d61f3c23ca
tests/sys_crypto: add remaining tests from RFC 3610
Taken from pycrypto tests input
2019-08-21 17:52:45 +02:00
Gaëtan Harter
1e7242ac82
tests/sys_crypto: change naming and formatting
* use names with RFC
* add terminating comma
* remove newlines between tests values

This prepares for the format of the next commit adding all RFC tests.
This will reduce the number of changes in upcoming commit.
2019-08-21 17:52:45 +02:00
Gaëtan Harter
330b9669a3
tests/sys_crypto: move tests-crypto out of unittests
This moves unittests/tests-crypto to its own test.
It should allow adding big test vectors without preventing boards from
running the tests.
2019-08-21 17:52:45 +02:00
Juan I Carrano
e7957e6d9b
Merge pull request #11688 from cladmi/pr/tests/pthread_rwlock/enable_in_ci
tests/pthread_rwlock: run the test in CI
2019-08-21 17:15:53 +02:00
Marian Buschsieweke
938b36a29c
Merge pull request #12054 from cladmi/pr/unittests/sht1x/limit_test_vectors_on_board
unittests/sht1x: decrease the amount of tested values on board
2019-08-21 16:03:04 +02:00
Gaëtan Harter
9cd08d4999
tests/pthread_rwlock: run the test in CI
HACK, the test currently fails in CI for `native` due to `utf-8` handling.
2019-08-21 15:46:47 +02:00
Gaëtan Harter
0aae704fd4
tests/pthread_rwlock: lock around prints
The test assumes that 'printf/puts' are non interruptible operations.
Use a mutex to guarantee it.

Without this, the automated test was failing in some configurations with
lines being cut by others.
2019-08-21 15:46:19 +02:00
Gaëtan Harter
2a24c7ee20
unittests/sht1x: decrease the amount of tested values on board
Reduce the amount of tested values by a 100.
This makes the testing time go from 3 minutes to 2 seconds on
`frdm-kw41z`.

Testing that the integer calculation matches the float one does not need
to be performed on the full range on boards. Checking some values should
be enough to detect overflow issues.
The full range checking is kept on native.
2019-08-21 14:54:35 +02:00
Gaëtan Harter
8e5422ff78
applications: remove 'TEST_ON_CI_WHITELIST += all'
This is now the default so not required anymore.
2019-08-21 12:51:17 +02:00
Gaëtan Harter
084c6f739d
tests/lwip: disable failing test
The test fails on both murdock and on my machine due to the process
exiting directly.

pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
2019-08-21 12:49:24 +02:00
Gaëtan Harter
1f11843623
tests/pkg_fatfs_vfs: disable tests that need setup
The test need a manual setup that cannot currently be done in CI.
2019-08-21 12:49:00 +02:00
Gaëtan Harter
f7176f425f
tests/gnrc: disable tests that need setup and root
Disable running tests that need a setup and run with root as they cannot
currently be run in CI.
2019-08-21 12:46:51 +02:00
Gaëtan Harter
12d4b71c31
tests/socket_zep: define TEST_ON_CI_BLACKLIST
HACK, the test currently fails in CI for 'native' due to binding issue
2019-08-21 12:40:40 +02:00
Gaëtan Harter
095268a33a
tests/netstats_l2: run the test in CI
HACK, blacklist native as it fails to create a tun interface in murdock.
2019-08-21 12:40:40 +02:00
Gaëtan Harter
622fe2c28f
tests/pthread_rwlock: run the test in CI
HACK, the test currently fails in CI for `native` due to `utf-8` handling.
HACK, the test implementation can fail due being de-scheduled during printf.
2019-08-21 12:40:40 +02:00
Vincent Dupont
af66fe101d can/isotp: allow changing FC options at runtime 2019-08-21 11:16:56 +02:00
Vincent Dupont
cb15c86024 tests/can_trx: add ncv7356 build 2019-08-21 11:05:51 +02:00
d6356bdc08
Merge pull request #11692 from maribu/fmt_table
sys/fmt: Added submodule fmt_table for printing tables
2019-08-20 22:18:54 +02:00
Peter Kietzmann
11b4bab101
Merge pull request #10340 from maribu/cc110x_rewrite
drivers/cc110x: Complete rewrite from scratch
2019-08-20 17:58:21 +02:00
Marian Buschsieweke
a84de4225d
examples,tests: Add msba2 to BOARD_PROVIDES_NETIF 2019-08-20 17:05:09 +02:00
Juan I Carrano
d2970332fc
Merge pull request #12009 from cladmi/pr/application/board_equal/bug
dist/tools/build_system_sanity_check: check BOARD set as ?=
2019-08-20 16:52:21 +02:00
Marian Buschsieweke
f33b963ef4
tests: Added test for the cc110x driver
The test application provides:
- RIOT's basic network utilities such as `ping6`
- A custom `cc110x` shell command that can be used print the low level device
  and driver state. This is mostly useful for debugging.
2019-08-20 16:40:15 +02:00
Marian Buschsieweke
18bc0ce5fc
tests/driver_ltc4150: Use new fmt_table API 2019-08-20 14:33:15 +02:00
Marian Buschsieweke
615e25f319
drivers: Removed driver for CC110x transceivers
- Removed cc110x driver
- Updated all makefiles
- Kept both board specific configurations and support for it in RIOT's
  upper layers, so re-implementations don't need to start from zero
2019-08-19 12:56:47 +02:00
913614ef04
Merge pull request #11004 from jcarrano/shell_cancel_line_ctrl-c
sys/shell: cancel current line on CTRL-C.
2019-08-16 13:00:33 +02:00
Juan Carrano
2946f4b192 tests/shell: Test cancelling a line with ctrl-C.
Send garbage, cancel it and issue a valid command. No errors should
ocurr.
2019-08-15 17:40:17 +02:00
Juan Carrano
3f46863426 tests/shell: use tuple instead of dictionary in test scripts.
Python dictionaries are not guaranteed to be ordered until version
3.7. In 3.6 they are ordered too, but that is an implementation
detail. riotdocker seems to be using 3.5.

As it stands now, it would not be a problem if the test commands
are run in a random order, except that:

- It would result in non-reproduceable tests.
- It hinders testing other functionality, such as exiting the shell.
2019-08-15 17:13:42 +02:00
Juan Carrano
cdfece682f tests/shell: Use socat as the RIOT_TERMINAL.
For test scripts, a terminal that does not modify the input and output
streams, configured without local echo, is preferred as it ensures the
test setup is introducing as little noise as possible.
2019-08-15 17:12:54 +02:00
Gaëtan Harter
ac8a6cf3a3
tests/libfixmath: use test_utils_interactive_sync
Replace the 'xtimer_sleep' hack to prevent flooding at startup to use
test_utils_interactive_sync for synchronizing.
2019-08-15 12:30:59 +02:00
Gaëtan Harter
4c209ab8d7
tests/libfixmath: explicitly import ARRAY_SIZE definition
ARRAY_SIZE is implicitly imported by "xtimer.h" which will be removed of
this file.
2019-08-15 12:30:37 +02:00
Gaëtan Harter
ed27d3b68b
tests/posix_time: use test_utils_interactive_sync
Use test_utils_interactive_sync for synchronizing test instead of the
custom 'getchar' handling.
2019-08-15 12:26:28 +02:00
Gaëtan Harter
1172ca9f93
tests/xtimer_usleep: use test_utils_interactive_sync
Use test_utils_interactive_sync for synchronizing test instead of the
custom 'getchar' handling.
2019-08-15 12:26:28 +02:00
Gaëtan Harter
f193ffd604
tests/cond_order: use test_utils_interactive_sync
Use test_utils_interactive_sync for synchronizing some case treat
the output before `reset` as the start of the test,
which fails for some boards/configurations.
2019-08-15 12:26:28 +02:00
Gaëtan Harter
a9e7e1b1d0
tests: do not unconditionally set BOARD
Remove unconditionally setting 'BOARD' to an hardwritten value.
The definition must be moved before including 'Makefile.tests_common' as
it defines 'BOARD ?= native'.
2019-08-14 17:11:34 +02:00
Francisco
414df99a4c
Merge pull request #11083 from cladmi/pr/docker/hack/bootloader
tests/mcuboot: handle building in docker
2019-08-14 15:17:44 +02:00
Marian Buschsieweke
c225636966
Merge pull request #10555 from gschorcht/irq_handler
sys: single interrupt handler thread for interrupts in modules with blocking functions
2019-08-13 15:08:53 +02:00
Gunar Schorcht
5fe75a9766 tests/sys_irq_handler: test for sys/irq_handler
Test application for sys/irq_handler.
2019-08-13 14:50:48 +02:00
Francisco
7705f6a93e
Merge pull request #11968 from aabadie/pr/tests/printf_format
tests/log_printfnoformat: add test application & script
2019-08-12 16:58:42 +02:00
Martine Lenders
0bfef4cdae tests/gnrc_ndp: enhance coverage 2019-08-09 11:47:08 +02:00
Francisco
ca2b00875a
Merge pull request #11687 from cladmi/pr/tests/pkg_u8g2/enable_in_ci
tests/pkg_u8g2: run the test in CI
2019-08-08 10:15:56 +02:00
Hauke Petersen
02df6ab13f
Merge pull request #11000 from miri64/gnrc_sixlowpan_frag/new/vrb
gnrc_sixlowpan_frag: initial import of the VRB
2019-08-07 17:33:01 +02:00
Martine Lenders
2cd46e57ab tests: add unittests for gnrc_sixlowpan_frag_vrb 2019-08-07 16:19:36 +02:00
Hauke Petersen
4a75d0bdd5
Merge pull request #11463 from aabadie/nimble_nrf51
pkg/nimble: adapt to nrf51 family
2019-08-07 13:54:32 +02:00
Juan I Carrano
ff57a904e3
Merge pull request #10271 from mtausig/aes_rv
Fix return value of aes_init for keys of incorrect length
2019-08-07 13:26:25 +02:00
Mathias Tausig
0d80383a5c crypto: Add tests for aes_init return value on bad key length 2019-08-07 11:02:16 +02:00
Mathias Tausig
17b2f3ac54 crypto: Call AES tests with real key length 2019-08-07 11:02:16 +02:00
Mathias Tausig
0352c7406d crypto: Fix code style 2019-08-07 11:02:16 +02:00
Hauke Petersen
b72f606ef4
tests/nimble_l2cap: adjust buffer sizes for nrf51 2019-08-07 09:53:55 +02:00
Benjamin Valentin
4918dfe590 tests: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
accff501d9
tests/log_printfnoformat: add test application & script 2019-08-06 12:05:52 +02:00
60455a9f3a
Merge pull request #11962 from fjmolinas/pr_nucleol152re_qdsa
tests/pkg_qdsa: increase timeout
2019-08-05 16:18:46 +02:00
Francisco Molina
b2b915d217 tests/pkg_qdsa: increase timeout
- Some boards take longer than the default timeout to finish the test,
  e.g. nucleo-l152re
2019-08-05 15:27:36 +02:00
Hauke Petersen
2e73e7f043 tests: add Nordic SoftDevice test app 2019-08-05 12:09:00 +02:00
Hauke Petersen
7e9c7ee98d tests/nimble_l2cap: adjust buffer sizes 2019-08-01 16:15:56 +02:00
Martine Lenders
6e9612f1d1
Merge pull request #11928 from gschorcht/sys/event/detached_init
sys/event: fix of compilation problems
2019-07-29 17:02:14 +02:00
Gunar Schorcht
dcfd83c1ba tests/event: use EVENT_QUEUE_INIT_DETACHED
Changes the test so that EVENT_QUEUE_INIT_DETACHED is used for the initialization of detached event queue. Without this change, a compilation problem was not recognized for ESP8266, MSP430 and MIPS.
2019-07-29 16:40:41 +02:00
Francisco
9028be5e08
Merge pull request #11925 from leandrolanzieri/pr/tests/sx127x_reset_cmd
tests/driver_sx127x: Add reset command
2019-07-29 14:42:40 +02:00
Leandro Lanzieri
a9ab9d37e2
Merge pull request #11765 from kb2ma/coap/encode_resources
net/gcoap: add/publish link format attributes for a resource
2019-07-27 22:36:33 +02:00
Ken Bannister
d481ca9da7 net/gcoap: add selectable function to write a link 2019-07-27 07:09:40 -04:00
Leandro Lanzieri
3fd65f7517 tests/driver_sx127x: Add reset command 2019-07-26 13:53:33 +02:00
Juan I Carrano
7d3817e8f1
Merge pull request #11686 from cladmi/pr/tests/lua_loader/enable_in_ci
tests/lua_loader: run the test in CI
2019-07-26 12:14:10 +02:00
Martine S. Lenders
b8b1e4c0fb tests/gnrc_netif: check if if_pid is set correctly in header
Previously this was not tested and excepted KERNEL_PID_UNDEF == 0 as
legal value for received `gnrc_netif_hdr`s (which except for the
loopback interface is wrong)
2019-07-25 14:15:37 +02:00
kenrabold
e4bee51a9d tests/* : blacklisting for hifive1b 2019-07-19 13:25:18 -07:00
Martine Lenders
7d2cb71c51
Merge pull request #11564 from pokgak/credman
sys: add credman (D)TLS credential management module
2019-07-19 16:38:47 +02:00
Marian Buschsieweke
d15b8201b4
Merge pull request #10717 from keestux/refactor-evtimer-add-del
sys/evtimer: refactor evtimer add()/del()
2019-07-19 15:00:29 +02:00
Aiman Ismail
0a3f12ebbc tests: add credman unit tests 2019-07-19 13:56:40 +02:00
Aiman Ismail
8f75ff6b9a tests/unittests: rename set_up/tear_down caller
Renames the `tests_<module>_<header>_set_up` and in EMB_UNIT_TESTCALLER
`tests_<module>_<header>_tear_down` to `set_up` and `tear_down` respectively.
2019-07-19 12:10:12 +02:00
8150b014b1
Merge pull request #11801 from kaspar030/update_pkg_libcose
pkg/libcose: bump version
2019-07-18 09:44:32 +02:00
Kees Bakker
ea11de5258 tests/evtimer_msg: modify test to delete entries
The evtimer_msg test is expanded to also delete entries.

Furthermore the messages that are printed should now show
numbers that are very close (if not equal). Something like
this:
At    740 ms received msg 0: "#2 supposed to be 740"
At   1081 ms received msg 1: "#0 supposed to be 1081"
At   1581 ms received msg 2: "#1 supposed to be 1581"
At   4035 ms received msg 3: "#3 supposed to be 4035"

The function evtimer_print is also called to show the
intermediate status of evtimer entries.
2019-07-17 20:52:12 +02:00
Gaëtan Harter
78ca09dd43
tests/devfs: move tests-devfs out of unittests
This moves unittests/tests-devfs to its own test.
It prevents requiring `periph_hwrng` in the `unittests`.
2019-07-17 16:05:39 +02:00
40c89531d2 tests/pkg_libcose: update to nanocbor-based libcose
Co-authored-by: Francisco Molina <femolina@uc.cl>
2019-07-17 10:31:18 +02:00
43c3e43c40 tests/riotboot: add re-flashing and image selection test 2019-07-15 11:30:49 +02:00
Kevin "Bear Puncher" Weiss
da3a17212e
Merge pull request #11831 from jcarrano/farewell-mips-malta
boards/mips-malta: remove board.
2019-07-13 16:07:46 +02:00
Gaëtan Harter
50449b341c
tests/pkg_u8g2: run the test in CI
HACK, the test currently fails in CI for `native` due to `utf-8` handling.
2019-07-12 18:52:54 +02:00
Gaëtan Harter
ce58a32ba9
tests/lua_loader: run the test in CI
HACK, the test currently fails in CI for `native` due to `utf-8` handling.
2019-07-12 18:52:18 +02:00
6c895e1484
Merge pull request #11743 from cladmi/pr/ci/add_test_blacklist
murdock: introduce 'TEST_ON_CI_BLACKLIST'
2019-07-12 13:56:31 +02:00
Juan I Carrano
ee6b6b9c38 boards/mips-malta: remove board.
The mips-malta board is a maintainance burden, has no working UART input
and is unobtainable and thus must be removed.

1. Unobtainable board
=====================

The mips-malta board is not an off-the-shelf part. A quick web
search only show the MIPS website where one is told to "contact sales".

I could find it on ebay, used, at €155 and from single seller.

Not having access to the board means:

a. We cannot maintain it. In fact it could be broken right now.
b. Potential RIOT uses have not access to the board either. In other
   words, it is pointless to run on hardware nobody has.

2. No working UART input
========================

Not all applications need UART input, but that is no excuse for not supporting
it:

a. Makes development & debugging way harder.
b. It is impossible to run interactive tests.
 b.1. Constrains the rest of the platforms by providing an incentive to not
      make tests interactive.
c. The lack of UART is a witness to the poor quality of the port.

I want to stress point (c). If something as basic as a serial port cannot work,
how can we expect more complex fucntionality to work. The answer is impossible
to know, because of point (1).

3. Maintainance burden
======================

The RIOT project has limited time and human resources which can be better spent.

a. Compiling for mips-malta wastes CPU time.
b. Blacklisting the board in the test wastes contributor's time.
c. Adapting the board's makefile during build system rework takes time and makes
   the reworks harder.
 c.1. Add to that that the changes are most of the time not even tested on the board
      because of (1). Look at the github issues/PRs and you will see it.
d. Developers usually stick to the lowest common denominator. Issue (2) sets this
   denominator unacceptably low.

MIPS platform in general
========================

In commits I will address general issues in the MIPS platform and why it should all
be removed.
2019-07-12 12:24:52 +02:00
Francisco
ba5106df4f
Merge pull request #9517 from aabadie/pr/board/stm32l0538-disco
boards/stm32l0538-disco: add initial support
2019-07-09 09:06:14 +02:00
4ac2b4ec2b
tests: exclude stm32l0538-disco board
because of insufficient memory available
2019-07-08 21:50:36 +02:00
8370acb2ff tests/riotboot_flashwrite: blacklist some boards
Adding saml1[01]-xpro, nucleo-f302r8|f334r8 to
BOARDS_INSUFFICIENT_MEMORY.

The riotboot build fails because it only offers half the flash size (per
slot), compared to before where the default build would not use riotboot
at all, thus have double the flash (but being useless).
2019-07-08 16:54:43 +02:00
bb71e979f3 riotboot: set FLASHFILE to RIOTBOOT_EXTENDED_BIN
... if the riotboot feature is used.

Previously, even an application that had "FEATURES_REQUIRED += riotboot"
set would still flash the non-riotboot binary on "make flash".
This is usualy not what the user wants.

This commit set's the FLASHFILE variable to the combined "riotboot
bootloader + slot0 + empty slot1" binary. This has the effect that make
all, flash and flash-only will compile and/or flash a working riotboot
setup.

tests/riotboot and tests/riotboot_flashwrite now default to flashing the
riotboot-extended binary. tests/riotboot was previously configured to
use the riotboot-combined binary. This has been changed in order to not
behave differently than how usual riotboot applications do.
2019-07-08 16:33:01 +02:00
34d20f4e36
tests/nanocbor: enable for 8 and 16 bit platforms 2019-07-05 20:48:39 +02:00
91d982733f
Merge pull request #11600 from bergzand/pr/pkg/nanocbor
nanocbor: Initial support for the nanocbor package
2019-07-05 15:07:04 +02:00
86db9b88de
nanocbor: Add small test application 2019-07-05 14:26:18 +02:00
Francisco
ad23896696
Merge pull request #11777 from aabadie/pr/tests/pkg_semtech_loramac_init_twice
tests/pkg_semtech-loramac: don't init the mac from main
2019-07-04 18:15:45 +02:00
Martine Lenders
16f0751102
Merge pull request #11745 from miri64/gnrc_ipv6/fix/rm-dangerous-dup
gnrc_ipv6: remove obsolete and harmful reception code
2019-07-03 23:50:06 +02:00
Martine S. Lenders
b8269316e6 tests: add test case for pointer confusion
When subscribing to IPv6 packets on a router for sniffing, the NETIF
header is released prematurely, because of a wrong
`gnrc_pktbuf_start_write()` call. This test aims to reproduce this
error case.
2019-07-03 14:44:03 +02:00
660b375082
tests/pkg_semtech-loramac: don't init mac from main
This application already uses auto_init and semtech_loramac_init is already called from auto_init_loramac
2019-07-03 14:42:26 +02:00
Leandro Lanzieri
326ec30074
Merge pull request #11741 from jcarrano/deprecate-ubjson
sys/ubjson: deprecate module.
2019-06-28 19:41:21 +02:00
Juan Carrano
3b8deac3e9 sys/ubjson: deprecate module.
Summary for Users
=================

 Deprecation is scheduled for 2020.01.
 Users which depend on this module and cannot switch libraries may copy
 the code into to their own application.

As expressed in PR #11724, the UBJSON module has issues which are not easy
or worth fixing.

Before removing the module, it should be marked as deprecated to give users
time to either migrate to another library, or copy the code to their own
private repo.

The deprecation warning has been supressed from the unit tests. This has the
ugly side-effect of supressing deprecation warning in other unit tests too,
but that should not last long, only until the module is finally deleted.
2019-06-28 18:28:16 +02:00
Juan I Carrano
50ea0d822c
Merge pull request #11664 from cladmi/pr/make/variables_lazy_evaluation
makefiles/utils/variables: add functions to help managing variables
2019-06-28 17:11:29 +02:00
6c271f6927
Merge pull request #11736 from jia200x/pr/sx127x_netops
sx127x: add several NETOPT for GNRC LoRaWAN
2019-06-28 15:23:56 +02:00
Jose Alamos
398cf6648f tests/sx127x: add handlers for new NETOPTs 2019-06-28 11:36:11 +02:00
Gaëtan Harter
2c5eeca47a
makefiles/utils: function to memoize a variable evaluation
This allow deferring a variable evaluation to its usage but still
benefit from only evaluating it once on multiple uses.
2019-06-28 11:34:43 +02:00
Gaëtan Harter
fcf8c4782d
makefiles/utils: function to export variables for a target
This allows exporting variables only for some target.
It will allow not exporting variables when not needed, and so prevent
unnecessary evaluation.
2019-06-28 11:33:54 +02:00
Leandro Lanzieri
6938df1f82
Merge pull request #11659 from aabadie/pr/tests/driver_rn2xx3_tx_mode_fix
tests/driver_rn2xx3: fix invalid element index for txmode
2019-06-28 10:39:39 +02:00
José Alamos
14f91388bd
Merge pull request #11754 from jia200x/pr/sx127x_test_unc
drivers/sx127x: uncrustify main file
2019-06-27 15:43:21 +02:00
Jose Alamos
0a73369aea tests/driver_sx127x: uncrustify main file 2019-06-27 14:45:16 +02:00
Sebastian Meiling
4f5ce88ba6
Merge pull request #7421 from OTAkeys/pr/dev_urandom
devfs: add /dev/urandom and /dev/hwrng
2019-06-26 21:33:32 +02:00
Gaëtan Harter
bdd721fff4
tests/xtimer: blacklist native instead of whitelisting
Blacklist native for the xtimer tests that have timing issues.

This also enables running the test on `nrf52dk` as I think it was
forgotten when adding the support.
2019-06-26 17:53:58 +02:00
Gaëtan Harter
eab0a88642
Merge pull request #11679 from JulianHolzwarth/pr/xtimer_mutex_lock_timeout/first_tests
tests/xtimer_mutex_lock_timeout: add simple case test
2019-06-26 16:27:39 +02:00
JulianHolzwarth
b3d2324ccf tests/xtimer_mutex_lock_timeout: new test for mutex locked
New test function cmd_test_xtimer_mutex_lock_timeout_long_locked.
In this test the mutex is locked and the timeout is long.
When it works the thread continues running and stops waiting for the mutex and
the function will return that it did not get the mutex.
2019-06-26 15:28:25 +02:00
JulianHolzwarth
f207c6adc6 tests/xtimer_mutex_lock_timeout: minimal xtimer_mutex_lock_timeout test
Adding a first normal test case where the mutex is unlocked and the timeout is long.
The timer will not trigger in this test and instead wil be removed after getting the mutex.
2019-06-26 15:26:15 +02:00
5e2f2672e9
tests/*: add stdio_ethos as dependency instead of just ethos 2019-06-23 22:16:04 +02:00
d73a6c837b
tests/stdin: add non regression test for stdin 2019-06-22 22:10:20 +02:00
9c7a1e6a27
tests/lua_loader: add stdin dependency 2019-06-20 16:01:45 +02:00
7f5a402267
tests/posix_time,xtimer_usleep: add stdin dependency 2019-06-20 16:01:45 +02:00
Dylan Laduranty
ea36d68703
Merge pull request #11077 from bergzand/pr/usb/cdcecm
usbus: Add CDC-ECM (Ethernet Control Model) function
2019-06-14 18:44:27 +02:00
b13ef786bd
usbus_cdc_ecm: add test application 2019-06-14 17:15:19 +02:00
Hauke Petersen
4e9efe1fee
Merge pull request #11673 from aabadie/pr/exemples/nimble_radio_ble
pkg/nimble: add dependency to ble_nimble feature + remove board whitelist from tests and examples
2019-06-13 15:51:14 +02:00
Gaëtan Harter
224372d773
tests/lua_loader: remove deprecated test target
The test target is now defined in the common `Makefile.include`.
This removes the warning

    Makefile: warning: overriding recipe for target 'test'
    Makefile.include: warning: ignoring old recipe for target 'test'
2019-06-13 10:37:33 +02:00
e41df0c693
tests/nimble*: remove useless board whitelist 2019-06-12 17:41:31 +02:00
Leandro Lanzieri
864247d6ca unitttests/sock_util: Test null pointer in urlsplit 2019-06-12 10:03:11 +02:00
Gaëtan Harter
33b3b5f3ee
tests/netstats_l2: use BOARD_WHITELIST
Use BOARD_WHITELIST instead of calculating BOARD_BLACKLIST from BOARDS.

The output of `make info-boards-supported` kept the same.
2019-06-07 15:32:39 +02:00
5f5e58f1e2
tests/driver_rn2xx3: fix invalid element index to txmode 2019-06-07 10:47:23 +02:00
Kevin "Bear Puncher" Weiss
002e033f5e
Merge pull request #11612 from ben-postman/pr_cc26x0_uart_mode
cpu/cc26x0: implement uart_mode()
2019-06-06 15:43:07 +02:00
Ben Postman
567fa8e32d tests/periph_uart_mode: Add uart_mode test for single UART MCU
The existing periph_uart test depends on having more than one UART.
This test allows for manual testing with the use of a probe

on-behalf-of: @sparkmeter <ben.postman@sparkmeter.io>
2019-06-06 08:46:33 -04:00
Martine Lenders
71a7dc3539 unittests: add tsrb tests 2019-06-05 17:54:56 +02:00
Gaëtan Harter
bbb6dec054
Merge pull request #11630 from fjmolinas/pr_kinetis_ld
kinetis/ldscript: handle _rom_offset
2019-06-05 16:12:25 +02:00
francisco
985ee95d41 tests/cortexm_common_ld_script: add kinetis to whitelist 2019-06-04 18:11:55 +02:00
Martine Lenders
6b582fd5d0
Merge pull request #11593 from miri64/ipv6_ext/feat/frag
ipv6_ext: add fragmentation extension definitions
2019-06-04 17:12:51 +02:00
Martine Lenders
3e6cfcdb8c tests: provide unittests for ipv6_ext_frag 2019-06-04 16:24:28 +02:00
Gaëtan Harter
24a54fe853
tests/mcuboot: handle building 'mcuboot' in docker
When using BUILD_IN_DOCKER only make 'all' execute 'mcuboot' target when
inside the container. Otherwise it will execute it using your host
toolchain.

This is a hack and could be prevented by having a file target put in
FLASHFILE.

This does currently not allow flashing after building in docker as
flashing should be done with `mcuboot-flash` which will not be done in
docker. It would require the `FLASHFILE` fix to be done properly.
2019-06-03 18:09:32 +02:00
Leandro Lanzieri
f56709e0bb
Merge pull request #9726 from jcarrano/lua-loader-fix
pkg/lua: Make the module searchers conform to the API.
2019-06-03 11:47:06 +02:00
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