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

3567 Commits

Author SHA1 Message Date
Martine Lenders
61a78cf817
Merge pull request #12926 from benpicco/sys-hashes-crc8
sys/checksum: move crc8 implementation from sht3x to common code.
2019-12-13 17:47:07 +01:00
Francisco
c58232aebf
Merge pull request #12844 from aabadie/pr/make/base_ext
Makefile.base: add variables for customizing C++ builds
2019-12-13 15:39:36 +01:00
Benjamin Valentin
5d8aa6ad9a tests/checksum: add tests for crc8
Taken from tests-checksum-crc16-ccitt.c
2019-12-13 14:50:33 +01:00
a88306088d
Merge pull request #12677 from JulianHolzwarth/pr/thread_status_t/zombie
core: add zombie thread state
2019-12-13 13:37:10 +01:00
Martine Lenders
26a1348a9a
Merge pull request #12867 from fjmolinas/pr_tests_no_reset_dep
tests: adapt tests so they can use `tests_utils_interactive_sync`
2019-12-12 15:47:21 +01:00
Francisco Molina
341a4b5bfd tests/gnrc_%: use tests_utils_interactive_sync 2019-12-12 10:13:34 +01:00
Francisco Molina
eb9d27db69 tests/gnrc_rpl_srh: run unittests through shell
Using the shell to run unittests allows not needing
to wait for a string at the start of the test which
makes the test independent having the application reset
after the terminal is open.
2019-12-12 10:13:34 +01:00
Francisco Molina
5bf1a22472 tests/gnrc_ipv6_ext_frag: refactor to not depend on reset
Using the shell to run unittests allows not needing
to wait for a string at the start of the test which
makes the test independent having the application reset
after the terminal is open. The same goes for triggering
sending UDP test pkts.
2019-12-12 10:13:33 +01:00
Francisco Molina
4117b459af tests/shell: fix reset dependency 2019-12-12 10:13:33 +01:00
JulianHolzwarth
cc0243f585 tests/thread_zombie/: new test for zombie state threads
ps is optional
2019-12-11 16:48:31 +01:00
a9bf69146b
Merge pull request #9948 from bergzand/pr/ili9341
ili9341: Initial import of ili9341 LCD driver
2019-12-11 16:43:46 +01:00
9c520fd793
ili9341: Add simple test application 2019-12-11 16:18:40 +01:00
Martine Lenders
f38f974d86
Merge pull request #12629 from miri64/gnrc_sixlowpan_iphc/enh/vrb-creation
gnrc_sixlowpan_iphc: add fragment forwarding stubs
2019-12-10 14:58:01 +01:00
Martine S. Lenders
3273602f24
tests: provide test application for IPHC+VRB behavior 2019-12-10 13:59:41 +01:00
Francisco
20d89af043
Merge pull request #12755 from aabadie/pr/application_dep
make: add possibility to provide board specific application dependencies in a separate Makefile
2019-12-09 16:52:19 +01:00
Martine Lenders
7b13781cd2
Merge pull request #12625 from miri64/gnrc_sock/enh/async-support
gnrc_sock: provide asynchronous event implementation
2019-12-09 12:39:58 +01:00
Martine S. Lenders
23428ab775
tests: provide tests for gnrc_sock_async 2019-12-09 12:11:57 +01:00
418d00d0ea
Merge pull request #9283 from gebart/pr/frac
sys/frac: Integer fractions
2019-12-09 09:09:10 +01:00
b7a786394f
tests/gnrc_sock_dns: move board specific deps in Makefile.board.dep 2019-12-06 21:19:49 +01:00
b58c5afb2c
tests/gnrc_tcp: move board specific deps in Makefile.board.dep 2019-12-06 21:19:35 +01:00
f184c7daf2
tests/gnrc_rpl_srh: move board specific deps in Makefile.board.dep 2019-12-06 21:19:22 +01:00
805907ee0f
tests/gnrc_ipv6_ext_frag: move board specific deps in Makefile.board.dep 2019-12-06 21:18:48 +01:00
a06ac2afc0
tests/gnrc_ipv6_ext: move board specific deps in Makefile.board.dep 2019-12-06 21:18:21 +01:00
f88d55cf9d tests/driver_hd44780: disable CI for esp32-wroom-32 2019-12-06 12:42:51 +01:00
Joakim Nohlgård
e4e860a20a frac: Integer fraction scaling library 2019-12-06 09:36:33 +01:00
Benjamin Valentin
81e9603981 tests/periph_backup_ram: disable test_utils_interactive_sync
The `periph_backup_ram` test expects the CPU to enter Deep Sleep, wake up
(causing a CPU reset) increment a counter and go back to sleep.

Introducing a requirement on interaction after reset breaks the test.
2019-12-05 22:44:46 +01:00
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
5fab9ea623
tests: add test for custom cpp file extensions 2019-12-04 20:10:55 +01:00
37f2d32914
tests: add test for cpp files exclude 2019-12-04 20:10:55 +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