1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

177 Commits

Author SHA1 Message Date
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
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
Marian Buschsieweke
8230a274e5
tests: add test for ztimer_mbox_get_timeout() 2025-01-10 16:19:00 +01:00
benpicco
758a92f6f0
Merge pull request #21085 from crasbe/pr/sys/stdio_nimble
sys/stdio_nimble: add version note to README
2025-01-08 08:52:52 +00:00
Marian Buschsieweke
8903c82320
tests/sys/shell: improve test automation
This changes the matching to not eagerly match a shell commands
description across a line break.
2024-12-31 11:30:27 +01:00
crasbe
9c44b7f842 tests/sys/shell_ble: update reference to instructions 2024-12-21 20:59:04 +01:00
Mikolai Gütschow
be5d099e84
tests/sys/shell: use default terminal instead of socat
python tests by default already use make cleanterm
2024-12-02 08:50:27 +01:00
Karl Fessel
737f675442
Merge pull request #18663 from Ollrogge/fido2_follow_up2
sys/fido2: follow up continued
2024-11-28 10:09:47 +00:00
Teufelchen
5fa8f65c44
Merge pull request #21036 from maribu/tests/sys/shell/fix-test
tests/sys/shell: make test script more robust
2024-11-27 11:25:09 +00:00
Marian Buschsieweke
b858614fec
tests/sys/shell: make test more robust
This changes the behavior of the test script for verifying the `help`
command: It no longer assumes a specific order for the list of commands.

Making the test robust is a bit tricky, as the module
`shell_cmds_default` that is used here may add commands specific to a
set of board. We use `help_json` to get the list of commands actually
provided, so that we know how many rows the command table printed
by `help` need to be parsed.

A minimum set of commands that *must* be present for all boards is
hard-coded in the test script and the actually provided commands are
tested against this. Otherwise e.g. an empty list of commands presented
by `help` and `help_json` would also pass.

Co-authored-by: benpicco <benpicco@googlemail.com>
2024-11-25 17:23:26 +01:00
JulianHolzwarth
83cf6bf339 tests/sys/events/: test if event_timeout_is_pending returns false
test if event_timeout_is_pending returns false when event_timeout_t is not completly initialized
2024-11-25 12:37:47 +01:00
Marian Buschsieweke
5a342e8a4b
tests/sys/shell: fix invalid escaping in test
This fixes:

    /home/marian.buschsieweke@ml-pa.loc/Repos/software/RIOT/master/tests/sys/shell/tests/01-run.py:86: SyntaxWarning: invalid escape sequence '\e'

Python still assumes `\\<char>` if `\<char>` is not valid, but started
to warn. Chances are good that this will be elevated to an error in
future python releases.
2024-11-25 11:12:32 +01:00
Ollrogge
db95ef6f10 sys/fido2: Small fix to dependencies && cleanup 2024-11-25 11:03:03 +01:00
Ollrogge
7e0a86ba32 fido2/ctap: add test for ctap without transport layer 2024-11-25 11:03:03 +01:00
Ollrogge
eddb00ae42 fido2/ctap: Adjust ctap_mem code to work on native 2024-11-25 11:03:03 +01:00
Mikolai Gütschow
28ec1c5d2e
tests/sys/ztimer_overhead: mention auto_adjust in README and fix typos 2024-11-18 17:28:48 +01:00
Marian Buschsieweke
cfd313cd03
Merge pull request #20988 from mguetschow/tests-shell-skip-reboot
tests/sys/shell: skip reboot for boards using highlevel_stdio
2024-11-15 22:46:45 +00:00
Mikolai Gütschow
1fece9008e
tests/sys/shell: skip reboot for boards using highlevel_stdio 2024-11-14 14:40:54 +01:00
Marian Buschsieweke
562f1f0210
tests: always use interactive sync for timing tests
Use `test_utils_interactive_sync` for the following tests explicitly:

- tests/periph/timer_periodic
- tests/sys/posix_sleep

This is needed for accurate timestamping of the stdio received. The
tests will not pass without on `native` / `native64`.
2024-11-13 12:37:37 +01:00
Marian Buschsieweke
abb666bf73
tests/sys/shell_lock: increase robustness of the test
Before the test used the `help` command to verify that access to the
shell is present. While this does have the benefit of not requiring a
custom command, it does have some robustness issues:

- When new default commands get added, this test will fail
- When the help message of a command gets reworded, the test will fail
- When the order of commands in the test will change, the test will fail
    - Note that with the XFA based `SHELL_COMMAND()` macro, we do not
      guarantee any particular order. Specifically, the order can change
      with implementation details.
2024-11-07 10:45:50 +01:00
mguetschow
00e25adfe3
Merge pull request #20720 from netd-tud/chacha20-glue-code-implementation
sys/psa_crypto: one-shot Chacha20 support
2024-10-29 16:52:30 +00:00
Mihai Renea
9996909b65 sys/event: add event_sync() 2024-10-18 13:14:04 +02:00
Wunderbaeumchen
b9396c4739 sys/psa_crypto: chacha20 oneshot gluecode 2024-10-17 10:25:59 +02:00