Benjamin Valentin
6185715aea
tests/unittests: add tests for new bitfield functions
2022-11-02 13:06:06 +01:00
Martine Lenders
3c7c9fefd6
tests/unittests: fix get_frame_hdr_len tests for hardened parsing
2022-10-29 00:58:35 +02:00
Karl Fessel
c29d2f1afb
test/unittest: cleanup most vera++ complains
2022-10-27 16:31:59 +02:00
Martine Lenders
d485598b3a
Merge pull request #18744 from Teufelchen1/fix/clif_0
...
sys/clif: Fixing out of bounds read under certain conditions
2022-10-26 23:38:43 +02:00
Teufelchen1
499b635ae9
sys/clif: Fixing out of bounds read under certain conditions
2022-10-26 13:44:01 +02:00
Jan Romann
61d1516c6f
tests/nanocoap: add unit test for Accept option helper
2022-10-19 16:44:13 +02:00
chrysn
982ec4dcda
gnrc_netreg: Use locks around netreg
...
This eliminates race conditions around unregistering netdevs.
gnrc_netreg_lookup-style functions perform a DEVELHELP check on whether
that lock is held.
2022-10-14 03:35:15 +02:00
Benjamin Valentin
c46d9d7360
tests/unittests: sock_util: test with schema of uneven length
2022-10-10 19:04:15 +02:00
Benjamin Valentin
eb527d3481
tests/unittests: add test for CRC-32 checksum
2022-10-04 15:40:53 +02:00
benpicco
c35a4ba577
Merge pull request #18621 from benpicco/strscpy
...
sys/string_utils: add strscpy()
2022-09-28 19:11:42 +02:00
Benjamin Valentin
3fc4d9d98c
tests/unittests: add tests for libc module
2022-09-26 19:06:46 +02:00
benpicco
4737d8148a
Merge pull request #17702 from benpicco/core/macros/math
...
core/macros: add math helper macros
2022-09-22 14:14:24 +02:00
Benjamin Valentin
27b3c115d2
tests/unittests: add tests core math macros
2022-09-21 16:00:26 +02:00
Martine Lenders
d5e63a5e46
Merge pull request #18096 from Teufelchen1/feat/port_parsing
...
sys/uri_parser: Adding the port as uint16_t
2022-09-19 13:40:53 +02:00
Teufelchen1
df8fe4476d
sys/uri_parser: Adding the port as uint16
2022-09-08 11:32:49 +02:00
Marian Buschsieweke
754ad23de5
Merge pull request #18539 from miri64/hashes_cmac/cleanup/rename
...
hashes_cmac: rename to hashes_aes128_cmac
2022-08-31 19:06:21 +02:00
Martine Lenders
27e68787c5
tests: rename cmac to aes128_cmac
2022-08-31 10:43:25 +02:00
Teufelchen1
a25934ca16
sys/checksum: Adding four crc16 variations: ccitt-aug/false/kermit/mcrf4xx
2022-08-30 15:37:04 +02:00
Martine Lenders
f15fbb3c15
Merge pull request #18441 from miri64/dns_cache/fix/ttl0
...
dns_cache: handle TTL=0 properly
2022-08-23 02:58:13 +02:00
Jose Alamos
f6fd8fafd8
unittests/bhp_msg: add initial unittests
2022-08-19 12:01:31 +02:00
benpicco
fc33f887b5
Merge pull request #18438 from Ziesie1/Ziesie1-patch-1
...
tests/unittests: Correct typo in documentation
2022-08-16 18:07:52 +02:00
Martine Lenders
7d2c4c4cbc
tests/unittests/tests-dns_cache: add test case for TTL=0
2022-08-11 14:07:54 +02:00
Ziesie
dc928108b9
tests/unittests: Correct typo in Documentation
2022-08-11 11:32:28 +02:00
Jose Alamos
c80e0e1559
unittests/bhp_event: add initial unittests
2022-08-11 10:57:54 +02:00
Karl Fessel
c48f53f8df
test/unittest: initilize ztimer64 is required, use xtimer test-fib
...
test-fib has direct use of xtimer -> it needs to use the module
2022-07-25 13:54:59 +02:00
Karl Fessel
1f80bfc898
unittest/main: do not intialize xtimer if ztimer_xtimer_compat
2022-07-21 14:48:43 +02:00
Martine Lenders
8bec9c1115
sock_dns_cache: move to dns_cache
...
Also piggy-back some fixes to the unittests and submodule handling
2022-07-18 15:27:58 +02:00
Benjamin Valentin
d09d29a581
tests/unittests: add tests sock_dns_cache
2022-07-15 00:03:49 +02:00
Teufelchen1
1231807bab
Documentation: Renaming OS X to macOS
2022-06-23 17:25:48 +02:00
Martine Lenders
f91c8799c6
unittests: fix assertion for nanocoap_cache_key_compare()
...
The doc states only that the result is <0, not -1. The result isn't the
latter for some platforms (see
https://github.com/RIOT-OS/RIOT/runs/6534330788?check_suite_focus=true#step:13:696 )
2022-05-23 12:22:58 +02:00
chrysn
dc7bc9f854
Merge pull request #17683 from chrysn-pull-requests/mtd-granularity
...
mtd: Introduce write granularity
2022-05-20 11:52:03 +02:00
Marian Buschsieweke
158203fe71
Merge pull request #17651 from benpicco/fs/constfs-cleanup
...
sys/fs/constfs: drop dummy implementations
2022-05-19 23:23:49 +02:00
Benjamin Valentin
a587069b18
vfs: return -EROFS if remove operation is not implemented
2022-05-19 11:43:08 +02:00
benpicco
025af7534f
Merge pull request #18067 from kfessel/p-unittest_sock-read
...
unittest/sock_util: move test_strings to their tests
2022-05-17 09:37:53 +02:00
Cenk Gündoğan
fb3f1a2138
Merge pull request #17888 from miri64/gcoap/enh/caching
...
gcoap: add nanocoap_cache support for clients
2022-05-13 15:39:10 +02:00
Martine Lenders
9a54e7ef7f
Merge pull request #18099 from kaspar030/unittests_native_asan
...
unittests: enable ASAN on native
2022-05-13 14:11:59 +02:00
Martine Lenders
dbed2b48ea
nanocoap_cache: add helper function to check if entry is stale
2022-05-13 12:14:55 +02:00
Martine Lenders
e6a9443932
tests/unittests/tests-gcoap: adapt for automatically added ETag option
2022-05-13 12:14:55 +02:00
dcf5cda260
tests/unittests/uri_parser: increase VEC_MSG_LEN
...
Previous value tripped ASAN. Increase to sth with room to spare.
2022-05-13 11:47:17 +02:00
3a0e5fd775
tests/unittests: enable address sanitizer for native
2022-05-11 21:49:57 +02:00
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