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

3539 Commits

Author SHA1 Message Date
c7a534e42a
Merge pull request #12878 from haukepetersen/add_fmt_isnumber
sys/fmt: add fmt_is_number()
2019-12-05 20:32:47 +01:00
Hauke Petersen
fd34b5cfd8 test/kw2xrf: use fmt_is_number() 2019-12-05 15:39:24 +01:00
Hauke Petersen
ca1fd87c9b unittests: add tests for fmt_is_x() functions 2019-12-05 15:39:24 +01:00
benpicco
bcacd8e4c3
Merge pull request #12710 from benpicco/tests/periph_pm-button
tests/periph_pm: use button as a wake-up source
2019-12-05 15:08:16 +01:00
8ae7201962
Merge pull request #12550 from aabadie/pr/sys/progress_bar
sys/progress_bar: add module for managing a progress bar in stdout
2019-12-05 15:03:26 +01:00
Francisco
2b934dea5f
Merge pull request #12816 from aabadie/pr/tests/stdin_fix_avr
tests/stdin: fix automatic test on slow platforms
2019-12-05 14:09:56 +01:00
a4c3d7342a
tests/stdin: refactor test application
The test application now prints in a loop the input character. In case
stdin is not ready yet after startup this lets the possibility to try to
send several time a character before failing.
The automatic test is now more robust on platforms where stdin takes
time before it gets in a ready state (some AVR, hifive).
2019-12-05 12:27:00 +01:00
Benjamin Valentin
05db5c64bd tests/periph_pm: use button as a wake-up source
To test if GPIO interrupts can wake the CPU from sleep, configure
BTN0 (if availiable) as a wake-up source.

Pressing the buttong should wake up the CPU.
2019-12-04 16:18:16 +01:00
Leandro Lanzieri
1977b8683c tests: Add Kconfig test application 2019-12-04 15:23:52 +01:00
bd254dfc63
Merge pull request #10741 from basilfx/feature/stdio_null
sys: stdio_null: add null driver
2019-12-03 18:08:26 +01:00
Cenk Gündoğan
3c99481bc1
Merge pull request #12856 from MichelRottleuthner/pr_fix_test_short_relative_set
tests/periph_timer_short_relative_set: fix diff for non 32 bit timers
2019-12-02 19:32:41 +01:00
Martine Lenders
09c46e273d
Merge pull request #12845 from miri64/gnrc_sixlowpan_frag_rb/fix/rm-by-datagram-pkt-release
gnrc_sixlowpan_frag_rb: fix memory-leak in _rm_by_datagram()
2019-12-02 19:20:55 +01:00
7e165678fe
Merge pull request #12851 from leandrolanzieri/remove-ubjson
sys/ubjson: Remove module
2019-12-02 18:45:35 +01:00
96d90201ad
Merge pull request #11843 from fjmolinas/pr_tests_riotboot_py
tests/riotboot: migrate to full python test script
2019-12-02 18:28:14 +01:00
Francisco Molina
e41cebbaba tests/riotboot: add shell_commands
Add shell_commands to use shell version on `test_utils_interactive_sync`
2019-12-02 17:27:35 +01:00
Francisco Molina
12761934bc tests/riotboot: migrate to full python test script 2019-12-02 17:27:35 +01:00
3f1ac65b95
tests/progress_bar: add test application 2019-12-02 16:48:16 +01:00
Michel Rottleuthner
29c11c9963 tests/periph_timer_short_relative_set: fix diff calculation for non 32 bit timers 2019-12-02 11:28:26 +01:00
Juan Carrano
bea30c3f89 sys/ubjson: remove module.
The ubjson module has a number of quality defects and is unsafe.
Considering CBOR is popular, standarized and supported in RIOT and that
the ubjson implementation is a home-grown one whose API will likely be
unfamiliar to new users, I propose to delete it.

This removal, of course, dows not have to be NOW. We can deprecate it for
one or two releases before.

What's wrong with this module?

- Unsafe: the parsing is done recursively. This is embedded in the API, so it
  is not possible to fix it without changing the API. A document with too much
  nesting can cause a stack overflow.
- Does not validate writing: it is possible to produce invalid output. From
  the docs:
  > The library won't complain if you write multiple values that are not
  > inside an array or object. The result will just not be properly serialized.
- Poorly tested. As shown by #11702, #11703 the tests were not even detecting
  that a False was stored as True.
- In line with the previous remark, see
  68dc5b0d6e/tests/unittests/tests-ubjson/tests-ubjson.c (L66-L77)
  Why is the following code in the unit tests??
  ```c
    irq_disable();
    sched_set_status(data->main_thread, STATUS_PENDING);
  ```
- #2175 is still unfixed after 3.5 years.
- Code quality. The code has multiline macros that assign variables and
  return. See c332514875/sys/ubjson/ubjson-write.c (L34-L41)

Can we mark it as deprecated this release and sweep it in the following one?
2019-12-01 23:44:39 +01:00
81f113ba05 tests/periph_timer_short_relative_set: initial commit 2019-12-01 14:14:44 +01:00
benpicco
4df6bb425f
Merge pull request #12830 from benpicco/lpc2387-ldfix
cpu/lpc2387: clean up lpc2387.ld, fixes tests/cpp_ctors
2019-11-29 17:44:58 +01:00
Martine S. Lenders
e1d171b50e
tests/gnrc_sixlowpan_frag: check packet buffer in test_rbuf_rm_by_dg
gnrc_sixlowpan_frag_rm_by_datagram() currently doesn't release the
packet in the reassembly buffer entry removed, meaning it puts a leak
into the packet buffer. This changes the tests to check for that error.
2019-11-29 15:35:55 +01:00
Benjamin Valentin
533e83ad2d tests/cpp_ctors: remove avsextrem & msba2 from blacklist
The test should be passing now.
2019-11-29 12:13:21 +01:00
Leandro Lanzieri
cb28400bce tests/gnrc_netif: Adapt test to new interface names 2019-11-29 10:22:00 +01:00
f5252bf482
Merge pull request #12832 from aabadie/pr/tests/ps_schedstatistics_enh
tests/ps_schedstatistics: fix test on AVR + improve Python test script
2019-11-28 13:58:39 +01:00
benpicco
e81d040a26
Merge pull request #12799 from chudov/derfmega-PR
boards/derfmega*: initial support
2019-11-28 13:57:56 +01:00
9eac4b8b75
Merge pull request #12825 from JannesVolkens/ncv7356_doc
drivers/ncv7356: Add documentation
2019-11-28 12:32:10 +01:00
benpicco
b9b7e652e2
Merge pull request #12833 from dylad/pr/tests/adc_fix_printf
tests/periph_adc: fix printf content on failure
2019-11-28 11:57:38 +01:00
Francisco
a0783afe6d
Merge pull request #12632 from aabadie/pr/tests/memarray_autotest
tests/memarray: add python script for automatic testing
2019-11-28 11:52:56 +01:00
Dylan Laduranty
6a4259e48a
Merge pull request #12064 from benpicco/sam0-buffered_uart
cpu/sam0_common/periph/uart: implement non-blocking write
2019-11-28 10:07:11 +01:00
Benjamin Valentin
0c08abd19a tests/periph_uart_nonblocking: add simple test application
The application is mainly to compile-test non-blocking UART
functionality, but some functional testing is also possible.

With non-blocking UART the total runtime of the program is 2100735 µs
on same54-xpro.
With blocking UART the total runtime is 2152407 µs.
2019-11-28 09:26:58 +01:00
Francisco
372ae95d28
Merge pull request #12628 from aabadie/pr/make/develhelp_cleanup
make/develhelp: make usage consistent + add ci check
2019-11-28 09:26:52 +01:00
Dylan Laduranty
3f1027d0c2 tests/periph_adc: fix content printf on failure 2019-11-28 09:07:52 +01:00
ae223308bf
tests/memarray: add automatic test script 2019-11-28 08:47:57 +01:00
60c922df1a
tests/memarray: allow overridable macros and print them
MAX_NUMBER_BLOCKS and NUMBER_OF_TESTS can be overriden via CFLAGS
2019-11-28 08:47:57 +01:00
f885b90bd9
tests/ps_schedstatistics: improve automatic test script
- Ensure the whole ps output is displayed in the terminal before exiting the script
- Escape parenthesis in line regexp
2019-11-28 08:31:11 +01:00
c9fccbc34d
tests/ps_schedstatistics: use lower load in background threads
On slow platforms, such as AVR, the main thread could never run and the shell would remain stuck.
2019-11-28 08:05:00 +01:00
15d58760a9
Merge pull request #12822 from fjmolinas/pr_fix_eol
tests: fix tests matching varied sized group regex
2019-11-28 08:01:30 +01:00
benpicco
7c9f2e1794
Merge pull request #12791 from maribu/test_isr_yield_higher
tests/isr_yield_higher: Make use of US_PER_MS
2019-11-27 23:21:12 +01:00
chudov
0a151a78da boards/derfmega*: initial support 2019-11-27 20:53:14 +01:00
1271274964
Merge pull request #12824 from fjmolinas/pr_pexpect_doc
tests/README: add automated tests guidelines
2019-11-27 18:52:09 +01:00
Francisco Molina
264b323c66 tests/README: add automated tests guidelines 2019-11-27 15:26:08 +01:00
Francisco Molina
175c48f8d4 tests/gnrc_ndp: add z1 to insufficient memory 2019-11-27 15:07:43 +01:00
Francisco Molina
0996fb87fd tests: insufficient mem. atmega328p based boards
- When using test_interactive_sync_utils, stdin and many more
  prints/puts are included. These all go into .bss/.data which
  quickly fills up RAM.
2019-11-27 15:07:43 +01:00
Francisco Molina
34c6063520 tests/README.md: add automated test guideline 2019-11-27 15:07:43 +01:00
Francisco Molina
416c048737 tests: add test_utils_interactive_sync when possible
- Define test_utils_interactive_sync as DEFAULT_MODULE in Makefile.tests_common
- For tests disabling autoinit, add test_utils_interactive_sync to main
- Add DISABLE_MODULE += test_utils_interactive_sync for tests requiring
  sudo,  `tests/shell`, `tests/minimal` and `tests/stdin`
- Add shell_commands to tests/periph_wdt and tests/struct_tm_utility to
  pull `r` and `s` commands
- Remove includes and usage in `tests/main.c` for tests that where
  already using test_utils_interactive_sync
2019-11-27 15:07:42 +01:00
Francisco Molina
3db9eab6d9 tests: expect match \r\n or \s
- Since `printf()` is buffered it might not arrive in a single
  read to pexpect. Regex which terminate in a group match might
  match only some elements, this might break tests that depend
  on exact group matching.
2019-11-27 14:12:12 +01:00
Jannes
675bb0fe57 tests/conn_can: Edit README 2019-11-27 13:35:57 +01:00
fb8428cb6d tests/malloc: fix test regexp to consider whole line 2019-11-27 10:41:33 +01:00
Bas Stottelaar
05bdab80e0 tests: minimal: use stdio_null 2019-11-26 21:12:41 +01:00