David Picard
2c97a5330f
tests/drivers/abp2: test implementation
2025-05-04 10:28:59 +02:00
Marian Buschsieweke
1b70a59ded
tree-wide: add the NONSTRING attribute where needed
...
This declares all char arrays that intentionally are lacking the
terminated zero byte as `NONSTRING`.
2025-04-27 22:49:22 +02:00
Marian Buschsieweke
85233b355b
tests/drivers/hm330x: use fmt_table
...
This replaces the vendored in `print_col_u32_dec()` with the one provided
by the `fmt_table` module.
2025-04-27 22:49:22 +02:00
Marian Buschsieweke
a862dc6794
Merge pull request #21428 from benpicco/sys/bcd_buf_from_str
...
sys/bcd: add `bcd_buf_to_u32()` and `bcd_buf_from_str()`
2025-04-26 14:02:28 +00:00
Benjamin Valentin
444fc84697
tests/unittests: add tests for bcd_buf_to_u32() and bcd_buf_from_str()
2025-04-25 18:48:18 +02:00
Marian Buschsieweke
42dacd7c9d
tests/sys/snprintf: Test format specifiers
...
This adds a simple test applications that runs snprintf on standard
format specifiers and compares the output with the expected output.
The assumption is that internally every stdio implementation uses the
same formatting code for each member of the printf functions family,
so testing snprintf only is sufficient.
2025-04-24 11:46:09 +02:00
Marian Buschsieweke
d9938cc634
Merge pull request #21402 from maribu/tests/unittests/clist-sort
...
tests/unittests/tests-core-clist: improve unit test
2025-04-23 19:53:11 +00:00
Marian Buschsieweke
60e31027b9
tests/unittests/core: reformat code
...
This should fix the column length warning of the static tests.
2025-04-23 20:39:42 +02:00
Marian Buschsieweke
0602bea5ae
tests/unittests/texts-core-clist: improve unit test
...
- Iterate of different lengths of unsorted data to also cover corner case
one-item list
- Actually check that the list is sorted afterwards (and not just that
the maximum got sorted in last)
- Actually check that the list was stable-sorted (as the API doc
promises a stable sort)
- Increase the length of the input data for better test coverage
- Check that no elements get lost while sorting
Co-authored-by: crasbe <crasbe@gmail.com>
2025-04-23 20:39:29 +02:00
Marian Buschsieweke
61951b31a1
tests/net/gnrc_netif: do not access internal scheduler state
...
This replaces code that directly accessed internal scheduler state with
the correct API calls.
2025-04-17 18:47:39 +02:00
Marian Buschsieweke
c05d546bca
examples,tests: Update Makefile.ci
...
This updates the `Makefile.ci` entries for all MSP430 boards plus a few
low end Cortex-M boards.
2025-04-16 15:25:38 +02:00
Benjamin Valentin
f404519ce3
tests/shell: enable the test on native
...
Now that #19002 has been merged, the test is also working on `native`.
2025-04-14 18:56:44 +02:00
Marian Buschsieweke
6b2940959f
tests/bench/runtime_coreapis: reduce benchmark runs in the CI
...
On `native32` / `native64` in the CI, the benchmark results will be
unusable due to the background load of other build tasks anyway. There
is a risk that due to the high number of benchmark runs the test will
time out.
So to avoid the timeouts and because the results are unusable anyway,
the benchmark runs have been drastically reduced. This will still
allow the CI to confirm that the benchmarks do run successfully to
completion.
2025-04-14 13:36:53 +02:00
Marian Buschsieweke
68968c5ebb
tests/bench/runtime_coreapis: add clist_sort() benchmark
...
This adds a benchmark for clist_sort() and calls that on three different
list sizes.
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
Co-authored-by: Mikolai Gütschow <mikolai.guetschow@tu-dresden.de>
2025-04-14 13:36:52 +02:00
fabian18
db0f497c61
Merge pull request #21391 from fabian18/pr/fmt_time
...
sys/fmt: add {fmt,scn}_time_tm_iso8601
2025-04-10 19:28:17 +00:00
Fabian Hüßler
d79b27df30
tests/periph/rtc: use time fmt API
2025-04-10 17:06:09 +02:00
Fabian Hüßler
29b8af8a85
tests/unittests/tests-fmt: test ISO 8601 format functions
2025-04-10 16:42:24 +02:00
Joshua DeWeese
dcf71b510d
Merge pull request #21344 from Enoch247/fix-isrpipe
...
sys/isrpipe: unit tests, doc, and fix init
2025-04-09 23:56:03 +00:00
mguetschow
72409541be
Merge pull request #21383 from mguetschow/rust-bump
...
treewide: update riot-wrappers and riot-sys
2025-04-09 11:10:07 +00:00
Joshua DeWeese
a749e3493d
sys/isrpipe: add unit tests
...
This patch adds unit tests for the isrpipe module.
2025-04-08 20:17:04 -04:00
crasbe
14fc6c04cf
tests/sen5x: remove KConfig file
2025-04-08 18:36:54 +02:00
crasbe
87352ee72d
Merge pull request #19955 from dprigoshij/sen5x
...
drivers/sen5x: Add device driver for SEN5x
2025-04-08 13:21:57 +00:00
Mikolai Gütschow
223031e0d6
treewide: update riot-wrappers and riot-sys
...
diff generated with `find -name Cargo.toml -exec cargo update --manifest-path "{}" --package riot-wrappers --package riot-sys ";"` according to https://github.com/RIOT-OS/RIOT/blob/master/doc/guides/managing-a-release/README.md?plain=1#L31
upcoming release version bump similar to https://github.com/RIOT-OS/RIOT/pull/21133
2025-04-08 14:29:46 +02:00
Daniel Prigoshij
0fd9959fbb
tests/driver_sen5x: Added a test case for the SEN5X driver
2025-04-08 11:22:15 +02:00
crasbe
a826b77de9
Merge pull request #21371 from maribu/doc/mixed-bag-of-fixes
...
tree-wide: mixed back of documentation fixes
2025-04-07 21:48:11 +00:00
crasbe
ff6bab94f6
Merge pull request #21322 from mguetschow/psa-crypto-auto-init
...
sys/psa_crypto: usa auto_init module for initialization
2025-04-07 17:05:01 +00:00
Marian Buschsieweke
db0be36345
tree-wide: mixed back of documentation fixes
...
This fixes a number of documentation issues that LLVM/clang would flag
with `-Wdocumentation`.
2025-04-07 15:59:13 +02:00
Daniel Prigoshij
3aa960ea01
drivers/sen5x: SAUL functionality imlemented
2025-04-07 13:21:30 +02:00
Marian Buschsieweke
a9703005e8
Merge pull request #21175 from maribu/tests/drivers/candev
...
tests/drivers/candev: minor cleanup
2025-04-06 18:23:05 +00:00
Marian Buschsieweke
780a02ef6c
tests/drivers/candev: minor cleanup
...
- Do not hard code the number of the CAN interface to use. (This
also allows specifying it via make command line / environment
variable.)
- Make less use of preprocessor and rely on compiler to eliminate dead
branches and unused variables.
Co-authored-by: crasbe <crasbe@gmail.com>
2025-04-06 20:19:16 +02:00
fabian18
d3d9afc9c5
Merge pull request #21365 from fabian18/pr/lis2dh12_int32_lis2dh12_wait_event
...
drivers/lis2dh12: int32_t lis2dh12_wait_event()
2025-04-06 12:22:12 +00:00
Fabian Hüßler
482750a67e
drivers/lis2dh12: int32_t lis2dh12_wait_event()
2025-04-06 13:43:07 +02:00
benpicco
3621be5041
Merge pull request #21160 from benpicco/sys/net/nanocoap/observe-client
...
nanocoap_sock: implement observe (Client-Side)
2025-04-04 17:32:10 +00:00
Benjamin Valentin
2cf009ab3a
tests/net/nanocoap_cli: add observe command
2025-04-04 15:29:54 +02:00
Mikolai Gütschow
8a5f047c26
boards/feather-nrf52840*: rename to adafruit-feather-nrf52840-*
2025-04-04 11:12:49 +02:00
mguetschow
57de45cf89
Merge pull request #21308 from benpicco/dec_as_hex
...
sys/bcd: add bcd_buf_from_u32()
2025-04-03 10:48:33 +00:00
Joshua DeWeese
f265cec494
tests/unittests: fix include guards in doc example
...
This patch updates the example given to conform to the recomended
placement of include guards.
See issue #21335
2025-04-02 20:11:50 -04:00
Benjamin Valentin
8f4dec6559
tests/unittests: add test for bcd_buf_from_u32()
2025-04-02 19:00:48 +02:00
Benjamin Valentin
a104c3f3e0
tests/unittests: add test for reverse_buf()
2025-04-02 18:45:37 +02:00
Marian Buschsieweke
17d2516a54
Merge pull request #20581 from maribu/timer_get_closest_freq
...
drivers/periph_timer: add `timer_get_closest_freq()`
2025-04-02 14:45:14 +00:00
Marian Buschsieweke
8b77df4270
tests/periph/timer: test timer_get_closest_freq()
2025-04-02 16:21:07 +02:00
Marian Buschsieweke
ca781c2f12
Merge pull request #21242 from mguetschow/native-alias
...
boards: introduce board alias and make native default to host target
2025-04-02 09:14:12 +00:00
Mikolai Gütschow
4b52679fd7
tests/build_system: test board aliases
2025-04-01 12:39:14 +02:00
Mikolai Gütschow
69c15e1754
boards: make BOARD=native an alias for BOARD=native32
2025-04-01 12:39:06 +02:00
fabian18
9e55e5611f
Merge pull request #21270 from fabian18/pr/nanocoap_static_buffers
...
nanocoap: avoid non `static` buffers of configurable size
2025-03-31 22:46:38 +00:00
Fabian Hüßler
7e4afa4436
nanocoap: supply response buffer for nanocoap_link_format_get
2025-03-31 19:12:19 +02:00
mguetschow
04a169867e
Merge pull request #20876 from Ollrogge/fido2_update_tests
...
Fido2 update tests
2025-03-25 19:32:39 +00:00
Mikolai Gütschow
430f4d7f82
tests/sys/psa_crypto_*: remove redundant psa_crypto_init()
2025-03-25 19:01:35 +01:00
Ollrogge
771d8b2147
sys/fido2: adjust board whitelist for tests
2025-03-25 18:42:48 +01:00
mguetschow
d2fbe23e78
Merge pull request #21112 from KSKNico/tm1637
...
drivers/tm1637: add driver and tests for tm1637 7-segment display
2025-03-25 13:49:02 +00:00