5c0b99a1a0
tests/unittests/tests-uri_parser: add bad port length case
2022-05-11 21:33:02 +02:00
Cenk Gündoğan
b4cae9d09d
nanocoap: add unittests for nanocoap-cache
2022-05-10 18:43:57 +02:00
Karl Fessel
ab5958febd
unittest/sock_util: move strings to their tests
2022-05-06 11:54:25 +02:00
Karl Fessel
9d798d6113
unittest/sock_util: add test for missing addr variants
2022-05-05 16:53:11 +02:00
Benjamin Valentin
9d1dd98a24
unittests/tests-mtd: prefix local functions
...
This avoids a conflict with the functions from unistd.h
2022-05-03 00:53:34 +02:00
Benjamin Valentin
c747d99556
unitttests/sock_util: add sock_urlpath() to tests
2022-04-18 01:42:57 +02:00
d5e184b326
examples: tests: update Makefile.ci with stm32f7508-dk
...
This commit also makes some cleanup in the files since add_insufficient_memory_board.sh was used for the update
2022-04-15 12:51:58 +02:00
Joshua DeWeese
5b3b866960
tests/unittests/tests-kernel_defines: fix typo
...
The variable named (emphasis added) maYor is used to store the major
version number, I assume major is what was intended. This patch corrects
the typo.
2022-04-13 11:45:56 -04:00
chrysn
38d0ec52d0
tests: Set a MTD write size of 1 wherever an MTD is mocked
2022-03-31 13:56:30 +02:00
Martine Lenders
68f5514ab1
tests: add test for nanocoap_opt_remove()
2022-03-31 09:47:58 +02:00
benpicco
60fb36eb1e
Merge pull request #17710 from benpicco/sys/bitfield-ops
...
sys/bitfield: add support for bit-wise bitfield operations
2022-03-09 22:09:34 +01:00
Benjamin Valentin
acbeb527ff
tests/unittests: add test for bitfield operations
2022-03-08 10:28:31 +01:00
Benjamin Valentin
91ad8ec403
sys/net/ipv6: add ipv6_addr_init() helper function
...
Setting a compile-time const IP address can be a bit cumbersome.
Add a helper function to easy the process.
2022-03-04 15:34:15 +01:00
e9227153c0
unittests: add ztimer64 clear-on-remove regression test
2022-03-01 11:03:18 +01:00
chrysn
206bea0a1d
phydat: Add Tesla unit
...
While this is equivalent to the existing Gs (1 T = 10^-4 Gs), this is
the SI (and thus preferred) unit.
2022-01-25 13:46:08 +01:00
Benjamin Valentin
c4b32a426f
tests/unittests: add tests for chunked_ringbuffer
2022-01-19 11:43:35 +01:00
Benjamin Valentin
67ef5faeed
sys/net/sock_util: make use of SOCK_HAS_IPV4
2022-01-13 18:40:12 +01:00
a7fab3fe53
tests/unittests/tests-saul_reg: remove saul_reg_rm test function
2022-01-08 11:49:06 +01:00
5083061995
Merge pull request #17273 from maribu/core/IS_CT_CONSTANT
...
core: Add IS_CT_CONSTANT()
2022-01-08 00:21:07 +01:00
Marian Buschsieweke
68424a924c
core: Add IS_CT_CONSTANT()
...
This adds a simple macro to check (at C level) whether a given
expression is proven to be compile time constant and suitable for
constant folding. This allows writing code like this:
```C
int gpio_read(gpio_t pin) {
if (IS_CT_CONSTANT(pin)) {
/* this implementation should even be able to use the port and
* pin number as immediate in inline assembly */
}
else {
/* less efficient implementation that cannot use port and pin
* number as immediate in inline assembly */
}
}
```
2022-01-06 23:30:56 +01:00
79df157727
sys: move rtc utility functions to their own module
2021-12-20 13:04:20 +01:00
Francisco
b52a8857eb
Merge pull request #17368 from kaspar030/fix_ztimer64_uninitialized_timer_crash
...
sys/ztimer64: make _del_entry_from_list() safe for uninit ztimer64_t
2021-12-09 16:51:06 +01:00
Karl Fessel
6347dcdffc
Merge pull request #17141 from kfessel/p-ztimer-gcoap
...
net/gcoap: port to ztimer
2021-12-09 15:22:10 +01:00
835db7d97f
tests/unittests: add ztimer64 regression test
2021-12-09 14:10:16 +01:00
d959ce7eea
Merge pull request #16928 from kaspar030/ztimer64
...
sys/ztimer64: initial PR
2021-12-09 10:17:15 +01:00
1830d8bd1c
tests/unittests: add ztimer64 unittests
...
Co-authored-by: Francisco Molina <femolina@uc.cl>
2021-12-07 23:57:56 +01:00
11ac994224
test/unittest: no auto ztimer_periph_rtt
2021-12-07 10:07:55 +01:00
Francisco
6749b71066
Merge pull request #17337 from HendrikVE/pr/tsrb_init
...
sys/tsrb: add tsrb_clear
2021-12-07 09:20:22 +01:00
Karl Fessel
d7d1f7acad
test/unittest: init ztimer, work around ztimer_t uint64_t
2021-12-06 13:31:18 +01:00
Karl Fessel
0433548346
test/unittest: no auto ztimer_periph_rtt
2021-12-06 13:31:18 +01:00
Hendrik van Essen
de4b32ef54
sys/tsrb: add tsrb_clear
2021-12-06 11:53:59 +01:00
Martine Lenders
7631dd19fc
tests/unittests: fix test vectors
...
In the tests fixed in this commit, the header tells that there is a PAN
ID in the header, but no PAN ID was provided in the test vector. This
amends the test vector with the PAN ID (as done in other tests in this
test suite) and adds a check if the PAN was correct.
2021-12-03 11:32:29 +01:00
Marian Buschsieweke
44ebc38cac
Merge pull request #17292 from kaspar030/base64url_tmp_buffer
...
tests/unittests/tests-base64: enlarge test buffer for worst case
2021-11-30 09:13:37 +01:00
a4575507c1
tests/unittests/tests-base64: enlarge test buffer for worst case
2021-11-29 13:24:40 +01:00
Francisco Molina
857f3c3c51
sys/tsrb: add peek functions
2021-11-24 17:54:44 +01:00
Marian Buschsieweke
45add49342
Merge pull request #17195 from maribu/tests/unittests
...
tests/unittests: fix unaligned access
2021-11-24 08:04:40 +01:00
2902e31ff8
tests/unittests/tests-fmt: add large scale test for fmt_s32_dfp()
2021-11-22 14:11:02 +01:00
Marian Buschsieweke
fa3d0ad0f1
tests/unittests: fix unaligned access
2021-11-16 14:23:45 +01:00
MrKevinWeiss
6f345d5bee
unittests/turo: Fix turo to use check
2021-11-16 08:37:46 +01:00
Marian Buschsieweke
f2a53c8fb3
tets/unittests: add test for DECLARE_CONSTANT()
2021-11-10 15:22:48 +01:00
Benjamin Valentin
a803cab439
tests/unittests: add test for index_of()
2021-11-05 16:42:38 +01:00
Dave VanKampen
55ea8cfb97
boards/stm32g031-disco,examples,tests: Added STM32G031-DISCO board
2021-10-13 12:14:45 -04:00
Martine Lenders
ea8e632eda
Merge pull request #16765 from benpicco/RIOT_VERSION_CODE
...
build system: add machine-readable RIOT_VERSION_CODE macro
2021-09-22 12:47:35 +02:00
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