1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

37 Commits

Author SHA1 Message Date
Benjamin Valentin
8e915babc1 sys/test_utils: hide legacy events behind netdev_legacy_api 2024-11-15 14:09:18 +01:00
Benjamin Valentin
312a550f1a treewide: remove THREAD_CREATE_STACKTEST from thread creation 2024-07-29 11:45:58 +02:00
Marian Buschsieweke
e93b5e4b98
core/thread: fix thread_measure_stack_free()
`thread_measure_stack_free()` previously assumed that reading past the
stack is safe. When the stack was indeed part of a thread, the
`thread_t` structure is put after the stack, increasing the odds of
this assumption to hold. However, `thread_measure_stack_free()` could
also be used on the ISR stack, which may be allocated at the end of
SRAM.

A second parameter had to be added to indicate the stack size, so that
reading past the stack can now be prevented.

This also makes valgrind happy on `native`/`native64`.
2024-05-31 19:54:10 +02:00
MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
Frederik Haxel
64ba553d1f sys: Use size_t print format specifier
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-12-21 12:02:19 +01:00
96271df7c6
sys/test_utils: fix path to rmutex test in doc 2023-05-13 18:27:58 +02:00
c77b104c2d sys/test_utils/print_stack_usage: reduce MIN_SIZE for fmt 2023-02-07 22:42:43 +01:00
2a960f95ba test_utils/print_stack_usage: use thread.h API 2023-01-31 15:48:32 +01:00
Jose Alamos
f897e4586b
sys/test_utils/netdev_ieee802154_minimal: model in Kconfig 2023-01-19 15:34:18 +01:00
Marian Buschsieweke
86fdbd7054
core/lib: Add macros/utils.h header
The macros CONCAT(), MIN(), and MAX() are defined over and over again in
RIOT's code base. This de-duplicates the code by moving the macros to a
common place.
2023-01-07 09:47:44 +01:00
Marian Buschsieweke
5b86848d77
sys/print_stack_usage: update MIN_SIZE
Since fmt no longer has a significant advantage in stack consumption,
we need to bump the `MIN_SIZE` guard that prevents causing stack
overflows due to the printing of the stack consumption.
2022-11-15 21:41:58 +01:00
Karl Fessel
bac70c5e47 sys/test_utils/print_stack_usage: include stdio if printf is used 2022-10-12 12:21:33 +02:00
Leandro Lanzieri
e0bd45ef59
sys/test_utils/netdev_eth_minimal: model in Kconfig 2022-07-22 15:57:20 +02:00
MrKevinWeiss
3095afafd2
sys/test_utils: add netdev ieee802154 minimal processing 2022-07-11 09:25:01 +02:00
0199bab468 sys/.../print_stack_usage: optionally use fmt, handle too small stacks 2022-03-31 14:48:02 +02:00
ba86f51b26 sys/test_utils/print_stack_usage: add Kconfig support 2022-03-29 21:49:35 +02:00
fbe57de85e sys/test_utils: add print_stack_usage
This commit adds a module that can print stack metrics in the format as
understood by CI.
2022-03-29 21:49:35 +02:00
Leandro Lanzieri
48ae24b545
sys/test_utils: add netdev Ethernet minimal processing 2022-03-24 09:44:52 +01:00
Karl Fessel
1e31818f9e sys/benchmark_upd: depends on xtimer 2021-12-14 22:53:01 +01:00
Francisco Molina
dd47953178 sys/test_utils/result_output: add sort to multiple output check 2021-11-25 10:44:55 +01:00
MrKevinWeiss
5a66307314
sys/turo: Allow default selection of json 2021-11-16 08:37:45 +01:00
4bec2f0723
Merge pull request #17034 from fjmolinas/pr_turo_optional_space_after_symbol
sys/test_utils/result_output/json: optional space after symbol
2021-10-25 22:31:16 +03:00
4bee52a693 sys/test_utils/result_output: fix turo_float() precision value
`print_float()` only allows values from 0-7.
2021-10-22 12:49:16 +02:00
Francisco Molina
720338b304 sys/test_utils/result_output/json: optional space after symbol 2021-10-22 12:31:03 +02:00
99dbed9ce7 turo: fix json toru_float() precision value 2021-10-21 13:02:48 +02:00
1c8a8bf6c4 turo: add space after JSON comma 2021-10-21 13:02:21 +02:00
Benjamin Valentin
73b929b3b9 test_utils: add UDP benchmark 2021-09-02 23:12:31 +02:00
MrKevinWeiss
38884d24b2 sys/result_output: Add kconfig 2021-03-15 10:36:46 +01:00
MrKevinWeiss
6a3eb46d5e sys/result_output: Expose result output 2021-03-12 16:20:33 +01:00
MrKevinWeiss
2c2be2636d sys/result_output: Add initial structure check 2021-03-12 16:17:12 +01:00
MrKevinWeiss
d17829311c sys/result_output: Add initial text implementation 2021-03-12 16:16:28 +01:00
MrKevinWeiss
3cbd8a356b sys/result_output: Add initial json implementation 2021-03-12 16:15:07 +01:00
Leandro Lanzieri
c1edcd9fd2
sys/test_utils: add modules to Kconfig 2020-11-06 15:57:49 +01:00
825ffddbf9 sys/test_utils/dummy_thread: initial commit
This commit adds a module that just creates a thread that does nothing,
at boot time, in auto_init().
2020-06-09 13:25:14 +02:00
Francisco Molina
089c9ae71a sys/test_utils/interactive_sync: AVR puts to pgmspace 2019-12-13 10:12:01 +01:00
Francisco Molina
838a88f122 sys/shell/commands: add interactive_sync commands 2019-11-27 15:07:42 +01:00
Gaëtan Harter
027426793c
test_utils_interactive_sync: add a helper for synchronizing tests
Add an implementation that waits for 's' to print 'START' and return.
If 'r' is given is prints 'READY' to allow querying for state.

The help and answered string have to be different to not match the other.
Using puts/getchar was smaller than using `stdio_read/stdio_write` on the
example I tested with `esp32`.
2019-08-15 12:26:28 +02:00