1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
Commit Graph

7160 Commits

Author SHA1 Message Date
benpicco
243ca3114b
Merge pull request #20843 from benpicco/string_writer
sys/string_utils: add string_writer helper
2024-12-20 16:36:09 +00:00
Benjamin Valentin
db6196e061 tests/pkg/relic: blacklist ATXmega boards 2024-12-20 17:16:51 +01:00
Benjamin Valentin
2bf4c715d8 unittests: add test for string_writer 2024-12-17 12:38:14 +01:00
Marian Buschsieweke
4d44abcc0e
Merge pull request #21073 from benpicco/sys/chunked_ringbuffer-start_discard
sys/chunked_ringbuffer: discard stale chunk when starting a new one
2024-12-14 09:28:14 +00:00
Benjamin Valentin
532f018b3a tests/unittests: chunked_ringbuffer: add test for half-written chunk 2024-12-13 16:30:28 +01:00
Marian Buschsieweke
c7af4b25a6
sys/net/nanocoap: fix invalid RST messages
An RST message has no token, so don't reply with a token when sending
RST.

This also adds unit tests to ensure this this exact bug does not sneak
back in.
2024-12-12 14:28:28 +01:00
Marian Buschsieweke
fa011a8a1a
tests/net/nanocoap_cli: allow specifying the token
This adds the client_token shell command that allows to specify the
CoAP Token. This is particularly useful to test extended length Tokens,
as enabled with module `nanocoap_token_ext`.

Co-authored-by: benpicco <benpicco@googlemail.com>
2024-12-12 14:28:28 +01:00
Marian Buschsieweke
6b1279348a
sys/fmt: add scn_buf_hex()
This adds a function to convert a hex string to a byte array.
2024-12-12 14:28:28 +01:00
Marian Buschsieweke
7a738d0e0b
sys/net/nanocoap: fix buffer overflow in separate response handling
When RFC 8974 support (module `nanocoap_token_ext`) is in use, the
request token may be longer than the buffer in the separate response
context is large. This adds a check to not overflow the buffer.

Sadly, this is an API change: Preparing the separate response context
can actually fail, so we need to report this with a return value.

The example application has been adapted to only proceed if the separate
reply context could have been prepared, and rather directly emit a
reset message if the token exceeds the static buffer.

Co-authored-by: benpicco <benpicco@googlemail.com>
2024-12-12 14:28:28 +01:00
Marian Buschsieweke
f5b4b171e0
Merge pull request #21058 from mguetschow/tests-shell-socat
tests/sys/shell: use default terminal instead of socat
2024-12-04 00:44:09 +00:00
Mikolai Gütschow
9f2755a657
tests/build_system/external_module: custom prng in transitive dep 2024-12-03 10:34:35 +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
Marian Buschsieweke
af89824cfd
Merge pull request #21047 from mguetschow/msg-queue-print
core/msg: re-enable IRQs before printing for highlevel_stdio
2024-11-28 14:01:55 +00:00
Mikolai Gütschow
e843514510
tests/core/msg_queue_print: test for special cases 2024-11-28 12:49:11 +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
3b238f7db3
Merge pull request #21042 from maribu/tests/periph/selftest_shield/fix-uart
tests/periph/selftest_shield: Fix UART test
2024-11-26 15:47:43 +00:00
Marian Buschsieweke
d0e4f4d279
Merge pull request #20989 from mguetschow/tests-thread-priority
tests/core/thread_msg: lower thread priority for consistent output order
2024-11-26 15:15:04 +00:00
Marian Buschsieweke
a51d4bd7d9
tests/periph/selftest_shield: fix logic to enable UART test
We cannot use the D0/D1 UART if it is also used for STDIO. However,
the logic did not take into account whether `stdio_uart` was used at
all. This fixes the issue.
2024-11-26 13:35:02 +01:00
Marian Buschsieweke
e7ea668a7f
tests/periph/selftest_shield: release UART after test
Calling `uart_poweroff()` when done with the UART test allows sharing
the underlying hardware e.g. to provide other peripheral interfaces.
One example of this would be the SERCOM3 on the Adafruit Metro M4
Express that is used to provide UART on D1/D0 and SPI on D11/D12/D13.
2024-11-26 13:34:54 +01:00
Mikolai Gütschow
149a26ed25
tests/core/thread_msg: lower thread priority for consistent output order
also drop THREAD_CREATE_WOUT_YIELD flag, since it is not sensible to use when creating lower-priority threads
2024-11-26 13:07:58 +01:00
Marian Buschsieweke
b69d060e35
Merge pull request #21030 from JulianHolzwarth/pr/software/test/cond
tests/core/cond_order/: calling cond signal and broadcast without waiting threads
2024-11-26 05:50:38 +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
mguetschow
e9e946dc43
Merge pull request #21032 from JulianHolzwarth/pr/tests/events/pending
tests/sys/events: test if event_timeout_is_pending returns false
2024-11-25 15:32:10 +00: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
Teufelchen
1ac0c2cdd1
Merge pull request #20961 from maribu/tests/net/nanocoap_cli/modernize
tests/net/nanocoap_cli: make use of XFA for shell commands
2024-11-25 10:31:13 +00: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
Marian Buschsieweke
c700aa92d4
Merge pull request #21031 from benpicco/net_fixes-misc
drivers/at86rf215: return ENETDOWN when interface is down
2024-11-23 16:30:32 +00:00
Benjamin Valentin
9d22e46fa9 test/net/nanocoap_cli: fix buffer size for get_non 2024-11-22 19:50:20 +01:00
mguetschow
a9108a40dd
Merge pull request #20958 from maribu/sys/shell/xfa-reduce-overhead
sys/shell: reduce overhead of XFA shell commands
2024-11-22 14:03:57 +00:00
Joshua DeWeese
d9593c7caa
Merge pull request #21013 from maribu/build_system/feature-conflict-is-error
build system: error on conflicting features
2024-11-22 13:46:42 +00:00
Marian Buschsieweke
2be92b5e55
rust: bump rust-riot-wrappers 2024-11-22 11:14:34 +01:00
Marian Buschsieweke
9801ca5dd4
Merge pull request #21023 from benpicco/tests/periph/pm-alarm
tests/periph/pm: print some output on alarm
2024-11-21 22:14:35 +00:00
Marian Buschsieweke
d3b28442ba
Merge pull request #21003 from mguetschow/ztimer-overhead-adjust
sys/ztimer: mention ztimer_auto_adjust in relevant places
2024-11-21 16:40:25 +00:00
Benjamin Valentin
8ed05a68e1 tests/periph/pm: print some output on alarm 2024-11-21 14:55:57 +01:00
Marian Buschsieweke
d7d6a3653d
Merge pull request #21006 from maribu/tests/periph/selftest_shield/fix-timer_init
tests/periph/selftest_shield: fix invalid calls to timer_init() + GPIO IRQ tests
2024-11-21 05:44:12 +00:00
Marian Buschsieweke
d8304fa196
tests/build_system: drop warn_conflict app
This is no longer a warning but an error.

Also: This is already covered by the static tests via
`dist/tools/feature_resolution/check.sh`, which uses a lot less CPU
time in the CI.
2024-11-20 21:56:46 +01:00
Marian Buschsieweke
fd30434921
tests/periph/selftest_shield: fix GPIO IRQ testing
The GPIO IRQ tests had a side-effect that IRQs remained configured after
the test case was complete. This caused stray IRQs to trigger on
SAM0 MCUs and they consequently (and incorrectly) failed the test.
2024-11-19 22:25:20 +01:00
Marian Buschsieweke
d1c4b455fb
tests/periph/selftest_shield: fix invalid calls to timer_init()
Calling `timer_init()` with unsupported frequencies on some MCUs just
selects the closest possible frequency. But e.g. on SAM0, using an
unsupported frequency will cause `timer_init()` to fail; which probably
is the better option.

However, a failing calling to `timer_init()` results in a test failure.
This is now worked around by using timer_query_freq() to select a
suitable timer frequency that is supported.
2024-11-19 22:25:15 +01:00
Mikolai Gütschow
d3133c5acc
tests/periph/uart: wait 1ms for HW to trigger RX irq during self-test 2024-11-19 14:47:02 +01:00
Mikolai Gütschow
a0164ff58c
tests/periph/uart: improve error handling and reporting 2024-11-19 14:46:50 +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
benpicco
aee4c1ef9c
Merge pull request #20984 from benpicco/gnrc_pktsnip_t-shrink
sys/net/gnrc/pkt: use `uint8_t` for user count
2024-11-17 17:29:16 +00:00
Benjamin Valentin
cb554fd342 tests/unittests: use proper initializers for gnrc_pktsnip_t 2024-11-16 16:39:32 +01:00
Marian Buschsieweke
d2c52746b3
Merge pull request #20990 from mguetschow/tests-cpu-mpu
tests/cpu/mpu*: exclude boards using highlevel_stdio
2024-11-15 22:46:50 +00: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
JulianHolzwarth
1ed2f36cd5 tests/cond_order/main.c: testing without waiting threads 2024-11-15 21:13:33 +01:00