1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 14:03:55 +01:00

198 Commits

Author SHA1 Message Date
Marian Buschsieweke
7410255cfc
tests/sys/libc_newlib: drop test
This tests makes little sense to have for a number of reasons:

1. One should not use `iprintf()` for a number of reasons:
    1. It is non-standard and using it over `printf()` makes the code
       less portable (e.g. it cannot be used on AVR)
    2. The idea of adding a leaner variant of `printf()` in addition to
       the larger one is bogus, as apps will end up using both resulting
       in a *larger* firmware instead of a smaller
    3. RIOT's build system already has the `printf_float` module to
       control whether formatting of floating point numbers should be
       suppered. This mechanism will actually result in smaller builds,
       if floating point support is not needed, as it prevents two
       variants of printf to be linked in.
2. The test checks some implementation details (e.g. whether the
   address of two functions is identical), rather than correct behavior
   of the implementation. This is completely bogus.
2025-08-19 14:20:03 +02:00
Gunar Schorcht
cd1e02774f tests/sys/vfs_iterate_mount: fix NDEBUG compilation problems 2025-08-13 15:43:58 +02:00
Gunar Schorcht
1c92c580b7 tests/sys/usbus_msc: fix NDEBUG compilation problems 2025-08-13 15:43:58 +02:00
Mihai Renea
23d02583e4 core/log: add optional log unit prefix 2025-07-16 14:49:35 +02:00
mguetschow
6fc81adc4e
Merge pull request #21514 from mguetschow/shell-commands-xfa
treewide: migrate to XFA SHELL_COMMAND
2025-06-02 09:44:12 +00:00
Mikolai Gütschow
6abf12fb41
tests/sys/struct_tm_utility: do not test shell help command 2025-06-02 09:40:50 +02:00
Mikolai Gütschow
e48b310b76
tests/sys: migrate to XFA SHELL_COMMAND 2025-06-02 09:40:50 +02:00
Mikolai Gütschow
a04fcb9d18
tests/sys/congure_*: migrate to XFA SHELL_COMMAND 2025-06-02 09:40:50 +02:00
mguetschow
91003021c6
Merge pull request #21455 from Lukas-Luger/pr/psa-aes-ccm
sys/psa_crypto: Adding aead aes ccm
2025-05-27 19:43:17 +00:00
Lukas-Luger
0a9c351bfa tests/sys: add psa_crypto aes ccm test 2025-05-27 15:21:00 +02:00
mguetschow
0124fdce88
Merge pull request #21461 from Lukas-Luger/pr/psa-ecc-pub-key-derivation
sys/psa_crypto: Adding ecc p256r1 pub key derivation
2025-05-27 10:10:31 +00:00
Lukas-Luger
a932a4e86d tests/sys/psa_crypto_ecdsa: add pub key derivation 2025-05-27 08:42:30 +02:00
Marian Buschsieweke
cac44edec7
tree-wide: replace multiple empty lines with one
For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
2025-05-21 22:51:04 +02:00
Gunar Schorcht
7c150d66ed tests/sys/arduino_blinky: add most common Arduino example as test app 2025-05-13 14:51:50 +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
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
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
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
Mikolai Gütschow
8a5f047c26
boards/feather-nrf52840*: rename to adafruit-feather-nrf52840-* 2025-04-04 11:12:49 +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
69c15e1754
boards: make BOARD=native an alias for BOARD=native32 2025-04-01 12:39:06 +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
Lukas-Luger
4839195561 tests/sys/psa_crypto_mac: updated Makefile.ci 2025-03-22 19:08:31 +01:00
Lukas-Luger
e630cf38b9 tests/sys/psa_crypto_mac: adding extra long key 2025-03-21 14:28:11 +01:00
Benjamin Valentin
7c3637a62d tests/shell: drop test that only ever worked on native
It's no longer working on native, but native behaves more like a
real board now.
2025-03-13 00:24:09 +01:00
Marian Buschsieweke
1c8beb6f44
Merge pull request #21248 from mguetschow/tests-suit-flashpage
tests/sys/suit_manifest: remove unnecessary custom native board
2025-03-11 20:45:54 +00:00
Ollrogge
3e3ad836a1 sys/fido2: Fix bug in user presence test
The authenticator did not wait for user presence when user
presence tests were enabled, but LED animations were disabled.
2025-03-11 21:01:13 +01:00
Ollrogge
2e02363eef sys/fido2: Improve the tests README 2025-03-11 21:01:13 +01:00
benpicco
1e29887660
Merge pull request #21219 from benpicco/event/periodic_callback
sys/event: add `event_deferred_callback_post()` helper
2025-02-28 12:49:57 +00:00
Mikolai Gütschow
37053e1de0
tests/sys/suit_manifest: remove unnecessary custom native board 2025-02-26 09:04:59 +01:00
lulu254b
daf814e9f9 pkg/driver_cryptocell_310: allow data to be in ROM on hash update 2025-02-24 13:31:41 +01:00
Mikolai Gütschow
9a45c30222
examples: shorten subfolders' names 2025-02-21 09:55:24 +01:00
Benjamin Valentin
b20f8cb719 tests/event_periodic_callback: test for event_deferred_callback_post() 2025-02-17 13:04:09 +01:00
Mikolai Gütschow
ca5fe72bf8
treewide: fix example references in docs
adapt to folder structure from #21135
2025-02-14 19:14:22 +01:00
AnnsAnn
55fa531e02 examples: restructure to use subfolders based on README structure
examples: Fix incorrect category heading

examples: shorten coap folder name

static-tests/examples: check subfolders for entries

ci/test_native: Adjust to new examples structure

examples: adjust makefiles to new structure

ci/tests: Fix symlinks to point towards proper examples
2025-02-13 11:54:09 +01:00
Gilles DOFFE
fb0fd7d30e tests/sys/conn_can: rework blacklisted boards
Several boards have been removed from the exclusion list to reassess
their compatibility. This updates test coverage while keeping only truly
incompatible boards excluded.

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-02-10 17:15:46 +01:00
Gilles DOFFE
0bf08aa89b tests/conn_can: make test support CAN FD
Increase Shell buffer size for 64 bytes payload length of CAN FD frame.
This also implies to increase main thread stack size and especially for
native architectures.
Add two new sub-commands to test_can command:
* fdsend: to send a CAN FD frame
* fdsendrtr: to send a CAN FD RTR frame (payload length = 0).

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:23 +01:00
Gilles DOFFE
f6f6f6973c can: introduce typedef can_frame_t
Whole CAN code in RIOT is using 'struct can_frame' to represent a CAN
frame.
However incoming CAN FD support will bring 'struct canfd_frame' to
represent CAN FD frames.
Even if the 'struct canfd_frame' has additional flags and a bigger
payload, it is aligned on 'struct can_frame' and thus they can be
referenced by the same pointers in the code.

As it is impossible to predict which one will be used in RIOT, just
define a new type 'can_frame_t' which will map to the right struct
according to the MCU CAN supported format.

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:22 +01:00
Gilles DOFFE
ae51a22fbb can: use frame len instead of can_dlc
RIOT implementation of CAN bus relies on SocketCAN model.
Since commit c398e56 (can: add optional DLC element to Classical CAN
frame structure), '__u8 can_dlc' attribute of struct can_frame is
considered as deprecated in SocketCAN and kept for legacy support.
Attribute '__u8 len' should be used instead.

	union {
		/* CAN frame payload length in byte (0 .. CAN_MAX_DLEN)
		 * was previously named can_dlc so we need to carry that
		 * name for legacy support
		 */
		__u8 len;
		__u8 can_dlc; /* deprecated */
	};

Moreover, CAN FD frame structure does not support legacy attribute
'can_dlc', making 'len' mandatory for incoming CAN FD support in RIOT.

	struct canfd_frame {
		canid_t can_id;  /* 32 bit CAN_ID + EFF/RTR/ERR flags */
		__u8    len;     /* frame payload length in byte */
		__u8    flags;   /* additional flags for CAN FD */
		__u8    __res0;  /* reserved / padding */
		__u8    __res1;  /* reserved / padding */
		__u8    data[CANFD_MAX_DLEN]
__attribute__((aligned(8)));
	};

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:22 +01:00
Ollrogge
9184aa22ee pkg/fido2_tests: Update to latest version 2025-01-29 18:47:30 +01:00
Mikolai Gütschow
36aafd4d03
pkg/driver_cryptocell_310: require all data to be in RAM
as documented on https://docs.nordicsemi.com/bundle/ps_nrf52840/page/cryptocell.html\#ariaid-title14
2025-01-29 11:21:34 +01:00
Mikolai Gütschow
ee23dedf77
tests/sys/psa_crypto_hashes: place input data in RAM, test larger input 2025-01-28 21:07:46 +01:00
Mikolai Gütschow
41766e168d
tests/sys/psa_crypto_{ecdsa,mac}: place input data in RAM 2025-01-28 21:07:46 +01:00
crasbe
80e94a5906 tests/*: remove nRF6310 board 2025-01-22 16:01:42 +01:00
MrKevinWeiss
b5dadde19b
boards/waspmote-pro: Remove after the deprecation period 2025-01-20 20:55:21 +01:00
Marian Buschsieweke
71fa44c814
tests/sys/ztimer_mbox_get_timeout: Fix flakyness
On `native` when build with LLVM, time seems to not monotonically
increase, causing a test to be flaky.

This disables the part that is flaky on native on native.
2025-01-10 22:12:20 +01:00
Marian Buschsieweke
ade999ab01
Merge pull request #21113 from maribu/sys/ztimer/ztimer_mbox_get_timeout
sys/ztimer: implement ztimer_mbox_get_timeout() and use it to fix race in gnrc_sock_recv()
2025-01-10 15:37:46 +00:00