Joakim Nohlgård
e4e860a20a
frac: Integer fraction scaling library
2019-12-06 09:36:33 +01:00
Hauke Petersen
ca1fd87c9b
unittests: add tests for fmt_is_x() functions
2019-12-05 15:39:24 +01:00
Juan Carrano
bea30c3f89
sys/ubjson: remove module.
...
The ubjson module has a number of quality defects and is unsafe.
Considering CBOR is popular, standarized and supported in RIOT and that
the ubjson implementation is a home-grown one whose API will likely be
unfamiliar to new users, I propose to delete it.
This removal, of course, dows not have to be NOW. We can deprecate it for
one or two releases before.
What's wrong with this module?
- Unsafe: the parsing is done recursively. This is embedded in the API, so it
is not possible to fix it without changing the API. A document with too much
nesting can cause a stack overflow.
- Does not validate writing: it is possible to produce invalid output. From
the docs:
> The library won't complain if you write multiple values that are not
> inside an array or object. The result will just not be properly serialized.
- Poorly tested. As shown by #11702 , #11703 the tests were not even detecting
that a False was stored as True.
- In line with the previous remark, see
68dc5b0d6e/tests/unittests/tests-ubjson/tests-ubjson.c (L66-L77)
Why is the following code in the unit tests??
```c
irq_disable();
sched_set_status(data->main_thread, STATUS_PENDING);
```
- #2175 is still unfixed after 3.5 years.
- Code quality. The code has multiline macros that assign variables and
return. See c332514875/sys/ubjson/ubjson-write.c (L34-L41)
Can we mark it as deprecated this release and sweep it in the following one?
2019-12-01 23:44:39 +01:00
benpicco
e81d040a26
Merge pull request #12799 from chudov/derfmega-PR
...
boards/derfmega*: initial support
2019-11-28 13:57:56 +01:00
chudov
0a151a78da
boards/derfmega*: initial support
2019-11-27 20:53:14 +01:00
Francisco Molina
416c048737
tests: add test_utils_interactive_sync when possible
...
- Define test_utils_interactive_sync as DEFAULT_MODULE in Makefile.tests_common
- For tests disabling autoinit, add test_utils_interactive_sync to main
- Add DISABLE_MODULE += test_utils_interactive_sync for tests requiring
sudo, `tests/shell`, `tests/minimal` and `tests/stdin`
- Add shell_commands to tests/periph_wdt and tests/struct_tm_utility to
pull `r` and `s` commands
- Remove includes and usage in `tests/main.c` for tests that where
already using test_utils_interactive_sync
2019-11-27 15:07:42 +01:00
90d2e6ac8b
tests/unittests: fix typos
2019-11-23 22:39:37 +01:00
Francois Berder
4a31f94cfc
many typo fixes
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Martine S. Lenders
27510b72f8
tests/unittests: add tests for missing bitfield functions
2019-11-21 12:38:31 +01:00
Martine S. Lenders
880a68c11f
tests/unittests: fix existing bitfield tests for new bit-order
2019-11-21 11:43:31 +01:00
Leandro Lanzieri
a78354c271
tests/unittests/ipv6_addr: Add tests for ipv6_addr_split_prefix
2019-11-15 14:35:30 +01:00
Leandro Lanzieri
b5930af760
tests/unittests/ipv6_addr: Add tests for ipv6_addr_split_iface
2019-11-15 14:35:30 +01:00
benpicco
9ca9f07c04
Merge pull request #12592 from benpicco/luid-fix
...
sys/luid: add luid_get_eui48() / luid_get_eui64()
2019-11-07 18:34:37 +01:00
Martine Lenders
a1d402e015
Merge pull request #12559 from miri64/gnrc_sixlowpan_frag/enh/factor-out-frag-buf
...
gnrc_sixlowpan_frag: factor-out and rename fragmentation buffer
2019-11-07 09:47:46 +01:00
benpicco
035bac0bf4
Merge pull request #12639 from aabadie/pr/boards/atmega256rfr2
...
boards/atmega256rfr2-xpro: initial support
2019-11-05 19:03:49 +01:00
Benjamin Valentin
24ae298115
unittests: add rtc_tm_compare() to unittest
2019-11-05 12:52:45 +01:00
602f9d7f9c
tests: exclude atmega256rfr2-xpro where required
2019-11-05 10:40:59 +01:00
Benjamin Valentin
7b60214d94
unittests: add test for luid module
2019-11-04 21:08:33 +01:00
Martine Lenders
8c3dc66ad8
gnrc_sixlowpan_frag: factor-out and rename fragmentation buffer
...
The name `fragment_msg` or `frag_msg`/`msg_frag` always to me was a bit
misplaced, as it basically implements an asynchronous fragmentation
buffer and doesn't necessarily have anything to do with messages.
This change
1. changes the name to `fb` (for fragmentation buffer)
2. factors its code out to its own sub-module so it can be re-used by
other 6LoWPAN fragmentation schemes like [Selective Fragment
Recovery]
[Selective Fragment Recovery]: https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-05
2019-11-04 20:04:37 +01:00
Anton Gerasimov
6258713e5e
boards/cc1352-launchpad: Add BOARD_INSUFFICIENT_MEMORY entries
...
Signed-off-by: Anton Gerasimov <tossel@gmail.com>
2019-10-29 21:27:00 +01:00
Benjamin Valentin
58892fbbef
tests: add stm32f030f4-demo to Makefile.ci
2019-10-21 15:33:11 +02:00
Marian Buschsieweke
06d560f408
tests: Added atmega328p to Makefile.ci
...
Added the atmega328p board to the BOARD_INSUFFICIENT_MEMORY list where needed.
2019-10-21 12:54:46 +02:00
Benjamin Valentin
c01eae3239
tests: add microduino-corerf to Makefile.ci
2019-10-17 20:38:47 +02:00
Marian Buschsieweke
fd6fedaab6
tests: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci
...
- Moved the BOARD_INSUFFICIENT_MEMORY list into Makefile.ci
- Formatted the list to contain one board per line
- Sorted the lists alphabetically
2019-10-17 15:11:59 +02:00
Martine Lenders
18fc2c206f
unittests: fix tests-pkt
for non-32bit platforms
2019-10-15 10:40:07 +02:00
Martine Lenders
117ff2f862
unittests: remove board blacklist, fix doc for MCU architectures
2019-10-15 09:48:04 +02:00
Gaëtan Harter
589d7e5a46
applications: remove mentions of jiminy-mega256rfr2
...
Remove the deprecated board from BOARD_BLACKLIST and BOARD_INSUFFICIENT_MEMORY.
2019-10-08 18:37:32 +02:00
Francisco
94e00328c1
Merge pull request #12343 from cladmi/pr/board/slwstk6000b/split
...
boards/slwstk6000b-*: split one board for each module
2019-10-08 17:41:15 +02:00
Gaëtan Harter
1ab5a9390d
boards/slwstk6000b-*: split one board for each module
...
Define one board for each of the available modules.
2019-10-08 16:33:27 +02:00
4c8b6288ce
tests/unittests/base64: add test case for empty buffers
2019-10-08 15:38:27 +02:00
Ken Bannister
033b60b2d0
Merge pull request #11189 from leandrolanzieri/gcoap_link_format_options
...
sys: Add Link Format module
2019-10-05 06:46:15 -04:00
Leandro Lanzieri
3ca6a28e04
tests: Add unit tests for clif module
2019-10-04 11:35:52 +02:00
30457e4134
tests/unittests: exclude arduino-mkrwan1300
2019-10-03 09:34:34 +02:00
Martine Lenders
f4cca412de
Merge pull request #12303 from miri64/sixlowpan_sfr/feat/initial
...
sixlowpan_sfr: initial import Selective Fragment Recovery definitions
2019-10-01 09:46:25 +02:00
Martine S. Lenders
38571c66fe
tests: add unittests for net/sixlowpan/sfr.h helpers
2019-10-01 08:45:19 +02:00
Martine Lenders
04f59d6609
gnrc_sixlowpan_frag_vrb: re-use now unused super::dst for out_dst
2019-09-30 12:46:15 +02:00
benpicco
aebcef111d
Merge pull request #12300 from miri64/gnrc_sixlowpan_frag_vrb/fix/index
...
gnrc_sixlowpan_frag_vrb: fix for draft update
2019-09-29 19:27:20 +02:00
c72f286796
Merge pull request #12169 from maribu/blxxxpill
...
boards: Split off 128KiB version of bl*pill
2019-09-29 18:50:29 +02:00
Martine Lenders
a711852379
tests: unittests: remove duplicate static const
s from VRB tests
2019-09-29 18:36:28 +02:00
Martine Lenders
99183da998
tests: unittests: adapt 6LoWPAN VRB tests
2019-09-29 18:31:43 +02:00
Marian Buschsieweke
5659d16a5a
tests: BOARD_WHITELIST, BOARD_INSUFFICIENT_MEMORY
...
Added new blackpill-128kib and bluepill-128kib to BOARD_INSUFFICIENT_MEMORY
and BOARD_WHITELIST where needed.
2019-09-29 17:06:01 +02:00
Martine Lenders
e9ff46b2ea
gnrc_sixlowpan_frag_rb: unify naming scheme
2019-09-28 12:11:54 +02:00
Martine Lenders
aa84406ac1
Merge pull request #9940 from miri64/tests/enh/rgb2hsv-black
...
tests/unittests: test black corner case for color_rgb2hsv()
2019-09-27 15:02:10 +02:00
Martine Lenders
2c9ac91903
tests/unittests: test black corner case for color_rgb2hsv()
...
Tests a (currently undocumented) behavior of `color_rgb2hsv()`, that a
black RGB value (all zero) causes the HSV value to be all zero.
2019-09-27 09:35:39 +02:00
Dylan Laduranty
9c8cfaa02a
tests: add SAMR34 entry in BOARD_INSUFFICIENT_MEMORY
...
add samr34-xpro if test doesn't fit in its memory
2019-09-26 10:48:03 +02:00
Ken Bannister
1621cc1d39
Merge pull request #12075 from kb2ma/coap/options_get_opaque
...
net/nanocoap: get option bytes
2019-09-12 09:00:27 -04:00
Marian Buschsieweke
c262770634
Merge pull request #11413 from benpicco/rtc_sanitize
...
periph/rtc: normalize struct tm before usage
2019-09-12 12:47:56 +02:00
Benjamin Valentin
90a8a9666c
unittests: add tests for rtc_tm_normalize()
2019-09-12 11:32:27 +02:00
Martine Lenders
8911c514fd
Merge pull request #10951 from miri64/gnrc_ipv6_nib/enh/abr-helpers
...
shell/sc_gnrc_ipv6_nib: extend for ABR
2019-09-12 07:34:09 +02:00
Martine Lenders
5c2fec106a
tests/unittests: add tests for _abr_iter()
2019-09-11 23:51:20 +02:00
Ken Bannister
4ace366e8b
net/nanocoap: add unit test for get opaque option
2019-09-11 05:40:14 -04:00
Sebastian Meiling
c78ae0e33c
Merge pull request #12074 from kb2ma/coap/options_iterate
...
net/nanocoap: iterate options
2019-09-09 10:51:23 +03:00
Hauke Petersen
16bbd2f864
tests/unittests/bluetil: adapt to byteorder fixes
2019-08-28 16:49:21 +02:00
Ken Bannister
47ef5c1656
net/nanocoap: add unit test for iterate options
2019-08-24 07:46:54 -04: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
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
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
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
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
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
Benjamin Valentin
4918dfe590
tests: make use of ARRAY_SIZE macro
2019-08-06 19:43:54 +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
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
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
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
4ac2b4ec2b
tests: exclude stm32l0538-disco board
...
because of insufficient memory available
2019-07-08 21:50:36 +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
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
Leandro Lanzieri
864247d6ca
unitttests/sock_util: Test null pointer in urlsplit
2019-06-12 10:03:11 +02:00
Martine Lenders
71a7dc3539
unittests: add tsrb tests
2019-06-05 17:54:56 +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
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
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
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
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
e80fccaf50
Merge pull request #11511 from gdoffe/scanf_float
...
sys: add pseudomodule scanf_float
2019-05-28 18:23:43 +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
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
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
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
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
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
Sebastian Meiling
4242a026e9
Merge pull request #11197 from miri64/tests/fix/pktbuf-unittests-malloc
...
tests/unittests: exclude ENOMEM tests for gnrc_pktbuf_malloc
2019-03-29 10:03:11 +01:00
Hauke Petersen
ce5a08cd2c
unittests: added tests for bluetil_addr
2019-03-26 21:05:11 +01:00
Martine Lenders
a927a051db
tests/unittests: exclude ENOMEM tests for gnrc_pktbuf_malloc
2019-03-26 12:08:10 +01:00
Hauke Petersen
eae103cbd7
unittests/core: added tests for clist_count
2019-03-23 23:47:25 +01:00
Martine Lenders
4ee4625f39
Merge pull request #10357 from jcarrano/posix_headers-module
...
sys/posix: make posix module provide only headers.
2019-03-20 14:07:12 +01:00
Juan Carrano
6b766c3cd3
sys/posix: make posix module provide only headers.
...
The build system contains several instances of
INCLUDES += -I$(RIOTBASE)/sys/posix/include
This is bypassing the module management system, by directly accesing
headers without depending on a module. The module is the posix module.
That line is also added when one of the posix_* modules is requested.
According to the docs, the posix module provides headers only, but in
reality there is also inet.c.
This patch:
- Moves `inet.c` into `posix_inet`, leaving `posix` as a headers-only
module.
- Rename `posix` as `posix_headers` to make it clear the module only
includes headers.
- Makes `posix_*` modules depend on `posix_headers`, thus removing the
explicit `INCLUDES+=...` in `sys/Makefile.include`.
- Ocurrences of `INCLUDES+=...` are replaced by an explicit dependency
on `posix_headers`.
2019-03-20 12:57:13 +01:00
Ken Bannister
7d259cc268
net/gcoap: verify error when overfill on coap_opt_finish
2019-03-19 05:30:04 -04:00
Ken Bannister
58faa35156
tests/nanocoap: verify error when overfill buffer
2019-03-19 05:30:04 -04:00
Hauke Petersen
9fb2f541ba
net/gnrc_pktbuf: rm deprecated _pktbuf_get_iovec()
2019-03-15 10:21:22 +01:00
Marian Buschsieweke
0e90e6195f
tests: Updated Updated BOARD_INSUFFICIENT_MEMORY
...
Added arduino-nano to BOARD_INSUFFICIENT_MEMORY/BOARD_BLACKLIST following suit
of how arduino-uno is marked, as arduino-nano is mostly an Uno in a different
form factor.
2019-03-14 15:39:54 +01:00
297efdd5b2
Merge pull request #10892 from kb2ma/gcoap/use_opt_finish
...
net/gcoap: Replace use of gcoap_finish() with coap_opt_finish()
2019-03-12 22:16:32 +01:00
Gaëtan Harter
8e4b11cdd0
Merge pull request #10369 from miri64/gnrc_ipv6_nib/fix/arsm-16-bit
...
gnrc_ipv6_nib/arsm: ensure proper int width in backoff calculation
2019-02-12 17:54:52 +01:00
Martine Lenders
f5086e76df
tests/unittests: add tests for exponential NS backoff
2019-02-12 17:01:14 +01:00
Martine Lenders
875377d622
tests/unittests: suppress cppcheck redundantAssignment warning
...
To make the CI happy ;-).
2019-02-08 23:35:37 +01:00
Martine Lenders
2451fb36f8
tests: add unittest for state corruption in NC cache-out
2019-02-08 19:22:51 +01:00
Kevin "Bear Puncher" Weiss
7dc243e3cc
Merge pull request #10220 from bergzand/pr/crypto/chacha20poly1305
...
chacha20poly1305: Initial implementation of AEAD cipher.
2019-02-04 12:52:24 +01:00
f4a4f5d0b1
chacha20poly1305: Provide a test based on the rfc
...
Add a test case to the crypto tests testing the chacha20poly1305
algorithm with the test vectors from rfc 8439.
2019-02-04 09:29:26 +01:00
Ken Bannister
e96209fddb
net/gcoap: use coap_opt_finish in unit tests
2019-01-27 09:14:46 -05:00
Sebastian Meiling
44234783da
Merge pull request #10823 from kb2ma/nanocoap/verify_before_write_option
...
net/nanocoap: validate option length
2019-01-24 09:23:26 +01:00
Dylan Laduranty
7afacf97e7
tests/*: add saml1*-xpro to BOARD_INSUFFICIENT_MEMORY
2019-01-21 17:11:32 +01:00
Dylan Laduranty
762e5251b4
tests/unittests: disable optimization for test_atomic_inc_rollover
...
Disable optimization for this function only with CPU_SAML1X MCUs due to an internal crosscompiler bug
2019-01-21 17:10:19 +01:00
Ken Bannister
715b79a1e7
tests/nanocoap: build request that fills buffer
2019-01-18 12:34:55 -05:00
9767dd3d49
Merge pull request #10754 from kaspar030/fix_nanocoap_optlen
...
nanocoap: fix server-side option_count overflow
2019-01-14 13:26:37 +01:00
Ken Bannister
1058a8d07e
tests/nanocoap: add test for option parse overflow
2019-01-14 12:30:06 +01:00
dd53bb89f7
tests/unittests/nanocoap: add test case for option_count overflow
2019-01-14 12:30:06 +01:00
Martine Lenders
1d5184a948
tests: move gnrc_rpl_srh unittests to dedicated test application
2019-01-11 15:18:52 +01:00
José Alamos
f14d46d935
Merge pull request #10242 from miri64/gnrc_ipv6_ext_rh/enh/icmpv6_error_msg
...
gnrc_ipv6_ext_rh: add ICMPv6 error message sending
2019-01-03 10:35:54 +01:00
Sebastian Meiling
139b5dba3c
Merge pull request #10501 from kb2ma/gcoap/req_path_null
...
net/gcoap: allow NULL path in gcoap_req_init()
2018-12-21 14:36:04 +01:00
Martine Lenders
be5dd81a79
tests/unittests: adapt rpl_srh tests for API change
2018-12-18 19:46:27 +01:00
1de4ae743a
tests: exclude nrf51dk from big tests
2018-12-04 08:37:00 +01:00
Kevin "Bear Puncher" Weiss
f05852290a
Merge pull request #9236 from bergzand/pr/crypto/poly1305
...
crypto: Poly1305 implementation
2018-12-03 14:31:28 +01:00
Peter Kietzmann
c83493728a
Merge pull request #10435 from leandrolanzieri/pr/boards/sodaq_sara_r410m
...
boards/sodaq-sara-aff: Initial support
2018-12-03 14:11:34 +01:00
Leandro Lanzieri
d53fbb0045
boards/sodaq-sara-aff: Initial support
2018-12-03 10:05:37 +01:00
d5c527161d
test/crypto: Add tests for poly1305
...
Tests are based on the tests vectors provided in RFC 7539
2018-12-03 09:31:10 +01:00
Joakim Nohlgård
36e5b8ef23
usb-kw41z: NXP USB-KW41Z wireless IoT USB dongle
2018-12-01 13:51:55 +01:00
Juan I Carrano
77c9cc4041
Merge pull request #10219 from bergzand/pr/crypt/helper_add_wipe
...
crypto/helper: Add secure wipe function
2018-11-30 11:32:45 +01:00
Martine Lenders
9d6a32b551
gnrc_mac: fix header includes
...
The inclusion of `net/gnrc.h` in `net/gnrc/mac/types.h` header makes it
impossible to include the `net/gnrc/netif.h` header within
`net/gnrc/netif/hdr.h`, due to `net/gnrc/mac/types.h` being included
with `net/gnrc/netif/mac.h` (which is included in `net/gnrc/netif.h`)
2018-11-29 12:39:34 +01:00
Ken Bannister
ffa0c5b03c
tests/gcoap: test NULL path in gcoap_req_init()
2018-11-28 13:26:04 -05:00
f9eebce43f
tests/qdsa: Move from unittests to regular tests
...
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.
2018-11-28 14:37:37 +01:00
Martine Lenders
85b9be71da
Merge pull request #10188 from smlng/pr/tests/pkg_cn-cbor
...
tests/cn-cbor: move from unittests to regular test
2018-11-27 23:51:11 +01:00
smlng
7b0a7db286
tests/cn-cbor: move from unittests to regular test
...
This moves tests for the cn-cbor package from unittests to a regular
test, which should help to decrease binary size of unittests.
2018-11-27 22:17:05 +01:00
smlng
618fd16699
tests/relic: move from unittests to regular test
...
This moves tests for the relic package from unittests to a regular
test, which should help to decrease binary size of unittests.
2018-11-27 20:41:26 +01:00
Juan I Carrano
050e06f20f
Merge pull request #10376 from cladmi/pr/crypto/ccm/const_input
...
crypto/modes/ccm: update api to const input buffers
2018-11-27 15:33:00 +01:00
Hauke Petersen
b603c298ef
Merge pull request #9156 from kb2ma/gcoap/use_opt_add_api
...
net/gcoap: Use nanocoap pkt/options API
2018-11-26 11:20:27 +01:00
Ken Bannister
424a01ddc1
net/gcoap: remove gcoap attributes from coap_pkt_t
2018-11-24 07:09:25 -05:00
Ken Bannister
f8e5b3dee3
net/gcoap: update tests for nanocoap options API
2018-11-24 07:09:25 -05:00
José Alamos
396f53c2a1
Merge pull request #10300 from miri64/tests/enh/gnrc_rpl_srh_unittests
...
unittests/tests-rpl_srh: various improvements
2018-11-23 13:48:16 +01:00
Martine Lenders
78164977d8
Merge pull request #10223 from kb2ma/nanocoap/string_opt_first_char
...
net/nanocoap: fix string option separator write handling
2018-11-22 16:43:45 +01:00
Ken Bannister
fa77929cc7
net/nanocoap: fix string option separator handling
...
Assumed initial character was a separator when writing the option,
and skipped over it.
2018-11-22 09:25:05 -05:00
Tobias Heider
b4f7259a93
tests: add gnrc_pktbuf_merge() unittests
2018-11-22 11:13:33 +01:00
Martine Lenders
a63dec8074
unittests/gnrc_rpl_srh: make test constructor static
2018-11-20 09:32:32 +01:00
Gaëtan Harter
5c426f0fc9
tests-crypto-modes-ccm: change test inputs to const
...
Do required changes to have test inputs as const buffers.
2018-11-19 16:44:04 +01:00
Gaëtan Harter
3ca51d8b5d
tests-crypto/test-crypto.h: update api to const input buffers
...
Input buffers are not modified, so can be declared const arguments.
This will allow using `const` inputs for `modes/ccm` tests.
2018-11-19 16:44:04 +01:00
Gaëtan Harter
c87fe94ec1
crypto/modes/ccm: update api to const input buffers
...
Input buffers are not modified, so can be declared const arguments.
2018-11-19 16:44:04 +01:00
Martine Lenders
a0067b925d
tests/unittests: provide tests for gnrc_pkt_len_upto()
2018-11-16 15:51:36 +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
730286903a
crypto/helper: Add test for crypto_secure_wipe
...
The test added for crypto_secure_wipe wipes a buffer with a secret in
it. Only the last byte is kept as it was. The last byte is used to check
that the function doesn't write outside the supplied buffer.
2018-11-07 18:27:10 +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
Martine Lenders
17738d7dd4
unittests/tests-rpl_srh: rename to tests-gnrc_rpl_srh
2018-10-30 12:41:45 +01:00
Martine Lenders
fb4689290d
unittests/tests-rpl_srh: add failure tests
2018-10-30 12:41:40 +01:00
Martine Lenders
c7b90aab81
unittests/tests-rpl_srh: factor-out pointer initialization
2018-10-30 12:26:15 +01:00
Martine Lenders
54a8caf0cd
unittests/tests-rpl_srh: reorder stack vars where appropriately
...
Also make constants static const ;-).
2018-10-30 12:16:38 +01:00
Martine Lenders
e56c6188ae
unittests/tests-rpl_srh: move buffers out of function context
...
Things like this already lead to problems in other unittests, so move
them out of the stack.
2018-10-30 12:14:47 +01: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
Martine Lenders
390ddfba7c
tests/unittests: adapt for value name changes
2018-10-25 14:02:46 +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
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
052fea24aa
tests/hacl: Move from unittests to regular test
2018-10-23 17:46:13 +02:00
fd7a05e635
tests: Add test for fletcher multipart functions
2018-10-23 17:35:58 +02: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
PeterKietzmann
9768995a0b
sys/ecc: add golay(24,12) ECC
2018-10-18 09:05:28 +02:00
Martine Lenders
6911589989
Merge pull request #10102 from PeterKietzmann/pr_bitarithm_types
...
core/bitarithm: change types to `uintXX_t`
2018-10-16 16:09:08 +02:00
Sebastian Meiling
ca90f9db2c
Merge pull request #10087 from kb2ma/nanocoap/fix_response_type
...
net/nanocoap: fix response type
2018-10-16 13:41:20 +02:00
dfe03562a8
Merge pull request #7401 from dailab/Firefly
...
boards: add Zolertia Firefly board
2018-10-16 10:28:48 +02:00
Ken Bannister
7bb0b0d7eb
unittests/nanocoap: add server side tests
2018-10-15 06:42:37 -04:00
726ebf3dad
coap: use COAP_FORMAT style content-format defines
...
Replaces all occurences of COAP_CT_.* with COAP_FORMAT_.*
2018-10-15 09:44:17 +02:00
PeterKietzmann
0ecaaf021c
core/bitarithm: add explicit 32-bit function
2018-10-08 13:57:21 +02:00
eafabe85a4
tests/unittest: exclude firefly board
2018-10-04 17:23:42 +02:00
Vincent Dupont
7e47e36e55
pkg/littlefs: fix file buffer size
2018-10-03 11:54:17 +02:00
Vincent Dupont
73e971fc56
uuid: add uuid_from_string()
2018-10-03 10:44:14 +02:00
Vincent Dupont
695a94449a
fmt: add scn_u32_hex()
2018-10-03 10:44:14 +02:00
Vincent Dupont
8c5ffa0a8d
fmt: add fmt_char
2018-10-03 10:44:14 +02:00
Vincent Dupont
db4ce5eff2
uuid: add uuid_to_string()
2018-10-03 10:44:14 +02:00
Vincent Dupont
71455b692f
fmt: add fmt_to_lower()
2018-10-03 10:44:14 +02:00
5b398930c1
tests/unittests: exclude samr30-xpro board
2018-10-01 10:20:41 +02:00
PeterKietzmann
29fca6dd56
unittests/tests-ecc: generalize ECC test
2018-09-28 08:53:25 +02:00
PeterKietzmann
b7615e9e1b
sys/ecc: remove separate hamming256 folder
2018-09-28 08:53:25 +02:00
Hauke Petersen
4a59113963
net/nanocoap: use correct type param for _bulid_hdr()
2018-09-26 13:00:39 +02:00
Sören Tempel
e523e8f5ec
sys/cbor: remove module
...
Fixes #7707
Fixes #7800
2018-09-25 21:07:29 +02:00
Silke Hofstra
ee82d4fbfe
boards, examples, tests: rename stm32mindev to blackpill
2018-09-19 16:22:14 +02:00
Leandro Lanzieri
177ef5bfa9
boards/lobaro-lorabox: Add initial support for Lobaro Lorabox board
2018-09-18 18:07:07 +02:00
Ken Bannister
cad1ccfa3b
net/nanocoap: add unit test for trailing slash in path
2018-09-11 10:06:57 +02:00
472bd0ae01
tests: remove obsolete local test targets
2018-09-07 15:13:08 +02:00
Martine Lenders
2350c46740
Merge pull request #9826 from kaspar030/fix_byteorder_bebuf
...
core/byteorder: fix bebuftohs() / htobebufs() on big endian
2018-09-03 14:35:29 +02:00
Hauke Petersen
04bc6ee069
unittests/nanocoap: adjust to api changes
2018-08-30 10:31:03 +02:00
face869e3e
tests/unittests/core: add byteorder_bebuftohs(), byteorder_htobebufs() tests
2018-08-23 10:34:59 +02:00
Toon Stegen
6a224d8bf2
unittests: add unittests for fmt_hex_byte
2018-08-20 16:19:30 +02:00
Gaëtan Harter
31aba49a31
Merge pull request #9759 from smlng/pr/pythonlibs/testrunner
...
dist: move testrunner to pythonlibs as package
2018-08-16 11:54:02 +02:00
José Alamos
a697689c4c
Merge pull request #9729 from leandrolanzieri/pr/sensebox
...
boards/sensebox: Add support for SenseBox board
2018-08-15 10:04:57 +02:00
smlng
3893f04d00
tests: move testrunner import up
...
Testrunner is now impported as a package found in PYTHONPATH, so
import can be placed at the top of the script as usual.
2018-08-13 14:11:24 +02:00
smlng
f9824abedb
tests: remove unused os package import
...
os package is imported by every test script but only used by
a few, thus flake8 check reported errors.
2018-08-13 14:11:23 +02:00
smlng
13d61b5c20
tests: use testrunner from pythonlibs
...
Remove now obsolete sys.append from all tests, as testrunner was moved
to dist/pythonlibs as proper package.
2018-08-13 14:11:23 +02:00
Jose Alamos
d54a74736d
boards/sensebox: Initial board port for SenseBox MCU with SAMD21
2018-08-13 10:49:46 +02:00
Ken Bannister
3f3df74bcd
Merge pull request #7237 from Ell-i/feature-gcoap-extra-indirection
...
net/gcoap: Make references to coap_resource_t all const in gcoap
2018-08-07 23:52:59 -04:00
Kees Bakker
65730b597f
tests/unittests: add sodaq-one to cortex-M boards
...
Also add sodaq-one to the boards with insufficient memory
2018-08-07 11:06:14 +02:00
Kevin Weiss
a48b8e741b
boards/openmote-b: Add board support
2018-08-07 10:32:03 +02:00
Pekka Nikander
33c84591e9
{examples,tests}/gcoap: Remove unnecessary type casts
2018-07-30 09:01:30 +03:00
e91af6d556
sock_util: Add tests
2018-07-20 11:48:29 +02:00
Gaëtan Harter
690fdb11ab
unittests: increase test timeout
...
It currently takes 1m30 to run on iotlab-m3.
2018-07-17 17:00:17 +02:00
Ken Bannister
03115a7c0c
Merge pull request #9444 from kb2ma/nanocoap/test_get_uri_path
...
net/nanocoap: test coap_get_uri() boundaries
2018-06-28 13:06:30 -04:00
Ken Bannister
a7e5562268
net/nanocoap: test coap_get_uri() boundaries
2018-06-27 23:28:37 -04:00
Marian Buschsieweke
2bff79ef56
tests/unittests: Added unit tests for sht1x
...
- Added unit tests for new integer only arithmetic
- Temperature conversion differs at most 0.01°C from double arithmetic
- Humidity conversions differs at most 0.1% from double arithmetic
2018-06-27 08:58:02 +02:00
smlng
854082272a
tests/unittests: remove invisible unicode chars
2018-06-22 11:25:31 +02:00
smlng
3b84dad680
tests/unittests, cn_cbor: remove invisible unicode char from Makefile
2018-06-22 09:23:30 +02:00
afe02bcbf4
tests/fmt: Extend test with fmt_strnlen
2018-06-14 11:57:11 +02:00
32057a8c46
tests: fix doxygen grouping
2018-06-11 19:12:02 +02:00
Ken Bannister
aa0d02e994
net/nanocoap: unit tests for pkt-based request
2018-06-10 08:44:16 -04:00
Francisco Acosta
42d58373f5
Merge pull request #8802 from basilfx/feature/efm32_slstk3402a
...
boards: slstk3402a: add support
2018-06-04 15:35:22 +02:00
Marian Buschsieweke
e0bf20728c
examples, tests: Updated BOARD_INSUFFICIENT_MEMORY
...
Added stm32mindev to BOARD_INSUFFICIENT_MEMORY where needed
2018-06-04 09:03:30 +02:00
Bas Stottelaar
bfb820b989
tests: unittests: add to list of ARM boards.
2018-06-03 16:48:30 +02:00
Bas Stottelaar
283e5fb2c2
tests: unittests: blacklist efm32 boards with insufficient memory
2018-05-25 20:36:21 +02:00
fce61f91f0
Merge pull request #9046 from bergzand/pr/uuid/initial
...
uuid: Initial import of RFC4122 UUID functions
2018-05-25 15:05:57 +02:00
Vincent Dupont
c10568f02c
boards: use marketing name for stm32f769i-disco
2018-05-23 19:21:30 +02:00
b7c7d57740
unittests: Add unittest for uuid module
2018-05-23 16:31:02 +02:00
eaf2698a69
boards/nucleo-l432kc: rename to st marketing name
2018-05-23 12:55:36 +02:00
3bbf8c01ab
boards/nucleo-f303k8: rename to st marketing name
2018-05-23 12:51:41 +02:00
633a92929d
boards/nucleo-l031k6: rename to st marketing name
2018-05-23 12:50:33 +02:00
81700d4301
boards/nucleo-f042k6: rename to st marketing name
2018-05-23 12:49:40 +02:00
3e4f7adc95
boards/nucleo-f031k6: rename to st marketing name
2018-05-23 12:46:42 +02:00
07c2c46e16
tests: use new nucleo-f767zi name
2018-05-23 12:09:28 +02:00
d59c77d9c8
tests: use new nucleo-f746zg name
2018-05-23 12:09:28 +02:00
765a820d5b
tests: use new nucleo-f722ze name
2018-05-23 12:09:28 +02:00
ede9ff7af3
tests: use new nucleo-f446ze name
2018-05-23 12:08:53 +02:00
0bb43db9f2
tests: use new nucleo-f429zi name
2018-05-23 12:08:53 +02:00
3a78497211
tests: use new nucleo-f413zh name
2018-05-23 12:08:53 +02:00
033311ae94
tests: use new nucleo-f412zg name
2018-05-23 12:08:53 +02:00
9be89c120b
tests: use new nucleo-f303ze name
2018-05-23 12:08:53 +02:00
51c290ba90
boards/nucleo-l476rg: rename to marketing name
2018-05-22 22:02:57 +02:00
ba3478fa1e
boards/nucleo-l152re: rename to marketing name
2018-05-22 22:02:57 +02:00
a5436e0b66
boards/nucleo-l073rz: rename to marketing name
2018-05-22 22:02:57 +02:00
18435609ce
boards/nucleo-l053r8: rename to marketing name
2018-05-22 22:02:57 +02:00
5821bfd68e
boards/nucleo-f446re: rename to marketing name
2018-05-22 21:52:41 +02:00
de783eed78
boards/nucleo-f411re: rename to marketing name
2018-05-22 21:52:41 +02:00
1d1354bf82
boards/nucleo-f410rb: rename to marketing name
2018-05-22 21:52:41 +02:00
7818c1a080
boards/nucleo-f401re: rename to marketing name
2018-05-22 21:52:41 +02:00
b0912659b5
boards/nucleo-f334r8: rename to marketing name
2018-05-22 21:52:41 +02:00
c7b5b0f992
boards/nucleo-f303re: rename to marketing name
2018-05-22 21:52:41 +02:00
72df36909b
boards/nucleo-f302r8: rename to marketing name
2018-05-22 21:52:41 +02:00
2004fb2881
boards/nucleo-f103rb: rename to marketing name
2018-05-22 21:52:41 +02:00
b8895c1946
boards/nucleo-f091rc: rename to marketing name
2018-05-22 21:52:41 +02:00
4b20095dc8
boards/nucleo-f072rb: rename to marketing name
2018-05-22 21:52:41 +02:00
9acde8e148
boards/nucleo-f070rb: rename to marketing name
2018-05-22 21:52:41 +02:00
bd6a7c3d26
boards/nucleo-f030r8: rename to marketing name
2018-05-22 21:52:41 +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
e7b3e4bf64
tests: unittests: disable for new efm32 boards.
2018-05-13 18:59:12 +02:00
a0077f3c4b
tests/unittests: test clist_foreach() return value
2018-05-12 00:13:41 +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
Gaëtan Harter
154fbcff35
tests: use RIOTTOOLS variable
...
Follow up to #9067 and part of #8821
2018-05-04 10:52:26 +02:00
Joakim Nohlgård
5c59f6a39a
unittests: Add tests for matstat library
2018-04-28 08:03:35 +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
355c559ae9
test/cn-cbor: Use memarray as block allocator
2018-04-16 15:27:43 +02:00
ad8e69da96
pkg/cn-cbor: compile with context pointer support
2018-04-16 15:27:43 +02:00
Joakim Nohlgård
69e9767184
unittests: Add analog_util tests
2018-04-16 13:53:49 +02:00
4f4ee31f6b
Merge pull request #8949 from bergzand/pr/tests/cn_cbor_fix_memleak
...
unittests/cn_cbor: fix memory leak
2018-04-16 10:55:46 +02:00
35c9f999d3
tests/cn_cbor: fix memory leak
2018-04-16 10:01:12 +02:00
46938f6153
Merge pull request #8244 from beurdouche/hacl_ng
...
pkg: add support for HACL*
2018-04-14 21:32:43 +02:00
Benjamin Beurdouche
1d3207f38b
Initial HACL* package and tests
2018-04-14 13:43:27 +02:00
ee3675e39a
tests/tweetnacl: Cleanup headers and includes
2018-04-14 12:47:32 +02:00
6b01f4d388
Merge pull request #7263 from haukepetersen/opt_fmt_s16dfp_pos
...
sys/fmt: extended fmt_s16_dfp to handle scales
2018-04-13 09:54:08 +02:00
d64d38b391
Merge pull request #8909 from miri64/doc/enh/ipv6-rfc
...
doc: update IPv6 RFC references
2018-04-12 12:11:23 +02:00
8841486f2e
Merge pull request #8741 from OTAkeys/pr/fix_spiffs_summy_mem
...
unittests/tests-spiffs: fix dummy mtd (as in #8607 )
2018-04-10 23:47:29 +02:00
b33ae7df4f
unittests/tests-nanocoap: add coap_get_uri() test
2018-04-10 20:58:06 +02:00
Martine Lenders
23bdc80e22
doc: update IPv6 RFC references
...
RFC 2460 was obsoleted by RFC 8200. This PR changes the references
around, so we don't reference an obsoleted RFC ;-).
Also I'm moving these references from the old-style HTML-like format
to the newer-style Markdown-like format.
2018-04-10 15:40:18 +02:00
d7bf2c112e
Merge pull request #7491 from aabadie/nucleo_l433
...
boards/nucleo-l433rc: initial support
2018-04-07 21:12:14 +02:00
Hauke Petersen
ac93818c90
unittests/fmt: adapt and enhance tests for sxx_dfp()
2018-04-06 12:10:18 +02:00
Francisco Acosta
baf1b8f6e9
Merge pull request #8791 from kaspar030/fix_cn-cbor
...
pkg: cncbor: misc fixes
2018-04-04 16:18:43 +02:00
0a553401c8
tests/unittests: support CI on-hardware testing
2018-03-28 18:28:54 +02:00
be5ae87262
Merge pull request #8829 from ZetaR60/RIOT_xplained
...
cpu/atmega1284p: support and boards/mega-xplained: support
2018-03-27 10:03:15 +02:00
Matthew Blue
9378d6c133
tests/* : blacklisting for mega-xplained
2018-03-26 11:17:23 -04:00
Joakim Nohlgård
f4fce5b2d2
unittests: Add test for phydat (phydat_fit)
2018-03-22 15:21:01 +01:00
86ea22a1c1
tests/unittests: blacklist nucleo-l433rc board
2018-03-21 17:07:28 +01:00
Emmanuel Baccelli
88e61ed353
Merge pull request #8781 from kaspar030/add_qdsa_pkg
...
pkg: add qDSA package
2018-03-16 16:30:38 +01:00
809c4b7724
unittests: unify configuration of large main stack
2018-03-16 16:00:58 +01:00
47998af5ee
unittests: add msba2 to list of insufficient memory boards
2018-03-16 16:00:58 +01:00
b22d3e4bd6
tests/unittests: add qDSA unittests
2018-03-16 16:00:58 +01:00
6b189f988d
tests/unittests/tests-cn_cbor: make use of fmt_hex_bytes()
2018-03-16 15:35:13 +01:00
Emmanuel Baccelli
a367e378c8
Merge pull request #8467 from lorenz9314/pr_cn_cbor_unit_tests
...
pkg: add cn-cbor CBOR implementation plus unit tests
2018-03-16 14:28:44 +01:00
Lorenz Hüther
711766312f
tests/unittests: Added unit tests for pkg cn-cbor, removed old tests.
2018-03-16 13:52:40 +01:00
2b33f460d1
tests/unittest/tests-tweetnacl: increase main stacksize
2018-03-14 09:52:36 +01:00
c59c4897f2
tests/unittests: add tweetnacl sign/verify test
2018-03-14 07:34:51 +01:00
d025de32ed
Merge pull request #8351 from kaspar030/introduce_iolists
...
net: Introduce iolists
2018-03-07 09:56:13 +01:00
Martine Lenders
0b928b797a
Merge pull request #7881 from mtausig/feature/sha3
...
Add support for SHA-3 hash function
2018-03-06 17:34:05 +01:00
Mathias Tausig
792137f88d
hashes:sha3: Integrate SHA-3 into RIOT API
...
Add init/update/final interface
Add interface functions for direct SHA3
Add unit tests for SHA-3
Document functions and types
Reduced var scope in Keccak code
Add CCO Copyright notice to Keccak code
2018-03-06 16:18:18 +01:00
da67e3a8eb
tests/unittests: adapt to iolist pktsnip
2018-03-06 14:00:32 +01:00
c935a07513
sys/net/gnrc/pkt: match pktsnip struct start with iolist_t
2018-03-06 14:00:31 +01:00
Vincent Dupont
d938a9f68e
unittests/tests-spiffs: fix dummy mem (as in #8607 )
2018-03-05 18:36:58 +01:00
Vincent Dupont
03ecb0c6f3
Merge pull request #8607 from OTAkeys/pr/fix_littlefs_unittests
...
unittests/tests-littlefs: fix dummy mtd
2018-03-05 17:05:24 +01:00
Vincent Dupont
36e1d6b335
unittests/tests-littlefs: fix dummy mtd
...
_init function were erasing whole memory leading to losing everything
when mounting or formating the memory
2018-03-05 11:04:34 +01:00
Joakim Nohlgård
2d53178cc5
boards/frdm-kw41z: Add NXP FRDM-KW41Z
...
https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/kinetis-cortex-m-mcus/w-serieswireless-conn.m0-plus-m4/freedom-development-kit-for-kinetis-kw41z-31z-21z-mcus:FRDM-KW41Z
2018-03-02 15:40:35 +01:00
Vincent Dupont
647133f5c5
unittests/tests-spiffs: add partition test
2018-03-02 13:45:18 +01:00
a10a755548
Merge pull request #8629 from ochristi/fix_test_atomic_dec_positive
...
unittests/tests-core: Fix tests in loop not being executed
2018-02-26 16:04:46 +01:00
MichelRottleuthner
bad08596f6
Merge pull request #8399 from OTAkeys/fix/mtd_native_write
...
mtd_native: fix overlapping pages write check
2018-02-26 15:38:46 +01:00
Vincent Dupont
f04ecee9f6
mtd_native: fix overlapping pages write check
2018-02-26 15:32:06 +01:00
o0c
d7853ac87f
unittests: fix loop in tests-core-atomic
2018-02-26 14:52:05 +01:00
Martine Lenders
2757f1d7dd
Revert "unittests: adapt tests-netreg"
...
This reverts commit a7b7789388
.
2018-02-22 20:29:55 +01:00
Ken Bannister
d7004ebcd8
Merge pull request #8513 from kaspar030/nanocoap_add_context_to_resources
...
nanocoap: add context pointer to resources
2018-02-22 18:30:43 +00:00
Ronald Weber
1293113dca
unittests/saul_reg: Add unit test for saul_reg_rm of list head
...
This also leaves the global saul_reg list in the same empty state like
before the unit tests.
2018-02-18 12:05:54 +01:00
Joakim Nohlgård
d24cd4fd73
unittests/vfs: Add test case for #8309
2018-02-13 18:14:58 +01:00
Joakim Nohlgård
85125d04ef
unittests/vfs: Add test for vfs_bind invalid FD argument
2018-02-12 08:46:44 +01:00
Vincent Dupont
5ede5db234
pkg/littlefs: add format implementation
2018-02-09 14:29:46 +01:00
Vincent Dupont
6c2d7ecac6
unittests/spiffs: add a format test
2018-02-09 14:29:45 +01:00
Martine Lenders
47bbeb8969
Merge pull request #8517 from smlng/enh/gnrc/netreg
...
gnrc_netreg: some optimisations
2018-02-07 08:22:44 +01:00
Joakim Nohlgård
30ad56d133
Merge pull request #8522 from gebart/pr/fmt_s64_dec
...
sys/fmt: Add fmt_s64_dec, print_s64_dec
2018-02-07 07:55:42 +01:00
smlng
a7b7789388
unittests: adapt tests-netreg
2018-02-06 21:40:47 +01:00
56d5ceb601
tests: instead of cpp-style, use C-style comments
2018-02-06 16:59:58 +01:00
Joakim Nohlgård
5ec44c82ba
fmt: Add fmt_s64_dec, print_s64_dec
2018-02-06 11:04:42 +01:00
Joakim Nohlgård
8ecf3c6bb6
unittests/fmt: Basic check for buffer overflow errors
2018-02-06 11:03:05 +01:00
Joakim Nohlgård
19d3995504
unittests/fmt: Add max test for fmt_u16_dec
2018-02-06 11:03:05 +01:00
Joakim Nohlgård
3b90481bed
unittests/fmt: Add test for min/max in fmt_s32_dec
2018-02-06 11:03:05 +01:00
96fb3b1e21
tests/unittests/tests-gcoap: adapt to resource context ptr
2018-02-02 19:02:31 +01:00
Gaëtan Harter
14ac1fa577
Merge pull request #8109 from cladmi/pr/tests-crypto-modes-ccm/refactoring
...
tests-crypto-modes-ccm: Refactoring to support more evolved tests
2018-01-30 21:05:51 +01:00
8d0815d386
boards: rename nucleo144-f207 to nucleo-f207zg
2018-01-29 22:14:25 +01:00
Sebastian Meiling
c2400083ae
Merge pull request #8440 from miri64/tests/fix/deactivate-DEVELHELP
...
tests: deactivate DEVELHELP for unittests
2018-01-26 16:03:40 +01:00
Vincent Dupont
c7d02497f4
unittests/littlefs: fix unittests
...
Dummy RAM mtd was too small to run unit tests correctly.
Added some sectors and reduced page size.
2018-01-26 15:08:06 +01:00
Martine Lenders
cc729bd26a
tests: deactivate DEVELHELP for unittests
...
In my opinion it doesn't make sense to activate DEVELHELP for unittests
because it also causes the evaluation of `assert()`. This causes the
tests to crash for values the tests test intentionally (because it is
the point of the unittests to test also some unexpected values and how
this influences the behavior).
2018-01-25 16:24:43 +01:00
6e0dfcec8d
tests/unittests: skip arduino-mkrfox1200
2018-01-25 11:56:27 +01:00
cefb7974d7
Merge pull request #8210 from astralien3000/teensy31
...
boards/teensy31 : initial support of Teensy 3.1 & 3.2
2018-01-18 09:14:51 +01:00
3f990480d1
Merge pull request #7162 from kb2ma/nanocoap/msgid_byte_order
...
nanocoap: fix byte order of request message ID, and add test application
2018-01-17 22:59:07 +01:00
Loïc Dauphin
f200c310ad
tests/unittests: add teensy31 to BOARD_INSUFFICIENT_MEMORY
2018-01-17 18:14:00 +01:00
Ken Bannister
7e5d14fbf0
net/nanocoap: add test for message ID byte order
2018-01-12 05:58:52 -05:00
2b6e42672c
tests/unittests: add fmt hex/bytes converter tests
2018-01-10 21:50:10 +01:00
Vincent Dupont
c8eb77e8ff
pkg: add littlefs pkg and vfs integration
2018-01-09 17:03:44 +01:00
Gaëtan Harter
30202f9de7
tests/ccm: check output buffer size
...
Add static test to verify output buffer is big enough for testing.
2018-01-04 18:01:58 +01:00
Gaëtan Harter
a83a1a80e5
tests/ccm: support input/adata bigger than 256
...
Fix data types to have bigger sizes.
The 'data' buffer size will still need to be increased when adding bigger tests.
2018-01-03 12:02:29 +01:00
Gaëtan Harter
e74b0ff33d
tests/ccm: set 'len_encoding' from 'nonce_len'
...
Configure len_encoding in test depending on nonce_len.
Prepare for tests with nonce_len != 13.
2018-01-03 12:02:28 +01:00
Gaëtan Harter
b5c1855d7e
tests/ccm: make 'mac_length' configurable in test
...
Preparation to add tests with different mac_length than 8.
2018-01-03 12:02:20 +01:00
Gaëtan Harter
fc3efbd0ee
tests/ccm: add macro to simplify test call
2018-01-03 12:02:16 +01:00