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

1287 Commits

Author SHA1 Message Date
Benjamin Valentin
eaf5162b5d tests/unittests: add test for kernel_defines 2021-09-21 17:43:29 +02:00
Leandro Lanzieri
e0b9d8b602
tests/unittests/credman: add tests for key load functions 2021-09-20 08:11:01 +02:00
Martine Lenders
913573a200
Merge pull request #16702 from miri64/ut_process/feat/initial
ut_process: initial import of a URI template processor
2021-09-17 09:43:20 +02:00
Martine Lenders
c844c73629
tests/unittests: provide test cases for ut_process 2021-09-16 18:18:48 +02:00
benpicco
025770968b
Merge pull request #16036 from bergzand/pr/gd32vf103/initial
gd32v/seeedstudio-gd32: Initial support
2021-08-25 00:38:00 +02:00
f8bb757bae seeedstudio-gd32: Initial include of board
The seeedstudio-gd32 is an small development board based on the
gd32vf103 MCU

Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2021-08-24 14:30:23 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Martine Lenders
4d2a942b5e
tests/unittests: amend uri_parser tests for query-splitter 2021-08-04 12:47:28 +02:00
Benjamin Valentin
a53e8e3138 unittests: rtt_rtc: add test for rtc_get/settimeofday() 2021-07-28 00:35:47 +02:00
Francisco Molina
1fa6374530
boards/lora-e5-dev: initial support 2021-07-21 11:28:16 +02:00
6aa8fd650b tests/unittests/tests-ipv6_hdr: fix too short ipv6_hdr_t allocations 2021-07-05 22:35:29 +02:00
ddc30a198a unittests/tests-ipv6_addr: test_ipv6_addr_to_str__addr_NULL(): zero a 2021-07-05 16:51:16 +02:00
b388a2a440 unittests/tests-ipv4_addr: test_ipv4_addr_to_str__addr_NULL(): zero a 2021-07-05 16:50:44 +02:00
MrKevinWeiss
48ef2ec2da
tests/ieee802154: Add unit tests for 2021-06-23 16:44:09 +02:00
Francisco
d7b3328601
Merge pull request #16098 from kfessel/p-remove-lifo
core/lifo: Remove lifo [after 2021.04]
2021-06-15 13:55:30 +02:00
Ollrogge
427d2bd06e sys/crypto: Enable support for AES-192, AES-256 2021-05-03 17:34:49 +02:00
20981e5f7c tests/unittests: tests-ztimer: add ztimer_is_set() regression test 2021-04-22 11:12:48 +02:00
Akshai M
bd8f571895 unittests: Add WL to insufficient mem list 2021-04-20 21:04:36 +02:00
Karl Fessel
5735d99971 core/clist: add special cardinality tests and matching unittest
adds clist_exactly_one() and clist_more_than_one()
and a unittest that tests them
2021-04-14 21:00:10 +02:00
Martine Lenders
873b71c3e9
tests/unittests/tests-rtc: do not use DST info for normalization
`rtc_tm_normalize` does not use it, so `mktime` should not either.
2021-04-13 14:37:19 +02:00
f48aba5035 tests/unittests: add clist_is_empty() test case 2021-04-09 10:54:29 +02:00
Gerson Fernando Budke
4a9f0efb6d boards: introduce atmega328p-xplained-mini
Add ATmega328P Xplained Mini board.  The board is an official
development kit from MCHP based on the Arduino UNO, reduced
hardware, with a xplainedmini debugger and CDC ACM serial
converter.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-03-27 14:10:19 -03:00
Martine Lenders
214fdf007d
Merge pull request #16193 from miri64/gnrc_netif_pktq/feat/usage
gnrc_netif_pktq: add function to check usage
2021-03-18 23:05:27 +01:00
399ada9968
Merge pull request #16143 from kfessel/p-optimize-native
board/native: add basic debugging compatible optimization
2021-03-16 14:37:01 +01:00
Karl Fessel
21ce589bec unittests/tests-ieee802154: remove stack_smasher from unitest
test_ieee802154_set_frame_hdr_flags0_non_beacon_non_ack
buffer given to ieee802154_set_frame_hdr has to be at least 2 bytes
see <RIOT>/sys/net/link_layer/ieee802154/ieee802154.c l32
2021-03-16 12:14:24 +01:00
Martine S. Lenders
6507d04a83 tests/unittests: extend tests for gnrc_netif_pktq_usage() 2021-03-15 15:13:59 +01:00
MrKevinWeiss
e9b65306ea tests/unittests/turo: Add turo unittest 2021-03-15 10:36:46 +01:00
Leandro Lanzieri
9e2e99fafb
unittests/clif: add attribute test cases
- missing value in attribute with separator should fail
- single-quoted value in attribute should fail
- empty value in quoted attribute should fail
2021-03-05 16:47:48 +01:00
Karl Fessel
f9649973d3 core/lifo: Remove lifo unittests 2021-02-27 11:59:36 +01:00
benpicco
9fc60da4ca
Merge pull request #15830 from benpicco/net/nanocoap_add_uri
nanocoap: add coap_opt_put_uri_pathquery()
2021-02-24 12:09:08 +01:00
Benjamin Valentin
d4e5c25b70 nanocoap: add coap_opt_put_uri_pathquery() 2021-02-23 18:27:54 +01:00
Francisco Molina
2bb8cb4b55
tests/unittests/tests-flashpage: move out of unittests
Co-authored-by: Martine Lenders <mlenders@inf.fu-berlin.de>
2021-02-23 09:08:57 +01:00
15124e4769
Merge pull request #15002 from kaspar030/pr/xfa_v3
core: introduce crossfile arrays (xfa) v3
2021-02-18 14:49:22 +01:00
Francisco Molina
1d8448d449
tests/unittests/tests-flashpage: require periph_flashpage
The test uses module functions, so require it.
2021-02-16 18:52:53 +01:00
Joakim Nohlgård
12a2243485 unittests: Add XFA tests 2021-02-16 14:55:26 +01:00
Sören Tempel
0d141bf93a clif: Don't access any data if input is empty
This is relevant as clif_decode_link may invoke clif_get_attr with
input_len == 0.
2021-02-08 13:42:18 +01:00
Leandro Lanzieri
609c9ada34
Merge pull request #15945 from nmeum/pr/clif_get_attr_bounds
clif: After incrementing pos, make sure it is still in bounds
2021-02-10 08:50:10 +01:00
benpicco
a69da13d56
Merge pull request #15948 from jeandudey/2021_02_08-cc1350-launchpad
boards: add cc1350 launchpad
2021-02-09 23:34:58 +01:00
Jean Pierre Dudey
2bca4d3ac3 boards: add cc1350-launchpad
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2021-02-09 23:04:24 +01:00
Benjamin Valentin
ae4d7ee116 Makefile.ci: add zigduino 2021-02-09 15:26:03 +01:00
Sören Tempel
767e700a5f clif: After incrementing pos, make sure it is still in bounds
While the for-loop condition does contain a bounds check, the pointer is
independently increment in the for-loop body. This increment therefore
requires a separate bounds check. Otherwise, the parsing loop may access
data outside the given buffer boundaries.
2021-02-08 11:29:44 +01:00
Cenk Gündoğan
6ef29d9b53
tests: uri_parser: new test to check empty host 2021-02-05 13:32:49 +01:00
Sören Tempel
333572e091 uri_parser: check if uri is long enough to even contain a ://
Before attempting to access these characters. This fixes an
out-of-bounds read on the provided URI buffer.
2021-02-04 20:08:26 +01:00
Benjamin Valentin
d3ca85ad65 tests: add bluepill-stm32f030c8 to Makefile.ci 2021-02-02 23:47:40 +01:00
f5b6ebf1cb
unittests/flashpage: force uniform flashpage layout
The unittest for flashpage only checks the inline flashpage_ functions
with the assumption that the flashpage layout is uniform. This commit
undefines the macro guarding those functions to force them to be
included even when the flashpage peripheral defines own implementations.
2021-02-01 18:23:05 +01:00
benpicco
98726ded6d
Merge pull request #14662 from benpicco/cpu/samd20
cpu/samd21: add support for SAMD20 & SAM D20 Xplained Pro board
2021-01-26 19:14:36 +01:00
Benjamin Valentin
33fec8b9dc boards/samd20-xpro: add support for SAM D20 Xplained Pro 2021-01-21 20:29:15 +01:00
Bas Stottelaar
6a285369ab unittests: extend tests for saul_reg 2021-01-18 22:31:11 +01:00
Jose Alamos
59d5a808a7
tests/unittest/ieee802154: add tests for RSSI and dBm conversion 2021-01-13 14:14:45 +01:00
d1fe44fbbb
tests/unittests/tests-clif: use ARRAY_SIZE macro 2021-01-08 14:37:33 +01:00
Bas Stottelaar
74e1ac29ac tests: add to BOARD_INSUFFICIENT_MEMORY 2021-01-06 23:44:54 +01:00
Benjamin Valentin
48c33ae0a2 sys/base64: drop padding for base64url encoding
The URLsafe base64 encoding variant does not require padding, using
'=' as padding is in fact an error as it is not a URL-safe character.
2020-12-15 12:18:45 +01:00
Benjamin Valentin
0c36a57e4e tests: add samd10-xmini to Makefile.ci 2020-12-11 18:33:31 +01:00
71f6b73251
Merge pull request #15519 from benpicco/byteorder_letoh
sys/byteorder: add helpers to convert from little endian to host byte order
2020-12-08 12:52:32 +01:00
2d551ec125 tests/core: Add tests for little endian functions 2020-12-08 11:26:20 +01:00
benpicco
418aaa6e67
Merge pull request #15388 from benpicco/boards/e104-bt5010a-tb
boards/e104-bt5011a-tb: add support for the E104-BT5011A Test Board
2020-12-02 00:24:33 +01:00
Benjamin Valentin
c27ea1afa1 examples, tests: add e104-bt5011a-tb to Makefile.ci 2020-12-01 18:28:41 +01:00
b0b19203a7
Merge pull request #15190 from benpicco/boards/wefun-f401cc
boards/common/weact-f4x1cx: create common WeAct boards
2020-12-01 12:03:38 +01:00
benpicco
333fce44b4
Merge pull request #14973 from benpicco/driver/at86rf215-batmon
drivers/at86rf215: implement battery monitor, add power bus
2020-12-01 11:52:46 +01:00
Benjamin Valentin
851e2c5a9a boards/weact-f401cc: add WeAct-f401cc 2020-12-01 11:02:09 +01:00
Benjamin Valentin
374d032b82 tests/tests-ieee802154: drop custom byteorder_htols() implementation
The function is now available through byteorder.h
2020-11-29 21:41:33 +01:00
73d36eac38
tests/unittests: exclude arduino-nano-33-iot 2020-11-27 08:45:07 +01:00
Bas Stottelaar
ff26819f7f tests: add to unsupported boards 2020-11-23 00:36:20 +01:00
Benjamin Valentin
f9c36f9738 netopt: add NETOPT_BATMON
Many radios have a built-in battery monitor.
Add a netopt to configure it.
2020-11-13 22:59:09 +01:00
Gilles DOFFE
631e882844 tests: examples: remove stm32mp157c-dk2 for mem leak
stm32mp157c-dk2 has not enough memory to build this apps.
However as the stm32mp157xx cpu line has no flash, a part of RAM
is considered as ROM. Thus ROM size could be extend to suit this
apps needs.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
cab254003f
tests/unittests: remove atomic-utils from unittests 2020-11-13 08:47:18 +01:00
792e031a95
Merge pull request #14331 from maribu/atomic_utils
sys/atomic_utils: Functions for atomic access
2020-11-12 21:44:53 +01:00
Martine Lenders
37dd848c37
Merge pull request #15337 from cgundogan/pr/uri_parser_interfaces
uri_parser: extend for parsing interfaces in IPv6 addresses
2020-11-12 11:16:52 +01:00
Cenk Gündoğan
d18ad54184
unittests: Makefile.ci: do not link cc1312/52-launchpad 2020-11-12 10:09:17 +01:00
Cenk Gündoğan
1da3738619
unittests: uri_parser: extend for interfaces 2020-11-11 22:47:30 +01:00
Bas Stottelaar
b6befac515 tests/unittests: add to BOARD_INSUFFICIENT_MEMORY 2020-11-10 22:59:46 +01:00
Marian Buschsieweke
07fc051e97
tests/unittests: Added unit test for atomic_utils 2020-11-10 10:55:14 +01:00
Benjamin Valentin
3a8f74da0c tests/unittests/tests-fib_sr: convert to xtimer_msleep() 2020-11-05 11:34:50 +01:00
Martine Lenders
1070e287f4
Merge pull request #15342 from miri64/gnrc_pkt/enh/tests
gnrc_pkt: port to list.h
2020-11-03 17:49:40 +01:00
Leandro Lanzieri
f14c898dd0
sys/net/ipv6: add ipv6_addr_from_buf function
This allows to parse IPv6 address from strings that not end with '\0'.
2020-10-30 11:20:25 +01:00
Leandro Lanzieri
4305fcc010
sys/net/ipv4: add ipv4_addr_from_buf function
This allows to parse IPv4 address from strings that not end with '\0'.
2020-10-30 11:20:25 +01:00
Martine Lenders
3be898757f
tests/unittests: add tests for new pkt operations 2020-10-29 18:06:35 +01:00
Bas Stottelaar
fdd467167d tests/unittests: remove board from BOARD_INSUFFICIENT_MEMORY 2020-10-26 19:42:09 +01:00
benpicco
d0521af974
Merge pull request #9012 from gebart/pr/frdm-kl43z
frdm-kl43z: NXP Kinetis FRDM-KL43Z development board
2020-10-26 00:06:46 +01:00
Joakim Nohlgård
f006938936 frdm-kl43z: NXP Kinetis FRDM-KL43Z development board
https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/kinetis-cortex-m-mcus/l-seriesultra-low-powerm0-plus/freedom-development-platform-for-kinetis-kl43-kl33-kl27-kl17-and-kl13-mcus:FRDM-KL43Z
2020-10-25 00:38:22 +02:00
Bas Stottelaar
4cce485b6f tests/*: realign ENABLE_DEBUG 2020-10-23 11:27:48 +02:00
benpicco
ee189fa428
Merge pull request #15187 from bergzand/pr/info/add_json
info.inc.mk: Add info-build-json as JSON-formatted build info
2020-10-15 21:27:26 +02:00
05fbeb65b1
tests: skip nucleo-l011k4 where it doesn't fit 2020-10-15 18:52:51 +02:00
Marian Buschsieweke
c38ca6d718
Merge pull request #15212 from miri64/gnrc_pkt/enh/pkt-list-ops
gnrc_pkt: introduce packet list operations
2020-10-15 12:13:03 +02:00
Martine Lenders
45144fb4a4
treewide: use new gnrc_pkt API functions instead of utlist.h macros 2020-10-13 13:32:53 +02:00
Benjamin Valentin
d0e726242d tests: blacklist highlevel_stdio instead of bootloader_% 2020-10-13 10:30:22 +02:00
2dac4db343
make: Use common comma variable definition 2020-10-09 12:02:28 +02:00
Benjamin Valentin
69a7eb5efa tests: add stk3200 to Makefile.ci 2020-10-06 16:43:47 +02:00
chrysn
e2e56cce21 tests/unittests: Change sequence of expected resources
This is a consequence of "Register additional resources head-first", and
is acceptable as there are no semantics to the link-format message.
2020-10-03 00:00:46 +02:00
f92b0fdb40
tests: exclude nucleo-g431rb where it doesn't fit 2020-09-29 12:27:07 +02:00
3949271953
tests: exclude nucleo-g071rb where necessary 2020-09-25 15:20:15 +02:00
Cenk Gündoğan
0d0bc91553
Merge pull request #14754 from leandrolanzieri/pr/no_archives
build system: link object files
2020-09-10 09:36:29 +02:00
Leandro Lanzieri
81cb769cad
makefiles: avoid building archives when compiling 2020-09-04 15:01:10 +02:00
Martine Lenders
818097f0dc
tests: provide unittests for gnrc_netif_pktq 2020-09-02 12:30:23 +02:00
Francisco
578b8b8885
Merge pull request #14372 from benpicco/cpu/nrf52-full
cpu/nrf52: add support for the whole family, fix nrf52811
2020-08-27 13:51:12 +02:00
Benjamin Valentin
d5690ee4cd boards/e104-bt5010a-tb: add support for the E104-BT5010A Test Board
This adds support for the nRF52810 based E104-BT5010A break-out board.
2020-08-25 22:51:10 +02:00
Martine Lenders
e84eda5796
Merge pull request #14833 from maribu/tests-cleanup
tests: Cleanup access to internal variables
2020-08-24 19:33:40 +02:00
benpicco
f3e1032f6e
Merge pull request #14827 from keith-packard/pr/libc/picolibc
Pr/libc/picolibc
2020-08-24 18:06:56 +02:00
Keith Packard
e215261ced picolibc: Use most NEWLIB code with picolibc
In most places, picolibc and newlib are the same, so use
the existing newlib code when compiling with picolibc.

Signed-off-by: Keith Packard <keithp@keithp.com>
2020-08-24 08:26:16 -07:00
Marian Buschsieweke
eb1279005c
tests: Cleanup access to internal variables
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:

1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
   functions
2020-08-24 09:08:01 +02:00
Antonio Galea
80cc4b3204 boards/yarm: skip tests requiring too much RAM 2020-08-22 16:36:28 +02:00
1caff0dc94 tests/unittests/tests-rtt_rtc: fix implicit integer conversions 2020-08-05 14:32:58 +02:00
6fe7a47563 tests: remove obsolete msp430 blacklists 2020-08-05 14:32:58 +02:00
f08f582f1a tests, examples: remove chronos references 2020-08-05 14:32:58 +02:00
Cenk Gündoğan
a0c4b8a4a0
Merge pull request #14550 from leandrolanzieri/pr/net/gcoap_remove_gcoap_finish
net/gcoap: remove gcoap_finish
2020-07-22 09:40:09 +02:00
ed3ff6ed34
tests: exclude nucleo-f070rb where it doesn't fit in memory 2020-07-21 12:45:25 +02:00
Leandro Lanzieri
3920dd8c20
net/gcoap: Remove gcoap_finish 2020-07-17 16:33:19 +02:00
Akshai M
774c18ea79 net/credman : Move 'CREDMAN_MAX_CREDENTIALS' to 'CONFIG_' 2020-07-14 21:26:19 +05:30
benpicco
e2e51ae7ef
Merge pull request #14368 from jia200x/pr/byteorder_bebuftohs
core/byteorder: add uint32 from/to buffer funcs
2020-07-13 12:31:43 +02:00
Jose Alamos
2592dd7805 unittest/byteorder: add tests for uint32 from/to funcs 2020-07-13 11:21:31 +02:00
67843a2b11
examples: test: remove remaining occurences of wsn430 2020-07-10 16:49:08 +02:00
Marian Buschsieweke
4e6ec3493f
tests/unittests: Extend & clean up base64 tests
- Added unit test for `base64_estimate_{de,en}code_size()`
- Mark constant stuff as `const`
- Use `memcmp()` for comparing memory
- Do not use variable size arrays
- Various code style issue
2020-07-02 12:23:43 +02:00
279f2aebed
Merge pull request #14224 from kaspar030/cortexm_remove_idle_thread
core: make idle thread optional
2020-06-26 11:04:19 +02:00
f85f78211f tests/unittests: increase main stacksize to THREAD_STACKSIZE_LARGE 2020-06-25 16:12:57 +02:00
Joakim Nohlgård
ce5141ace6
unittests: Qualifier cast for pktsnip test initializers 2020-06-25 16:08:39 +02:00
9210630e1a
unittests/hashes: Mark input strings as static const 2020-06-25 15:05:26 +02:00
Leandro Lanzieri
3ce8efd4cb
Merge pull request #14138 from akshaim/Kconfig_mac
gnrc/mac : Expose configurations to Kconfig
2020-06-17 18:12:40 +02:00
Leandro Lanzieri
4d65bc8e0a
cpu: Rename CPU_ARCH to CPU_CORE 2020-06-16 12:05:40 +02:00
Kees Bakker
c062b7f33d tests/unittests: add sodaq-sara-sff to BOARD_INSUFFICIENT_MEMORY 2020-06-15 21:58:17 +02:00
Akshai M
414a0b0fa5 tests/unittests/mac : Added check for macro if set via Kconfig 2020-06-15 12:29:00 +05:30
Akshai M
9ddc9e0633 gnrc/mac : Move GNRC_MAC_NEIGHBOR_COUNT to 'CONFIG_' 2020-06-15 12:19:37 +05:30
Akshai M
5523d119b6 gnrc/pktbuf : Move 'GNRC_PKTBUF_SIZE' to 'CONFIG_' 2020-06-11 14:46:36 +05:30
Francisco
89095d6e0f
Merge pull request #14225 from PeterKietzmann/pr_sha2xx_common
sys/hashes: add sha224 and reuse sha256 code
2020-06-11 09:07:39 +02:00
PeterKietzmann
454d1fe4cf unittests/tests-hashes: add tests for sha224 2020-06-10 09:40:13 +02:00
PeterKietzmann
e5e3724a45 unittests/tests-hashes: add two FIPS test cases fot sha256 2020-06-10 09:40:03 +02:00
PeterKietzmann
d9c73bef51 unittests/tests-hashes: add tests for sha256 wrapper 2020-06-10 09:39:07 +02:00
Ken Bannister
f8dfa52b2d
Merge pull request #14075 from mjurczak/bugfix/nanocoap-token-overflow
nanocoap: bugfix token overflow
2020-06-04 22:01:18 -04:00
Maciej Jurczak
edf016a6cb nanocoap: Added token length validation.
Implemented a check in coap_parse() to verify if TKL value is within valid range as specified by RFC7252. The token length must be within 0-8 range, any other value should be considered as invalid and the packet should produce message format error.
A test case was added to tests-nanocoap.c to verify correct behavior in case of TKL in range and out of range.

Update sys/net/application_layer/nanocoap/nanocoap.c

Prefixed debug message with module name and abbreviations expanded.

Co-authored-by: Martine Lenders <mail@martine-lenders.eu>

Update sys/net/application_layer/nanocoap/nanocoap.c

Prefixed debug message with module name and abbreviations expanded.

Co-authored-by: Martine Lenders <mail@martine-lenders.eu>
2020-05-25 22:44:50 +02:00
Hauke Petersen
3c07a3f751 tests: added unittests for phydat 2020-05-20 15:29:24 +02:00
benpicco
f3dddd6127
Merge pull request #14068 from miri64/sock_util/enh/netif-str2ep
sock_util: add interface descriptor parsing to str2ep
2020-05-19 23:59:32 +02:00
Martine S. Lenders
991c2e9ec4
tests/unittests: amend sock_util tests for interface parsing 2020-05-19 14:57:41 +02:00
Juergen Fitschen
aeb1230266 sys/fmt: add fmt_hex_bytes size probing 2020-05-12 17:39:25 +02:00
Ken Bannister
10a479c1c5
Merge pull request #13935 from cgundogan/pr/nanocoap/proxy_uri_parsing
nanocoap: add coap_get_proxy_uri()
2020-05-07 06:14:19 -04:00
fabian18
a3a1c160ee mtd: Change API to return 0 on success
Returning the number of bytes written/read could return a negative integer
because a uint32_t is expected for the length in read()/write() operations.
2020-05-06 20:24:27 +02:00
Vincent Dupont
49358e2763 unittests/tests-mtd: add a test to check read spanning pages 2020-05-06 16:36:29 +02:00
Cenk Gündoğan
0121ff13b8 tests-nanocoap: test adding and retrieving the proxy-uri option 2020-04-23 22:41:46 +02:00
Cenk Gündoğan
c0f4a2c085 tests-nanocoap: add missing full stop in doc 2020-04-23 22:41:12 +02:00
Cenk Gündoğan
ecc4932d22 unittests/nanocoap: test for adding an unterminated string path 2020-04-22 12:50:50 +02:00
Ken Bannister
6eae4ded84 net/gcoap: create CoAP ping request 2020-04-17 08:15:20 -04:00
Ken Bannister
2d3eb1a343 net/nanocoap: validate empty message length 2020-04-17 08:15:20 -04:00
14706d7423
Merge pull request #13243 from leandrolanzieri/pr/kconfig_migrate/net/nanocoap
net/nanocoap: Expose configurations to Kconfig
2020-04-08 10:51:54 +02:00
04f890fa8b
tests: handle cases for bootloader_nrfutil blacklist 2020-04-08 09:35:08 +02:00
Leandro Lanzieri
4052c01e85
net/nanocoap: Move NANOCOAP_URI_MAX to 'CONFIG_' namespace 2020-04-07 17:00:53 +02:00
Leandro Lanzieri
c84576ef6e
net/nanocoap: Move NANOCOAP_NOPTS_MAX to 'CONFIG_' namespace 2020-04-07 17:00:52 +02:00
Ken Bannister
b32fcd28d1
Merge pull request #13815 from kb2ma/nanocoap/add_canonical_uri_query
net/gcoap: add canonical uri query function names
2020-04-07 06:32:13 -04:00
Ken Bannister
7369fac944 tests/nanocoap: use canonical function name to add Uri-Query option 2020-04-06 06:19:44 -04:00
Cenk Gündoğan
abd399b934
Merge pull request #13804 from chrysn-pull-requests/uri-test-isabsolute
uri_parser: Fix and test non-relative recognition
2020-04-05 13:42:11 +02:00
chrysn
2ec0fee1fa uri_parser: Adjust test expectations on relative references with colon
This fixes the contested case, and adds the example of RFC3986 Section
4.2[1] to the should be relative cases.

[1]: https://tools.ietf.org/html/rfc3986#section-4.2
2020-04-03 15:21:33 +02:00
chrysn
3d6d27374c uri_parser: Add test for absolute function
One value in the output is possibly wrong, was left in the passing state
as the rest of the expected state reflects the same misconception, and
commented thusly.
2020-04-03 14:54:38 +02:00
Martine Lenders
d00bde7750
Merge pull request #13789 from cgundogan/pr/uri_parser/remove_check_for_zero
sys/uri_parser: check for uri_end instead of 0
2020-04-03 13:13:18 +02:00
Cenk Gündoğan
1bfc1fbcb3 uri_parser: unittests: add validity check for unterminated string 2020-04-02 15:11:34 +02:00
Leandro Lanzieri
c74544c9ec
Merge pull request #13349 from maribu/dependency-or
build system: Restructure dependency resolution
2020-04-02 10:40:44 +02:00
Marian Buschsieweke
af21f15b02
makefiles: Minor clean ups
- Add FEATURES_REQUIRED_ANY to dependency-debug:
  Now `make dependency-debug` by default also stores the contents of
  `FEATURES_REQUIRED_ANY`.
- makefiles/features_check.inc.mk: Break long lines
- {tests/minimal,tests/unittests,bootloaders/riotboot}:
  Disable auto_init_% in addition to auto_init.

This works around weird behavior due to the USEMODULE being recursively expended
in the first iteration of dependency resolution: Modules added to DEFAULT_MODULE
get automatically added to USEMODULE during the first run, but not for
subsequent. This should be iron out later on.
2020-04-02 09:56:39 +02:00
Martine Lenders
004126a5e9
tests/unittests/uri_parse: generate more sophisticated error message 2020-04-01 08:42:25 +02:00
Martine Lenders
413153704a
tests/unittests/uri_parse: use less confusing assert message
Also use `strncmp()` instead of `memcmp()`
2020-04-01 00:56:08 +02:00
Martine Lenders
21399ccade
tests/unittests/uri_parse: add array index as parameter to VEC_CHECK 2020-04-01 00:55:20 +02:00
Martine Lenders
d9b9426a86
Merge pull request #13758 from cgundogan/uri_parser
sys/uri_parser: minimal and non-destructive URI parsing
2020-04-01 00:40:27 +02:00
Cenk Gündoğan
ed30450fcf tests/unittests: add tests for uri_parser 2020-03-31 23:54:40 +02:00
Martine Lenders
32d4b7eea5
Merge pull request #13755 from benpicco/base64-urlsafe
sys/base64: Implement Base 64 Encoding with URL and Filename Safe Alphabet
2020-03-31 20:15:23 +02:00
Benjamin Valentin
64d4713301 tests/unittests/base64: add test case for urlsafe_encode 2020-03-31 19:01:05 +02:00
Leandro Lanzieri
64dde8f317
gnrc/nib: Move GNRC_IPV6_NIB_ABR_NUMOF to 'CONFIG_' namespace 2020-03-31 18:07:13 +02:00
Leandro Lanzieri
a77d0dd9c5
gnrc/nib: Move GNRC_IPV6_NIB_OFFL_NUMOF to 'CONFIG_' namespace 2020-03-31 18:07:13 +02:00
Leandro Lanzieri
f6ee712e98
gnrc/nib: Move GNRC_IPV6_NIB_DEFAULT_ROUTER_NUMOF to 'CONFIG_' namespace 2020-03-31 18:07:12 +02:00
Leandro Lanzieri
07771de08f
gnrc/nib: Move GNRC_IPV6_NIB_NUMOF to 'CONFIG_' namespace 2020-03-31 18:07:11 +02:00
Leandro Lanzieri
53a522d642
gnrc/nib: Move GNRC_IPV6_NIB_CONF_MULTIHOP_P6C to 'CONFIG_' namespace
Also evaluate using IS_ACTIVE macro.
2020-03-31 18:07:10 +02:00
Leandro Lanzieri
3ec296400d
gnrc/nib: Move GNRC_IPV6_NIB_CONF_DC to 'CONFIG_' namespace
Also evaluate using IS_ACTIVE macro.
2020-03-31 18:07:09 +02:00
Leandro Lanzieri
e52b93cef0
gnrc/nib: Move GNRC_IPV6_NIB_CONF_ARSM to 'CONFIG_' namespace
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:07 +02:00
Leandro Lanzieri
49ec28867c
gnrc/nib: Move GNRC_IPV6_NIB_CONF_ROUTER to 'CONFIG_' namespace
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:05 +02:00
Leandro Lanzieri
40c78f1c75
gnrc/nib: Move GNRC_IPV6_NIB_CONF_6LBR to 'CONFIG_' namespace
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:03 +02:00
Benjamin Valentin
9c4eb8918f tests/unittests: rtt_rtc: blacklist esp32
On esp32, pm_layered pulls in periph_rtc.
This results the real rtc functions being called, which of course
can't be fast-forwarded - all the tests fail.
2020-03-24 23:15:55 +01:00
84941a2548
tests/unittests: exclude nucleo-l412kb 2020-03-20 18:48:31 +01:00
Gunar Schorcht
df19c6d1b4
Merge pull request #13519 from benpicco/rtt_rtc
drivers/rtt_rtc: add RTT based RTC implementation, enable it for cpu/cc2538, nrf5x_common
2020-03-19 17:18:43 +01:00
Benjamin Valentin
d632eb44b0 tests/unittests: add tests for rtt_rtc 2020-03-19 15:25:14 +01:00
e9af310159
tests: use check_unittests func from testrunner 2020-03-19 10:39:34 +01:00
012567e0a8
tests/unittests: blacklist bootloader_arduino feature 2020-03-18 10:53:18 +01:00
7b17f6254f
Merge pull request #13643 from aabadie/pr/tests/ztimer_cleanup_unittests
tests/ztimer_mock: cleanup leftover debug messages
2020-03-18 10:33:36 +01:00
benpicco
796ae80ea2
Merge pull request #13478 from miri64/tests/fix/unittests-6ctx-prefix-match
unittests: tests-sixlowpan_ctx: fix prefix check
2020-03-17 13:31:49 +01:00
329c1044bc
tests/ztimer_mock: cleanup leftover debug messages 2020-03-16 15:21:22 +01:00
francisco
55b11b7925
boards/im880b: add insufficient memory to tests 2020-03-13 14:36:51 +01:00
Martine Lenders
5defa1ae34
Merge pull request #13466 from gschorcht/fix_compilation_with_ndebug
tests: fix compilation problems with NDEBUG
2020-03-12 19:34:33 +01:00
Gunar Schorcht
4f5dab16b7 tests/unittests/tests-gnrc_ipv6: fix NDEBUG compile problem 2020-03-12 17:40:46 +01:00
benpicco
1212165222
Merge pull request #13584 from kb2ma/nanocoap/add_uquery_improvements
net/nanocoap: add uquery improvements
2020-03-12 15:18:07 +01:00
Ken Bannister
2e0a5c053e tests/nanocoap: add test for coap_opt_add_uquery2() 2020-03-12 08:44:26 -04:00
benpicco
d4e05edac0
Merge pull request #13524 from benpicco/openlabs-kw41z-mini-256kib
boards: add openlabs-kw41z-mini-256kib
2020-03-11 15:42:25 +01:00
Benjamin Valentin
9573b2bba0 boards: add openlabs-kw41z-mini-256kib
Add the 256k version of the openlabs-kw41z-mini.
They are identical to the openlabs-kw41z-mini except that it uses
the mkw41z256vht4 instead of the mkw41z512vht4.
2020-03-11 13:50:37 +01:00
benpicco
008faef16a
Merge pull request #13581 from Scallog/olimexino-stm32-support
boards/olimexino-stm32: add support for olimexino-stm32 board
2020-03-11 11:40:53 +01:00
Corentin 'Kmikaz' Vigourt
54cafc5125 boards/olimexino-stm32: add support for olimexino-stm32 board 2020-03-11 10:59:57 +01:00
5332ecec33
tests/crypto*: use crypto_% modules instead of CFLAGS 2020-03-06 19:49:58 +01:00
Joakim Nohlgård
39980d5ea3 unittests: Add ztimer test suite 2020-03-04 12:44:02 +01:00
Benjamin Valentin
5b64ae4ef5 periph_common/rtc: add rtc_localtime()
Add function to convert a RTC timestamp (non-UNIX) to a time struct.
2020-03-03 11:01:02 +01:00
Benjamin Valentin
becff61e20 periph_common/rtc: add rtc_mktime()
Add a function to convert a time struct to an unsigned timestamp (non-UNIX).
2020-02-29 17:42:50 +01:00
dylad
fd984439a3 tests/unittests: fix GCC compiler bug in core-atomic for SAML1X
Co-Authored-By: benpicco <benpicco@googlemail.com>
2020-02-26 10:56:15 +01:00
dylad
841140ad88 tests/unittests: remove the temporary fix from #13456 2020-02-26 10:56:15 +01:00
Martine S. Lenders
2929b1ba20
unittests: tests-sixlowpan_ctx: fix prefix check
The result must be checked for being greater or equal to the targeted
value. So for the [Yoda conditions] in those unittests the comparison
mast be lesser or equal.

[Yoda conditions]: https://en.wikipedia.org/wiki/Yoda_conditions
2020-02-25 17:49:47 +01:00
13a6cfb9ba tests/unittests: temporarily disable for saml1[01]-xpro 2020-02-24 14:56:04 +01:00
benpicco
628aa1197e
Merge pull request #13331 from btcven/2020_02_10-sram-size
cc26x2_cc13x2: use correct RAM value
2020-02-11 15:43:38 +01:00
f3874edd14 tests/unittests: add basic zptr test 2020-02-11 13:59:59 +01:00
Jean Pierre Dudey
de50518146
cc26x2_cc13x2: use correct RAM value
Previous value was 20 K, now it's 80 K. The older family of these MCUs
(cc13x0, cc26x0) had that size, currently for cc13x2 and cc26x2 it's
80 K.

Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-02-10 18:38:15 -05:00
Ken Bannister
b354722574 net/gcoap: remove test migrated to nanocoap 2020-01-29 09:24:46 -05:00
Ken Bannister
22ce1c140b net/nanocoap: use new function in query test 2020-01-29 09:23:47 -05:00