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

3095 Commits

Author SHA1 Message Date
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
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
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