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

932 Commits

Author SHA1 Message Date
MyCodeMyMoney
4167d4dd9b tests/unittests/tests-core/tests-core-ringbuffer: test underflow 2020-01-07 12:56:17 +01:00
Francisco
d4c3476669
Merge pull request #12944 from leandrolanzieri/pr/kconfig_migrate/net/sock_util
Kconfig: Expose net/sock/util configurations
2020-01-03 11:41:20 +01:00
Benjamin Valentin
5d8aa6ad9a tests/checksum: add tests for crc8
Taken from tests-checksum-crc16-ccitt.c
2019-12-13 14:50:33 +01:00
Leandro Lanzieri
c74fa5367c net/sock/util: Move configuration macros to 'CONFIG_' namespace
Macros that changed:
SOCK_SCHEME_MAXLEN -> CONFIG_SOCK_SCHEME_MAXLEN
SOCK_HOSTPORT_MAXLEN -> CONFIG_SOCK_HOSTPORT_MAXLEN
SOCK_URLPATH_MAXLEN -> CONFIG_SOCK_URLPATH_MAXLEN
2019-12-13 12:04:54 +01:00
418d00d0ea
Merge pull request #9283 from gebart/pr/frac
sys/frac: Integer fractions
2019-12-09 09:09:10 +01:00
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 consts 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