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

4447 Commits

Author SHA1 Message Date
0ccf94fa23 tests/shell: don't expect idle thread in ps output 2020-06-25 16:02:29 +02:00
22d44d0763
Merge pull request #14357 from bergzand/pr/unittests/hashes/static_const
unittests/hashes: Mark input strings as static const
2020-06-25 16:01:52 +02:00
Francisco
903ad1e888
Merge pull request #14354 from miri64/drivers/cleanup/rm-NETOPT_IPV6_IID
netdev: remove NETOPT_IPV6_IID support for network devices
2020-06-25 15:53:33 +02:00
9210630e1a
unittests/hashes: Mark input strings as static const 2020-06-25 15:05:26 +02:00
Martine S. Lenders
1399f6f2ff
tests/gnrc_ipv6_nib_6ln: remove NETOPT_IPV6_IID support in mock-device
This option is handled in the `gnrc_netif`-layer without any access to
the driver's option since 7ae90564d9.
2020-06-25 13:41:33 +02:00
Martine Lenders
49ab078c03
Merge pull request #14349 from miri64/lwip/enh/dual-stack
pkg/lwip: enable IPv4/IPv6 dual stack mode
2020-06-25 13:30:07 +02:00
Francisco
c0d171a0a2
Merge pull request #14343 from leandrolanzieri/pr/kconfig/cc2538_based_symbols
boards/cc2538-based: Model features in Kconfig
2020-06-25 13:20:58 +02:00
Martine S. Lenders
efbac9f1f7
tests/lwip: adapt for IPv4/6 dual-stack usage 2020-06-25 12:45:37 +02:00
benpicco
b13085defb
Merge pull request #14110 from fabian18/mtd_at24cxxx
drivers/at24cxxx: MTD wrapper for at24cxxx
2020-06-24 18:46:36 +02:00
Leandro Lanzieri
aa152e37fc
tests/kconfig_features: Add cc2538-based boards to whitelist 2020-06-24 15:18:55 +02:00
Francisco
b49bd9ffe5
Merge pull request #14276 from jue89/fix/samr30-xpro_ztimer_rtt_underflow
cpu/saml21: adjust RTT_MIN_OFFSET
2020-06-24 13:41:06 +02:00
Leandro Lanzieri
cd3b1515a0
Merge pull request #14338 from aabadie/pr/cpu/fe310_kconfig
cpu/fe310: boards/hifive1*: model features in Kconfig
2020-06-24 13:34:40 +02:00
Kevin "Tristate Tom" Weiss
2d5901dd69
Merge pull request #14340 from leandrolanzieri/pr/kconfig/msp430_boards_symbols
boards/msp430-based: Model features in Kconfig
2020-06-24 12:53:42 +02:00
Francisco
af80e863b3
Merge pull request #13197 from HendrikVE/shell-tokenizer-refactor
sys/shell: refactor tokenizer code
2020-06-24 12:32:51 +02:00
5e71c55f87
tests/kconfig_features: add hifive1 and hifive1b boards 2020-06-24 11:13:45 +02:00
Francisco
816d7c4d28
Merge pull request #14206 from leandrolanzieri/pr/kconfig/atmega256rfr2_based_boards
boards/atmega256rfr2-based: Model features in Kconfig
2020-06-24 11:06:04 +02:00
Leandro Lanzieri
b3ce577dd5
tests/kconfig_features: Add msp430 boards to whitelist 2020-06-24 09:33:24 +02:00
Benjamin Valentin
1e127e1ba8 tests/periph_timer_periodic: use TIMER_CHANNEL_NUMOF 2020-06-24 00:45:35 +02:00
Leandro Lanzieri
c58d2ce264
tests/kconfig_features: Add atmega256rfr2-based boards to whitelist 2020-06-23 14:37:30 +02:00
Hendrik van Essen
cbf5cc5327 tests/shell: refactor test file and add several new test cases
Divide test cases in to groups and add test cases for:
- multiple spaces between arguments
- tabs between arguments
- leading/trailing spaces
- more simple variations for escaping
- multiple tests for correct quoting

A second occurence of the test case "('help', EXPECTED_HELP),"
was removed.
2020-06-23 13:51:19 +02:00
Juergen Fitschen
897b63afa4 tests/ztimer_underflow: initial commit 2020-06-23 11:57:28 +02:00
Leandro Lanzieri
1d278de6c1
tests/kconfig_features: Add arduino-leonardo to whitelist 2020-06-23 09:57:22 +02:00
Leandro Lanzieri
819efea0ec
tests/kconfig_features: Add atmega128x-based boards to whitelist 2020-06-22 17:10:08 +02:00
Leandro Lanzieri
8f8bcdaeeb
tests/kconfig_features: Add atmega128rfa1-based boards to whitelist 2020-06-22 16:10:41 +02:00
Peter Kietzmann
332ae60e04
Merge pull request #14211 from leandrolanzieri/pr/kconfig/atmega2560_boards_symbols
boards/arduino-mega2560: Model features in Kconfig
2020-06-22 15:04:43 +02:00
02578cfbd3
Merge pull request #14317 from fjmolinas/pr_fix_od_werror
sys/od/od: fix -Werror=char-subscripts
2020-06-22 14:59:44 +02:00
Francisco Molina
df3f10a963
tests/od: always include od_string in test
This test removes the test case for od_string not being included,
it instead keeps the second test script that rested od and od_string.
2020-06-22 13:33:41 +02:00
Martine Lenders
2b90d9b833
Merge pull request #12907 from miri64/tinydtls/enh/async-sock
tinydtls: add `sock_async` support for `sock_dtls`
2020-06-22 08:25:16 +02:00
Martine S. Lenders
155953fd60
tests: provide test for tinydtls with sock_async 2020-06-21 23:08:41 +02:00
Benjamin Valentin
bd7acf4adf tests/periph_spi: add test for periph_spi_reconfigure feature 2020-06-21 21:21:39 +02:00
Leandro Lanzieri
a2e06df1b6
tests/kconfig_features: Add efm32-based boards to whitelist 2020-06-18 16:39:59 +02:00
Leandro Lanzieri
03ee4617e2
tests/kconfig_features: Add check for common variable values
This verifies that the following variables have the same value in the
Kconfig counterpart:
- BOARD
- CPU
- CPU_MODEL
- CPU_FAM
- CPU_CORE
- CPU_ARCH
2020-06-18 15:21:07 +02:00
Leandro Lanzieri
3ce8efd4cb
Merge pull request #14138 from akshaim/Kconfig_mac
gnrc/mac : Expose configurations to Kconfig
2020-06-17 18:12:40 +02:00
Benjamin Valentin
e89d9c05c3 tests: don't set VFS params by the application 2020-06-17 15:58:33 +02:00
Leandro Lanzieri
7201fdfaad
Merge pull request #14019 from akshaim/Kconfig_at
drivers/at : Expose Configurations to Kconfig
2020-06-17 15:42:39 +02:00
Leandro Lanzieri
16a0452742
tests/kconfig_features: Add arduino-mega2560 to whitelist 2020-06-17 12:44:30 +02:00
Francisco
112ff81f3e
Merge pull request #14176 from leandrolanzieri/pr/kconfig/atmega_boards_symbols
boards/atmega328p-based: Model features in Kconfig
2020-06-17 12:22:31 +02:00
07c78efc83
Merge pull request #14285 from fjmolinas/pr_uart_nb_race
sam0/stm32: fix possible uart_nonblocking deadlock
2020-06-17 12:14:25 +02:00
Akshai M
f9741b3ed5 drivers/at : Add CONFIG_
Add CONFIG_ prefix to AT_SEND_EOL,  AT_SEND_SKIP_ECHO,
CONFIG_AT_RECV_OK, CONFIG_AT_RECV_ERROR
2020-06-17 14:52:21 +05:30
Leandro Lanzieri
4a1f6e5946
test/kconfig_features: Add atmega328p-based boards to list 2020-06-17 10:59:31 +02:00
benpicco
0d8fea429e
Merge pull request #13126 from basilfx/feature/mh-z19
drivers/mhz19: initial support
2020-06-17 10:15:40 +02:00
Francisco Molina
f7d124e141
tests/periph_uart_nonblocking: test print with disabled irq 2020-06-17 10:01:20 +02:00
a94155bc11 tests/mhz19: add test application 2020-06-17 08:41:41 +02:00
Bas Stottelaar
35920a205e tests/pkg_ucglib: updated tests 2020-06-17 00:47:54 +02:00
Leandro Lanzieri
649017f0b2
cpu/cortexm_common: Rename arch_cortexm feature to cpu_core_cortexm 2020-06-16 12:05:41 +02:00
Leandro Lanzieri
4d65bc8e0a
cpu: Rename CPU_ARCH to CPU_CORE 2020-06-16 12:05:40 +02:00
818dc09a24
Merge pull request #14270 from keestux/fix-test-thread_msg_seq
tests/thread_msg_seq: better guarantee sequence of output lines
2020-06-16 10:31:26 +02:00
f93ba336e8
Merge pull request #12730 from keestux/add-sodaq-sff
boards/sodaq-sff: add support for SODAQ SFF
2020-06-16 08:47:48 +02:00
benpicco
471b0e2a5a
Merge pull request #14283 from bergzand/pr/tests/periph_spi_dma/initial
tests/periph_spi_dma: Add test for SPI with DMA
2020-06-16 00:52:46 +02:00
Kees Bakker
c062b7f33d tests/unittests: add sodaq-sara-sff to BOARD_INSUFFICIENT_MEMORY 2020-06-15 21:58:17 +02:00
Kees Bakker
370e166f31 tests/thread_msg_seq: better guarantee sequence of output lines
This also changes to expectations of the test script. It does not rely
on fixed thread IDs anymore, because boards with CDC ACM as stdio have
a different first thread then boards with "normal" stdio via UART.

This resolves issue #14256
2020-06-15 21:53:56 +02:00
Kees Bakker
c307c3946b tests/bench_xtimer: add sodaq-sara-sff to LOW_MEMORY_BOARDS 2020-06-15 21:13:14 +02:00
ed827cb453
tests/periph_spi_dma: Add test for SPI with DMA
This new test inherits everything from the regular periph_spi test, but
with DMA enabled
2020-06-15 19:28:12 +02:00
Leandro Lanzieri
78f8cef88b
Merge pull request #14290 from fjmolinas/pr_lwip_bl_nucleo_f302r8
tests/lwip: blacklist nucleo-f302r8
2020-06-15 17:39:24 +02:00
Francisco Molina
e2dac2f23d
tests/lwip: add nucleo-f302r8 to BOARD_INSUFFICIENT_MEMORY 2020-06-15 14:45:04 +02:00
f013993b19
Merge pull request #14284 from keestux/fix-test-posix_semaphore
tests/posix_semaphore: better guarantee sequence of output lines
2020-06-15 09:51:01 +02:00
57809d65a0
Merge pull request #14271 from keestux/fix-test-xtimer_mutex_lock_timeout
tests/xtimer_mutex_lock_timeout: don't assume number of threads at start
2020-06-15 09:50:18 +02:00
Akshai M
414a0b0fa5 tests/unittests/mac : Added check for macro if set via Kconfig 2020-06-15 12:29:00 +05:30
Akshai M
9ddc9e0633 gnrc/mac : Move GNRC_MAC_NEIGHBOR_COUNT to 'CONFIG_' 2020-06-15 12:19:37 +05:30
Kees Bakker
8369f42d5e tests/posix_semaphore: better guarantee sequence of output lines
As suggested by @kaspar030 the THREAD_CREATE_WOUT_YIELD flag was removed.
Now the sequence of output lines is identical in two cases: stdio via UART,
and stdio via CDC ACM (which needs a thread for that).

The expects have been changed to match the new situation, which is what
was already given in the CDC ACM case.
2020-06-14 20:03:32 +02:00
Benjamin Valentin
ce338dec3d tests/pkg_cryptoauthlib_internal: blacklist atmega256rfr2 boards
The test is right on the edge with these boards, so slight toolchain changes
make it overflow the RAM, causing CI issues.
2020-06-12 13:08:34 +02:00
Kees Bakker
2da9d200c8 tests/xtimer_mutex_lock_timeout: don't assume number of threads at start
When CDC ACM is used as stdio the number of threads-in-use at the start of
the test is not always 2, as it used to be.
2020-06-11 21:20:48 +02:00
Francisco
cbf7f78879
Merge pull request #14255 from kaspar030/tests/lwip_blacklist_blackpill
tests/lwip: add blackpill to BOARD_INSUFFICIENT_MEMORY
2020-06-11 17:10:39 +02:00
Akshai M
6450d9989e gnrc/pktbuf : Set Kconfig defaults and conditions
Set Kconfig defaults for CPU and conditions to avoid
conflict with CFLAGS

Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-06-11 14:47:27 +05:30
Akshai M
5523d119b6 gnrc/pktbuf : Move 'GNRC_PKTBUF_SIZE' to 'CONFIG_' 2020-06-11 14:46:36 +05:30
Francisco
89095d6e0f
Merge pull request #14225 from PeterKietzmann/pr_sha2xx_common
sys/hashes: add sha224 and reuse sha256 code
2020-06-11 09:07:39 +02:00
7a5ab96f69
Merge pull request #14254 from keestux/fix-test-rmutex_cpp
tests/rmutex_cpp: refactor the test to avoid having to know the thread IDs
2020-06-11 08:57:25 +02:00
666313ae35
Merge pull request #14205 from kaspar030/add_trace_module
sys/trace: add trace module
2020-06-11 00:07:10 +02:00
benpicco
f75c971297
Merge pull request #14119 from benpicco/cpu/stm32_usb_bootloader
cpu/stm32: implement reset to bootloader
2020-06-10 23:13:50 +02:00
f80f784b17 tests/lwip: add blackpill to BOARD_INSUFFICIENT_MEMORY 2020-06-10 21:42:16 +02:00
3dea09894d tests/trace: add sys/trace test application 2020-06-10 21:21:34 +02:00
Kees Bakker
6d2b624851 tests/rmutex_cpp: refactor the test to avoid having to know the thread IDs
When CDC ACM is used as stdio the first thread in the test may have a
different ID than #3. The test code will now look at the printed thread
information (id, prio) as they are created. This avoids the need for a
table with ID/prio.
2020-06-10 21:08:45 +02:00
Leandro Lanzieri
58cd126517
Merge pull request #14210 from btcven/2020_06_04-cc26xx_cc13xx_kconfig
boards/cc26xx_cc13xx-based: model features in Kconfig
2020-06-10 11:27:31 +02:00
d62bcc238c
Merge pull request #14230 from keestux/fix-test-rmutex
tests/rmutex: refactor the test to avoid having to know the thread IDs
2020-06-10 11:04:04 +02:00
31e22d9e00
Merge pull request #14229 from keestux/fix-test-mutex-order
tests/mutex_order: refactor the test to avoid knowing the thread IDs
2020-06-10 10:28:15 +02:00
6b14267f3c
Merge pull request #14243 from keestux/fix-test-cpp11-thread
tests/cpp11_thread: use sched_num_threads instead of const 2
2020-06-10 09:51:51 +02:00
PeterKietzmann
454d1fe4cf unittests/tests-hashes: add tests for sha224 2020-06-10 09:40:13 +02:00
PeterKietzmann
e5e3724a45 unittests/tests-hashes: add two FIPS test cases fot sha256 2020-06-10 09:40:03 +02:00
PeterKietzmann
d9c73bef51 unittests/tests-hashes: add tests for sha256 wrapper 2020-06-10 09:39:07 +02:00
Kees Bakker
f19ca87ee7 tests/cpp11_thread: use sched_num_threads instead of const 2
When CDC ACM is used as stdio the first thread in the test may have a
different ID than #3.
2020-06-09 23:09:18 +02:00
Kees Bakker
b9efe4e0c2 tests/rmutex: refactor the test to avoid having to know the thread IDs
When CDC ACM is used as stdio the first thread in the test may have a
different ID than #3. The test code will now look at the printed thread
information (id, prio) as they are created. This avoids the need for a
table with ID/prio.
2020-06-09 23:05:30 +02:00
Kees Bakker
fd01fde531 tests/mutex_order: refactor the test to avoid knowing the thread IDs
When CDC ACM is used as stdio the first thread in the test may have a
different ID than #3. The test code will now look at the printed thread
information (id, prio) as they are created. This avoids the need for a
table with ID/prio.
2020-06-09 22:54:27 +02:00
aba42a847d tests/xtimer_now32_overflow: fix active timers going out of scope 2020-06-09 21:21:45 +02:00
28b558ec2d
Merge pull request #14228 from keestux/fix-test-cond-order
tests/cond_order: refactor the test to avoid knowing the thread IDs
2020-06-09 21:13:03 +02:00
Francisco
d58c29d06f
Merge pull request #14238 from kaspar030/disable_tests/netstats_l2_for_esp32
tests/netstats_l2: disable test run for esp32-wroom-32
2020-06-09 18:15:35 +02:00
85a385e6d4
Merge pull request #14227 from kaspar030/dummy_thread
sys/test_utils/dummy_thread: initial commit
2020-06-09 17:34:50 +02:00
1ed0d659ed
Merge pull request #13320 from bergzand/pr/stdio/semihosting
stdio_semihosting: Initial include of Semihosting-based STDIO
2020-06-09 16:52:44 +02:00
Francisco
6c65fa72d7
Merge pull request #14204 from kaspar030/rename_native_trace
cpu/native: rename trace -> backtrace
2020-06-09 16:37:26 +02:00
Kees Bakker
765c216f6d
tests/cond_order: refactor the test to avoid knowing the thread IDs
When CDC ACM is used as stdio the first thread in the test may have a
different ID than #3. The test code will now look at the printed thread
information (id, prio) as they are created. This avoids the need for a
table with ID/prio.
2020-06-09 16:29:32 +02:00
Jean Pierre Dudey
ea931ef0ff
tests/kconfig_features: add cc26xx_cc13xx-based
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-06-09 07:55:41 -05:00
135b7d0d43 tests/netstats_l2: disable test run for esp32-wroom-32 2020-06-09 13:41:09 +02:00
2be5cd50f6 tests/test_tools: include dummy_thread 2020-06-09 13:25:14 +02:00
11ee5ff2cf
stdio_semihosting: Add shell-based test application 2020-06-09 10:15:49 +02:00
3e39eb851b
Merge pull request #14181 from keestux/fix-test-thread-flood
tests/thread_flood: account for all threads already in use
2020-06-08 17:18:06 +02:00
Kees Bakker
bbd7c435c7 tests/thread_flood: use sched_num_threads to know the first thread ID
Before there were only two: "main" and "idle". But now there can also be
a thread for "usbus". The code will now use sched_num_threads and it
subtracts that number from MAXTHREADS.

This resolves issue #14180
2020-06-08 11:22:04 +02:00
Kees Bakker
de31aadf0d tests/periph_uart_nonblocking: relax time requirement a bit
With SAMD21 + CDC ACM the test reports
    == printed in 2103454/2100000 µs ==
Which failed to match the requirement of <1.0015.

This commit relaxes the requirement to <1.002
2020-06-07 16:48:55 +02:00
Benjamin Valentin
43585804b7 tests/stm32_bootloader: add test for STM32 bootloader mode 2020-06-05 18:41:06 +02:00
benpicco
cb11b2d33f
Merge pull request #14198 from maribu/wemos-zero
boards: Add support for the wemos-zero board
2020-06-05 17:55:43 +02:00
Marian Buschsieweke
8ae3e5c29f
tests/bench_xtimer: Add wemos-zero, serpente to LOW_MEMORY_BOARDS 2020-06-05 17:19:50 +02:00
Ken Bannister
f8dfa52b2d
Merge pull request #14075 from mjurczak/bugfix/nanocoap-token-overflow
nanocoap: bugfix token overflow
2020-06-04 22:01:18 -04:00
Leandro Lanzieri
f708571617
tests/kconfig_features: Add out.config as dependency for features check 2020-06-04 15:31:40 +02:00
9210017a52 tests: rename tests/trace -> tests/backtrace 2020-06-04 14:37:41 +02:00
benpicco
3a1ee4983c
Merge pull request #14010 from benpicco/at86rf215-mr-ofdm
drivers/at86rf215: implement MR-OFDM
2020-06-03 16:39:04 +02:00
Benjamin Valentin
8a63ca5088 tests/driver_at86rf215: update Makefile.ci
With the added features, the driver doesn't fit onto those
ATmega boards anymore.
2020-06-03 15:58:50 +02:00
Kevin "Tristate Tom" Weiss
972d9441ce
Merge pull request #13404 from leandrolanzieri/pr/boards/samr21-xpro/features_kconfig
boards/samr21-xpro: Model features in Kconfig
2020-06-03 09:39:41 +02:00
Leandro Lanzieri
7262b1d4d9
Merge pull request #14126 from akshaim/Kconfig_tcp
gnrc/tcp : Expose configurations to Kconfig
2020-06-03 08:32:26 +02:00
Jose Alamos
6ef44dcb74
tests/Kconfig: add samr21-xpro to whitelist 2020-06-02 17:42:17 +02:00
Jose Alamos
c39f94ba88
tests/kconfig: add features check 2020-06-02 17:42:17 +02:00
Akshai M
611231cc3c tests/gnrc_tcp/ : Set 'CONFIG_' if not Kconfig
Set CONFIG_GNRC_TCP_MSL and
CONFIG_GNRC_TCP_CONNECTION_TIMEOUT_DURATION if not set via Kconfig
2020-06-02 15:46:44 +05:30
Akshai M
0b3e0de03e gnrc/tcp : Move GNRC_TCP_MSL to 'CONFIG_' 2020-06-02 15:46:44 +05:30
Akshai M
01dd8e4fa8 gnrc/tcp : Move GNRC_TCP_CONNECTION_TIMEOUT_DURATION to 'CONFIG_' 2020-06-02 15:46:44 +05:30
8ed6f18ee8
tests/periph_rtt: fix invalid RTT_FREQUENCY set for non stm32f1 2020-05-30 19:07:50 +02:00
Benjamin Valentin
96a3e91c3d tests/periph_timer_periodic: add test for periodic timer 2020-05-28 17:37:42 +02:00
Martine Lenders
a38428b8f2
Merge pull request #13701 from miri64/lwip_sock/enh/recv_buf
lwip_sock: provide implementation for `sock_*_recv_buf()`
2020-05-26 21:33:09 +02:00
b44b8201df
Merge pull request #14134 from benpicco/drivers/edbg_eui
drivers/edbg_eui: add driver to get MAC address from Atmel EDBG
2020-05-26 11:36:18 +02:00
Benjamin Valentin
616ebf9cfb drivers/edbg_eui: add driver to get MAC address from Atmel EDBG
The EDBG debugger on the `samr21-xpro` contains a unique 64 bit address
intended to be used as a MAC address for the internal radio.

This adds a driver to read that EUI-64 from the debugger, it should match
with the MAC address printed on the label on the board.
2020-05-26 10:44:11 +02:00
Maciej Jurczak
edf016a6cb nanocoap: Added token length validation.
Implemented a check in coap_parse() to verify if TKL value is within valid range as specified by RFC7252. The token length must be within 0-8 range, any other value should be considered as invalid and the packet should produce message format error.
A test case was added to tests-nanocoap.c to verify correct behavior in case of TKL in range and out of range.

Update sys/net/application_layer/nanocoap/nanocoap.c

Prefixed debug message with module name and abbreviations expanded.

Co-authored-by: Martine Lenders <mail@martine-lenders.eu>

Update sys/net/application_layer/nanocoap/nanocoap.c

Prefixed debug message with module name and abbreviations expanded.

Co-authored-by: Martine Lenders <mail@martine-lenders.eu>
2020-05-25 22:44:50 +02:00
00bca8c57d
tests/buttons: remove unused xtimer dependency 2020-05-25 18:14:41 +02:00
Martine Lenders
0ba2df9b4e
Merge pull request #7271 from haukepetersen/add_phydat_tojson
sys/phydat: added phydat to JSON converter
2020-05-22 09:08:18 +02:00
ba20272fb3
Merge pull request #14108 from benpicco/tests/periph_spi-enhance
tests/periph_spi: add benchmark for acquire / release
2020-05-20 20:18:40 +02:00
fabian18
074d53f9fe tests/mtd_at24cxxx: add test for at24cxxx MTD wrapper 2020-05-20 19:45:37 +02:00
Benjamin Valentin
a57bd08a11 tests/periph_spi: add benchmark for acquire / release 2020-05-20 19:34:07 +02:00
Leandro Lanzieri
2a8d6920e6
Merge pull request #13989 from akshaim/Kconfig_tmp00x_1
drivers/tmp00x : Expose Configurations to Kconfig
2020-05-20 17:48:18 +02:00
Benjamin Valentin
1178c82a98 tests/periph_spi: introduce _xtimer_diff_usec()
Don't repeat yourself.
2020-05-20 17:48:15 +02:00
Akshai M
94d6b898fc drivers/tmp00x : Add CONFIG_
Add CONFIG_ prefix to compile configurations
2020-05-20 19:09:48 +05:30
Hauke Petersen
3c07a3f751 tests: added unittests for phydat 2020-05-20 15:29:24 +02:00
benpicco
70543bba1d
Merge pull request #13275 from miri64/gnrc_ipv6_ext_opt/feat/initial
gnrc_ipv6_ext_opt: initial import
2020-05-20 14:35:58 +02:00
Martine S. Lenders
f6bd0705a1
tests: provide tests for gnrc_ipv6_ext_opt 2020-05-20 12:34:04 +02:00
ae88f1e079
Merge pull request #14102 from MrKevinWeiss/pr/test/spi/defaultcs
tests/periph_spi: Expose default SPI CS pins
2020-05-20 12:09:06 +02:00
benpicco
e7bf1ef706
Merge pull request #13654 from benpicco/serpente-r2
boards/serpente: add serpente board
2020-05-20 11:31:40 +02:00
MrKevinWeiss
867df82ced tests/periph_spi: Expose default SPI CS pins
Expose the option to use default cs pins defined as DEFAULT_SPI_CS_PORT and DEFAULT_SPI_CS_PIN.
This is used if a wiring environment is already defined.
CFLAGS can be used to define the CS pin from the environment provided allowing easier automation of tests.
2020-05-20 10:44:57 +02:00
Benjamin Valentin
cddb929d0c boards/serpente: add serpente board
See https://serpente.solder.party
2020-05-20 10:39:38 +02:00
benpicco
f3dddd6127
Merge pull request #14068 from miri64/sock_util/enh/netif-str2ep
sock_util: add interface descriptor parsing to str2ep
2020-05-19 23:59:32 +02:00
benpicco
fbad1dff01
Merge pull request #14087 from bergzand/pr/tests/periph_spi/add_thread_time
tests/periph_spi: Add thread runtime stats
2020-05-19 16:37:54 +02:00
Martine S. Lenders
991c2e9ec4
tests/unittests: amend sock_util tests for interface parsing 2020-05-19 14:57:41 +02:00
b3cb03ae90
tests/periph_spi: Fix column alignment 2020-05-19 14:21:20 +02:00
7c44208e64
tests/periph_spi: Convert printf specifier to PRIu32 2020-05-19 14:20:42 +02:00
788d186725
tests/periph_spi: Add thread runtime stats
This commit extends the periph_spi benchmark with timing statistics for
the thread runtime, counting only the time the thread initiating the SPI
request is busy with the SPI transfer. This is useful to measure timings
on SPI transfers when DMA and other async mechanisms are used to
transfer the bytes
2020-05-19 14:17:46 +02:00
Cenk Gündoğan
8f4583cb5e tests: dns: use correct macro names 2020-05-19 11:33:28 +02:00
Hendrik van Essen
dd2ad603e8 tests/shell: test quoting and escaping
Check that single and double quotes work, along with backslash escaping
and that malformed strings are rejected.

Right now the test is failing. The next commit will replace the tokenizer
with one that works correctly.

Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-05-18 14:02:58 +02:00
Marian Buschsieweke
0b2ee71285
Merge pull request #14094 from benpicco/tests/periph_pwm-atmega
tests/periph_pwm: limit OSC_STEPS to 256 so the test works on all platforms
2020-05-16 21:04:44 +02:00
Benjamin Valentin
6ba4225eed tests/periph_pwm: limit OSC_STEPS to 256 to work on all platforms
The ATmega PWM implementation only supports a maximum resolution of 256.
Thus when running `osci` with `OSC_STEPS` = 1000 an assertion will fail and
the test crashes, even though the PWM peripheral works perfectly fine.

Limit OSC_STEPS to 256 so it works on all platforms.
The LED flashing doesn't look any more coarse.
2020-05-16 18:57:06 +02:00
Marian Buschsieweke
70f24edd03
cpu/atmega32u4: Clean up
- Drop duplicated `cpu.c` and `cpu_conf.h`: Those are already provided by
  `cpu/atmega_common`.
- The higher values for default stack size of `cpu_conf.h` in
  `cpu/atmega_common` results in three tests no longer fitting the available RAM
  ==> Updated the Makefile.ci to skip linking of those tests for the Arduino
      Leonardo
2020-05-15 11:23:05 +02:00
Francisco
1f9d299492
Merge pull request #13196 from HendrikVE/shell-readline-refactor
sys/shell: refactor readline function
2020-05-14 15:32:45 +02:00
Martine Lenders
b031337e29
Merge pull request #14066 from jue89/fix/fmt_hex_bytes_null
sys/fmt: add fmt_hex_bytes size probing
2020-05-12 18:29:52 +02:00
Juergen Fitschen
aeb1230266 sys/fmt: add fmt_hex_bytes size probing 2020-05-12 17:39:25 +02:00
673ba21b9e
Merge pull request #14045 from benpicco/mtd_mapper_sectors
mtd_mapper: count offset in sectors
2020-05-12 13:47:12 +02:00
Benjamin Valentin
81b07895af mtd_mapper: count offset in sectors
The offset of MTD regions must be aligned with erase sectors.
So in order not to waste address space, avoid misconfiguration and
eventually support storage media > 4 GiB, give the offset in sectors
instead of bytes.
2020-05-12 12:02:05 +02:00
Jannes
f0e994532a tests/conn_can: Add can tranceiver
- Add tja1042 pin configuration to tests/can_trx
- Add ncv7356 pin configuration to tests/can_trx
- Add can transceivers to tests/conn_can
- Add tja1042 pin configuration to tests/conn_can
- Add ncv7356 pin configuration to tests/conn_can
- rename print functions
- Add to CFLAGS
2020-05-11 14:10:42 +02:00
Leandro Lanzieri
2d1d13d452
Merge pull request #14028 from miri64/gnrc_pktdump/fix/opt-deps
gnrc_pktdump: fix dependencies
2020-05-08 08:53:31 +02:00
Ken Bannister
10a479c1c5
Merge pull request #13935 from cgundogan/pr/nanocoap/proxy_uri_parsing
nanocoap: add coap_get_proxy_uri()
2020-05-07 06:14:19 -04:00
fabian18
d52c7167bc Revert "tests/driver_at25xxx: adapt to change in driver API"
This reverts commit 6ca7ac949a.
2020-05-06 20:24:27 +02:00
fabian18
a3a1c160ee mtd: Change API to return 0 on success
Returning the number of bytes written/read could return a negative integer
because a uint32_t is expected for the length in read()/write() operations.
2020-05-06 20:24:27 +02:00
Vincent Dupont
49358e2763 unittests/tests-mtd: add a test to check read spanning pages 2020-05-06 16:36:29 +02:00
benpicco
8e11acc9f8
Merge pull request #13877 from ML-PA-Consulting-GmbH/feat/20200409__add_mtd_spi_eeprom
drivers/mtd_spi_eeprom: add MTD wrapper for AT25XXX EEPROMs
2020-05-06 15:56:34 +02:00
Martine S. Lenders
8ff77f6444
tests/gnrc_netif: fix test script for empty payload
With the rework of `gnrc_pktdump` it does not try to print packets with
empty payload anymore. This needs to be reflected in the test script.
2020-05-06 10:46:59 +02:00
8ffd34ddd0
Merge pull request #12776 from maribu/test_event_wait_timeout
tests/event_wait_timeout: Fix for 8bit platforms
2020-05-05 21:33:06 +02:00
Francisco
cea0d1c532
Merge pull request #13421 from benpicco/cpu/sam0_common/i2c-deinit
drivers/periph/i2c: add periph_i2c_reconfigure feature & implementation for sam0
2020-05-05 19:09:47 +02:00
343dc3f90f
Merge pull request #13909 from fjmolinas/pr_stm32_rtt
cpu/stm32_common: make RTT_FREQUENCY configurable
2020-05-05 16:45:39 +02:00
Benjamin Valentin
896f9db71f tests/periph_i2c: add tests for periph_i2c_reconfigure features
Add a test to re-configure the I2C pins to GPIO functionality and
use them as output.

A small delay is added to allow for observing the change in power
draw.
2020-05-05 16:12:19 +02:00
Johannes Koster
177a653bd1 drivers/at25xxx: add MTD wrapper for AT25XXX EEPROMs
drivers/at25xxx: add mtd_wrapper as submodule

tests: add mtd_at25xxx test module for mtd wrapper

drivers/Makefile.dep: add at25xxx dep for mtd_at25xxx module
2020-05-05 13:37:51 +01:00
Francisco Molina
c95d02dfd5
tests/periph_rtt: lower RTT_FREQUENCY for stm32 boards
All stm32% but stm32f1 RTT are based on a 16 bit LPTIM, if using
the default 32768KHz configuration TICKS_TO_WAIT will overflow
2020-05-05 14:36:32 +02:00
d3e18c0ec4
Merge pull request #13025 from JulianHolzwarth/pr/xtimer_test_overflow
tests: New test for xtimer_now with interrupts disabled
2020-05-05 12:16:38 +02:00
JulianHolzwarth
fbfe7a4d7b tests/xtimer_rmutex_lock_timeout: new test
this implements a new test for sys/xtimer/xtimer.c: xtimer_rmutex_lock_timeout
The test is similar to tests/xtimer_mutex_lock_timeout
2020-05-04 17:56:08 +02:00
Marian Buschsieweke
51c19d5b6b
tests: Add test for irq_disable() / irq_restore() 2020-05-04 12:52:39 +02:00
JulianHolzwarth
921d9cf633 tests/xtimer_now_irq/: New test for xtimer_now() with irq_disable()
This test checks, if the timer returns the correct time (xtimer_now_usec() is called), when interrupts are disabled. Specifically tested is if the time is correct after a low-level timer overflow.
2020-05-01 15:37:51 +02:00
benpicco
99e8b04921
Merge pull request #13812 from gschorcht/cpu/esp32/fix_newlib_nano
cpu/esp32: use module newlib_nano
2020-05-01 14:40:02 +02:00
benpicco
2284c48175
Merge pull request #13757 from benpicco/pm_unblock_rtc
tests/periph_pm: introduce set_rtc
2020-05-01 14:14:53 +02:00
benpicco
c754e0ab3c
Merge pull request #13739 from Ciusss89/_dev
test: conn_can: add remote request test
2020-05-01 14:11:41 +02:00
Francisco
919249f361
Merge pull request #13862 from maribu/extra_boards
Makefile*: Allow multiple external board dirs
2020-04-29 20:12:06 +02:00
Marian Buschsieweke
93f8f8cd84
tests/external_board_native: Extended readme
Added a note to explain why the deprecated variable BOARDSDIR is still used.
2020-04-29 18:32:39 +02:00
Marian Buschsieweke
b0964675f1
tests,examples: Use EXTERNAL_BOARD_DIRS 2020-04-29 18:32:39 +02:00
Marian Buschsieweke
cf379660e9
tests/external_board_dirs: Test app for EXTERNAL_BOARD_DIRS 2020-04-29 18:32:39 +02:00
Benjamin Valentin
bb3995b462 tests/periph_pm: introduce set_rtc
Similar to unblock_rtc, but uses `pm_set()` instead of `pm_unblock()`.
2020-04-29 18:06:36 +02:00
Benjamin Valentin
ffdb115ffe tests/periph_pm: drop use of mktime()
The RTC implementation are expected to normalize the input struct.
2020-04-29 18:04:27 +02:00
9a4537eef6
Merge pull request #13976 from maribu/pm_get_blocker
sys/pm: Add pm_get_blocker()
2020-04-29 12:37:15 +02:00
2af3ea586a
Merge pull request #13947 from benpicco/riot-bus_multibus
core/msg: add message bus
2020-04-29 12:24:12 +02:00
Marian Buschsieweke
f6873dbac3
sys/pm: Add pm_get_blocker()
Provide access to pm_blocker via a well-defined API rather than hacks.
2020-04-29 11:21:03 +02:00
b04d354640
tests/periph_eeprom: use native as default board 2020-04-29 08:56:34 +02:00
decd73129c
tests/periph_eeprom: improve automatic test script
Reboot the application and verify data previously written on EEPROM by the test command are still there
2020-04-29 08:55:10 +02:00
Leandro Lanzieri
b543fbd69d
Merge pull request #13879 from aabadie/pr/sys/touch_dev
sys/touch_dev: add generic API for touch device
2020-04-28 18:58:25 +02:00
f22529ec71
Merge pull request #11731 from benemorius/tests-periph_pm-ux
tests/periph_pm: make usage more intuitive and move shell commands to sys/
2020-04-28 18:52:09 +02:00
804cc8cbd7
tests: add new boards in low memory blacklists 2020-04-28 18:35:17 +02:00
benpicco
96c638f2d1
Merge pull request #13949 from benpicco/MAKEFILEDIR-doc
Makefile.include: update the documentation of $(MAKEFILEDIR)
2020-04-28 18:30:44 +02:00
6778e34032
tests/touch_dev: add test application 2020-04-28 18:18:01 +02:00
Thomas Stilwell
325ab426d4
sys/shell/commands: pm: add set mode block mode unblock mode 2020-04-28 16:56:34 +02:00
Thomas Stilwell
aa97e7b49a
tests/periph_pm: be more verbose about what pm_set() is doing 2020-04-28 16:51:24 +02:00
Thomas Stilwell
90579e81c9
tests/periph_pm: print current PM blockers on startup 2020-04-28 16:51:24 +02:00
Thomas Stilwell
100390cdca
tests/periph_pm: print block/unblock error instead of assertion failure 2020-04-28 16:51:23 +02:00
Benjamin Valentin
d5dce87e1b Makefile.include: rename MAKEFILEDIR to LAST_MAKEFILEDIR
Rename the variable to make it clearer that it refers to the last Makefile
included.
Usually this is the current file, but when another Makefile is included this
changes.
2020-04-28 15:45:27 +02:00
Benjamin Valentin
950c18db42 tests/thread_msg_bus: add test application for message bus 2020-04-28 13:35:05 +02:00
Martine S. Lenders
53b5f37295
tests/lwip_sock_{ip,udp}: extend tests for new function 2020-04-28 09:46:07 +02:00
Leandro Lanzieri
de789169b2
tests/gnrc_dhcpv6_client: Increase timeout 2020-04-27 11:31:48 +02:00
Leandro Lanzieri
153f04f534
tests/gnrc_dhcpv6_client: Fix TERMPROG 2020-04-27 11:27:47 +02:00
Benjamin Valentin
aac593a7c9 tests/periph_uart: fix for !stdio_uart
Only include `stdio_uart.h` if stdio over UART is used.
This makes it possible to use the default stdio UART0
for the test.

This is needed if e.g. the default stdio of a board is USB CDC ACM.
2020-04-26 20:31:28 +02:00
Giuseppe Tipaldi
73ae19e043 test: conn_can: add remote request test example 2020-04-25 10:04:19 +02:00
Giuseppe Tipaldi
1acb24b13e test: conn_can: add remote request test 2020-04-25 10:04:17 +02:00
Cenk Gündoğan
0121ff13b8 tests-nanocoap: test adding and retrieving the proxy-uri option 2020-04-23 22:41:46 +02:00
Cenk Gündoğan
c0f4a2c085 tests-nanocoap: add missing full stop in doc 2020-04-23 22:41:12 +02:00
Marian Buschsieweke
9f75501322
tests/ztimer_msg: Use %lu to print times 2020-04-23 21:18:48 +02:00
Marian Buschsieweke
1b44066dbd
tests/xtimer_msg: Use %lu to print times 2020-04-23 21:16:57 +02:00
Marian Buschsieweke
60aabbec25
tests/event_wait_timeout: Use C11 atomics for IPC
The test currently uses static globals for communication without any protection.
This could lead optimizing C compilers to deduce that access to those are not
needed (e.g. with LTO enabled). Using C11 atomics is the easiest way to tell
the compiler that those accesses are used for communication between two
different threads of execution (here: between the ISR and the main thread).
2020-04-23 21:16:03 +02:00
Cenk Gündoğan
ecc4932d22 unittests/nanocoap: test for adding an unterminated string path 2020-04-22 12:50:50 +02:00
Leandro Lanzieri
46507ff247
Merge pull request #13894 from kb2ma/gcoap/ping
net/gcoap: add CoAP ping request
2020-04-21 12:23:54 +02:00
5293e5400c
Merge pull request #13210 from kaspar030/add_xtimer_left
sys/xtimer: remove uses of xtimer internal struct members
2020-04-21 12:15:41 +02:00
1492dc0655 tests/gnrc_ipv6_nib: memory-blacklist msb-430h 2020-04-21 11:26:57 +02:00
9800b7bf2c tests/bench_timers: remove explicit zeroing of xtimer members 2020-04-21 11:26:57 +02:00
c1f93647a9 tests/rng: remove explicit zeroing of xtimer members 2020-04-21 11:26:56 +02:00
Francisco
3d8f71768c
Merge pull request #13846 from benpicco/Makefile-THISDIR
Makefile.include: add $(MAKEFILEDIR) helper and use it
2020-04-21 11:00:52 +02:00
40cb065a45
Merge pull request #13839 from leandrolanzieri/pr/kconfig_migrate/sys/usbus_ecm
usbus/cdc/ecm: Expose configurations to Kconfig
2020-04-21 10:12:30 +02:00
Ken Bannister
6eae4ded84 net/gcoap: create CoAP ping request 2020-04-17 08:15:20 -04:00
Ken Bannister
2d3eb1a343 net/nanocoap: validate empty message length 2020-04-17 08:15:20 -04:00
Benjamin Valentin
6ca7ac949a tests/driver_at25xxx: adapt to change in driver API 2020-04-17 11:58:45 +02:00
Martine Lenders
94e08b9307
Merge pull request #13882 from miri64/tests/fix/emcute-samr21-xpro
tests/emcute: add small inter-packet gap between server replies
2020-04-16 23:34:09 +02:00
Martine S. Lenders
05b5db1a66
tests/emcute: add small inter-packet gap between server replies
On `samr21-xpro` not all UDP packets were received, leading to the
testing automaton to get into an invalid state and failing. This small
delay between `sendto()` fixes that issue.
2020-04-16 22:19:51 +02:00
Francisco
85cbc049ef
Merge pull request #13853 from kaspar030/simplify_xtimer_now32_overflow_test
tests/xtimer_now32_overflow: simplify
2020-04-16 18:03:51 +02:00
4ac5e5bd63 tests/xtimer_now32_overflow: simplify 2020-04-16 15:28:07 +02:00
Benjamin Valentin
bba2231d41 tests: use $(MAKEFILEDIR) 2020-04-15 11:51:15 +02:00
Hendrik van Essen
013af64a80 tests/shell: add test case for line editing
Test erasing characters using backspace. The test is not really testing
a lot right now, because the host is still line buffering.

Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-04-14 15:38:56 +02:00
Leandro Lanzieri
b4655f6c91
Merge pull request #13848 from fjmolinas/pr_ccm_no_plaintext
sys/crypto/modes/ccm: handle input_len = 0
2020-04-14 10:49:54 +02:00
Martine S. Lenders
4aa4a17071
tests/xtimer: add regression test for long_start_time update bug
Co-Authored-By: Julian Holzwarth <julian.holzwarth@fu-berlin.de>
2020-04-10 12:42:24 +02:00
Francisco Molina
7a39e2e875
tests/sys_crypto/tests-crypto-modes-ccm: add test for input_len=0 2020-04-10 10:41:01 +02:00
Leandro Lanzieri
4433b9bc7a
tests/usbus_cdc_ecm: Check if USB parameters are set via Kconfig
This also avoids running Kconfig by default, given that there is a
Kconfig file in the application folder.
2020-04-08 18:15:09 +02:00
Leandro Lanzieri
037f746120
Merge pull request #13836 from miri64/tests/enh/gnrc_rpl_srh-asyncsniffer
gnrc_rpl_srh: use AsyncSniffer for sniffing
2020-04-08 15:56:47 +02:00
Martine S. Lenders
bb947f750a gnrc_rpl_srh: use AsyncSniffer for sniffing
The sniffer in `tests/gnrc_rpl_srh` always had stability issues, since
it uses some badly synchronized threading of mine. Since v2.4.3 scapy
has its own [asynchronous sniffer] (which is already used in
`tests/gnrc_dhcpv6_client_6lbr`), so I ported my sniffer implementation
to use that instead.

[asynchronous sniffer]: https://scapy.readthedocs.io/en/latest/usage.html#asynchronous-sniffing
2020-04-08 15:36:34 +02:00
Martine Lenders
6ef0bf9410
Merge pull request #13835 from miri64/tests/fix/gnrc_netif_single
tests: fix for `GNRC_NETIF_SINGLE`
2020-04-08 12:03:55 +02:00
Martine S. Lenders
9bf0a2253a
tests/gnrc_sock_dns: set GNRC_NETIF_SINGLE 2020-04-08 11:11:41 +02:00
14706d7423
Merge pull request #13243 from leandrolanzieri/pr/kconfig_migrate/net/nanocoap
net/nanocoap: Expose configurations to Kconfig
2020-04-08 10:51:54 +02:00
Leandro Lanzieri
1f24698a2a
Merge pull request #13792 from benpicco/pkg/nanopb-fixes
pkg/nanopb: fix for proto files with includes
2020-04-08 10:37:20 +02:00
04f890fa8b
tests: handle cases for bootloader_nrfutil blacklist 2020-04-08 09:35:08 +02:00
Leandro Lanzieri
4052c01e85
net/nanocoap: Move NANOCOAP_URI_MAX to 'CONFIG_' namespace 2020-04-07 17:00:53 +02:00
Leandro Lanzieri
c84576ef6e
net/nanocoap: Move NANOCOAP_NOPTS_MAX to 'CONFIG_' namespace 2020-04-07 17:00:52 +02:00
067b324645
Merge pull request #11945 from benpicco/EEPROM-m95m01
drivers: add driver for AT25xxx family of EEPROMs
2020-04-07 13:19:21 +02:00
Ken Bannister
b32fcd28d1
Merge pull request #13815 from kb2ma/nanocoap/add_canonical_uri_query
net/gcoap: add canonical uri query function names
2020-04-07 06:32:13 -04:00
Benjamin Valentin
5ef52c7dc2 tests: add test for at25xxx EEPROM driver 2020-04-07 12:31:46 +02:00
Ken Bannister
7369fac944 tests/nanocoap: use canonical function name to add Uri-Query option 2020-04-06 06:19:44 -04:00
Cenk Gündoğan
abd399b934
Merge pull request #13804 from chrysn-pull-requests/uri-test-isabsolute
uri_parser: Fix and test non-relative recognition
2020-04-05 13:42:11 +02:00
Martine Lenders
6e27a8e4a7
Merge pull request #13734 from miri64/tests/enh/rdnss-option
tests: add test to test RDNSS option handling
2020-04-05 01:43:52 +02:00
Martine Lenders
94edc5a4e6
tests: add test to test RDNSS option handling 2020-04-05 01:16:40 +02:00
benpicco
e626c520d3
Merge pull request #13814 from gschorcht/cpu/esp32/temp_newlib_fix
tests/libc_newlib: blacklist esp32 boards temporarily
2020-04-04 18:23:40 +02:00
Gunar Schorcht
ec2fed4ae3 Revert "tests/libc_newlib: blacklist esp32 boards temporarily"
This reverts commit c7dd22efde.
2020-04-04 13:37:56 +02:00
Gunar Schorcht
c7dd22efde tests/libc_newlib: blacklist esp32 boards temporarily
ESP32 boards must be blacklisted for `tests/libc_newlib` to avoid CI compilation errors until the toolchain is updated on all nodes.
2020-04-04 13:33:00 +02:00
Martine Lenders
81f3fddc1f
tests/gnrc_tcp: set GNRC_NETIF_SINGLE 2020-04-03 23:42:52 +02:00
Martine Lenders
e62066813d
tests/emcute: set GNRC_NETIF_SINGLE 2020-04-03 23:32:47 +02:00
Francois Berder
d45196e28d tests: buttons: Fix build failure if BTN0_PIN is not declared
On some boards, button 0 does not exist so BTN0_PIN is not defined, but
these boards may define other buttons.

Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2020-04-03 18:48:13 +01:00
Martine Lenders
942c63eb39
Merge pull request #13665 from leandrolanzieri/pr/dist/testrunner_check_unittests_fix_regex
dist/testrunner: Capture number of unittests that passed
2020-04-03 16:53:55 +02:00
chrysn
2ec0fee1fa uri_parser: Adjust test expectations on relative references with colon
This fixes the contested case, and adds the example of RFC3986 Section
4.2[1] to the should be relative cases.

[1]: https://tools.ietf.org/html/rfc3986#section-4.2
2020-04-03 15:21:33 +02:00
chrysn
3d6d27374c uri_parser: Add test for absolute function
One value in the output is possibly wrong, was left in the passing state
as the rest of the expected state reflects the same misconception, and
commented thusly.
2020-04-03 14:54:38 +02:00
Leandro Lanzieri
8ce1bcd4d0
tests: Use returned value of 'check_unittests' 2020-04-03 14:52:48 +02:00
Martine Lenders
d00bde7750
Merge pull request #13789 from cgundogan/pr/uri_parser/remove_check_for_zero
sys/uri_parser: check for uri_end instead of 0
2020-04-03 13:13:18 +02:00
Benjamin Valentin
7fd329b3a1 pkg/nanopb: fix for proto files with includes
Proto files can include other proto files.
E.g. nanopb comes with a `nanopb.proto` include that contains some
nanopb-specific extensions.

This patch makes it possible to include this file as well as specifying
additional proto include folders.

I added the include to `simple.proto` so it gets exercised by the test.
2020-04-02 17:21:25 +02:00
Cenk Gündoğan
1bfc1fbcb3 uri_parser: unittests: add validity check for unterminated string 2020-04-02 15:11:34 +02:00
Leandro Lanzieri
c74544c9ec
Merge pull request #13349 from maribu/dependency-or
build system: Restructure dependency resolution
2020-04-02 10:40:44 +02:00
Marian Buschsieweke
af21f15b02
makefiles: Minor clean ups
- Add FEATURES_REQUIRED_ANY to dependency-debug:
  Now `make dependency-debug` by default also stores the contents of
  `FEATURES_REQUIRED_ANY`.
- makefiles/features_check.inc.mk: Break long lines
- {tests/minimal,tests/unittests,bootloaders/riotboot}:
  Disable auto_init_% in addition to auto_init.

This works around weird behavior due to the USEMODULE being recursively expended
in the first iteration of dependency resolution: Modules added to DEFAULT_MODULE
get automatically added to USEMODULE during the first run, but not for
subsequent. This should be iron out later on.
2020-04-02 09:56:39 +02:00
Martine Lenders
76acde0984
Merge pull request #13779 from miri64/sock/enh/sock_buf_recv-iterate-chunks
sock: amend API to iterate over stack-internal buffer chunks
2020-04-01 16:59:03 +02:00
Martine S. Lenders
e4c43200ba
tests/gnrc_sock_{ip,udp}: adapt tests for sock_*_recv_buf API change 2020-04-01 15:50:51 +02:00
benpicco
660b1a9b5f
Merge pull request #10083 from gschorcht/drivers_hmc5883l
drivers: add driver for Honeywell HMC5883L magnetometer
2020-04-01 14:49:34 +02:00
Gunar Schorcht
e9c0f76934 tests: add hmc5883l driver test 2020-04-01 13:37:22 +02:00
Benjamin Valentin
5b74024bfe tests: add arduino-nano to Makefile.ci
Somehow this board is sometimes skipped by Murdock.
2020-04-01 11:05:37 +02:00
Marian Buschsieweke
007ac492ff
drivers/ws281x: Use FEATURES_REQUIRED_ANY 2020-04-01 09:12:50 +02:00
Martine Lenders
004126a5e9
tests/unittests/uri_parse: generate more sophisticated error message 2020-04-01 08:42:25 +02:00
Martine Lenders
413153704a
tests/unittests/uri_parse: use less confusing assert message
Also use `strncmp()` instead of `memcmp()`
2020-04-01 00:56:08 +02:00
Martine Lenders
21399ccade
tests/unittests/uri_parse: add array index as parameter to VEC_CHECK 2020-04-01 00:55:20 +02:00
Martine Lenders
d9b9426a86
Merge pull request #13758 from cgundogan/uri_parser
sys/uri_parser: minimal and non-destructive URI parsing
2020-04-01 00:40:27 +02:00
Cenk Gündoğan
ed30450fcf tests/unittests: add tests for uri_parser 2020-03-31 23:54:40 +02:00
Martine Lenders
32d4b7eea5
Merge pull request #13755 from benpicco/base64-urlsafe
sys/base64: Implement Base 64 Encoding with URL and Filename Safe Alphabet
2020-03-31 20:15:23 +02:00
Benjamin Valentin
64d4713301 tests/unittests/base64: add test case for urlsafe_encode 2020-03-31 19:01:05 +02:00
Leandro Lanzieri
64dde8f317
gnrc/nib: Move GNRC_IPV6_NIB_ABR_NUMOF to 'CONFIG_' namespace 2020-03-31 18:07:13 +02:00
Leandro Lanzieri
a77d0dd9c5
gnrc/nib: Move GNRC_IPV6_NIB_OFFL_NUMOF to 'CONFIG_' namespace 2020-03-31 18:07:13 +02:00
Leandro Lanzieri
f6ee712e98
gnrc/nib: Move GNRC_IPV6_NIB_DEFAULT_ROUTER_NUMOF to 'CONFIG_' namespace 2020-03-31 18:07:12 +02:00
Leandro Lanzieri
07771de08f
gnrc/nib: Move GNRC_IPV6_NIB_NUMOF to 'CONFIG_' namespace 2020-03-31 18:07:11 +02:00
Leandro Lanzieri
1f20ffc150
gnrc/nib: Move GNRC_IPV6_NIB_CONF_NO_RTR_SOL to 'CONFIG_' namespace
Also evaluate using IS_ACTIVE macro.
2020-03-31 18:07:10 +02:00
Leandro Lanzieri
53a522d642
gnrc/nib: Move GNRC_IPV6_NIB_CONF_MULTIHOP_P6C to 'CONFIG_' namespace
Also evaluate using IS_ACTIVE macro.
2020-03-31 18:07:10 +02:00
Leandro Lanzieri
3ec296400d
gnrc/nib: Move GNRC_IPV6_NIB_CONF_DC to 'CONFIG_' namespace
Also evaluate using IS_ACTIVE macro.
2020-03-31 18:07:09 +02:00
Leandro Lanzieri
e52b93cef0
gnrc/nib: Move GNRC_IPV6_NIB_CONF_ARSM to 'CONFIG_' namespace
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:07 +02:00
Leandro Lanzieri
ce931f179c
gnrc/nib: Move GNRC_IPV6_NIB_CONF_SLAAC to 'CONFIG_' namespace
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:05 +02:00
Leandro Lanzieri
49ec28867c
gnrc/nib: Move GNRC_IPV6_NIB_CONF_ROUTER to 'CONFIG_' namespace
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:05 +02:00
Leandro Lanzieri
40c78f1c75
gnrc/nib: Move GNRC_IPV6_NIB_CONF_6LBR to 'CONFIG_' namespace
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:03 +02:00
benpicco
e7c1605119
Merge pull request #13691 from benpicco/tests/driver_netdev_common
tests/driver_netdev_common: add compile-test for network drivers
2020-03-31 14:50:28 +02:00
Hendrik van Essen
e38e3c5db9
tests/driver_pca9685: add atmega32u4 boards to Makefile.ci
fixed shell is too big for atmega32u4 based boards
2020-03-30 12:32:57 +02:00
Hendrik van Essen
a9b21ed911
tests/shell: remove redundant parentheses 2020-03-30 12:26:23 +02:00
Hendrik van Essen
68a35f53de
tests/shell: add test case for exceeding lines
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:23 +02:00
Hendrik van Essen
8a8416a6f6
tests/shell: fix test case for line cancelling
The test for the line cancellation (ctrl-c) functionality was unable to
detect error because of the way pexpect matches output.

While working on the long line shell bug, a regression was about to be
introduced because of this. This commit fixes the test by directly reading from
the child process and expects an exact response.

Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:22 +02:00
Hendrik van Essen
c1e3e613a5
tests/shell: check for shell prompt
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:22 +02:00
Hendrik van Essen
32d7c9b6b8
tests/shell: check for startup message
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:21 +02:00
Hendrik van Essen
393eadcfb9
tests/shell: avoid sending an extra empty line on native
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:21 +02:00
Hendrik van Essen
c8daf596c9
tests/shell: add test case for shell's buffer size
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-03-30 12:26:21 +02:00
c526b11195 tests: add pkg_libbase58 test 2020-03-29 23:18:34 +02:00
Benjamin Valentin
3ec0acde8a tests/driver_w5100: add compile-test for w5100 2020-03-28 19:23:19 +01:00
Benjamin Valentin
732cd51a52 tests/driver_xbee: use common netdev test 2020-03-28 18:02:09 +01:00
Benjamin Valentin
f71226c016 tests/driver_dose: add compile-test for DOSE 2020-03-28 18:02:09 +01:00
Benjamin Valentin
e02dffe5f8 tests/driver_mrf24j40: add compile-test for mrf24j40 2020-03-28 18:02:09 +01:00
Benjamin Valentin
b775475d1b tests/driver_netdev_common: add compile-test for netif drivers 2020-03-28 18:02:09 +01:00
benpicco
8024380f7b
Merge pull request #13700 from miri64/gnrc_sock/enh/recv_buf
gnrc_sock: provide implementation for `sock_*_recv_buf()`
2020-03-27 16:34:57 +01:00
benpicco
b535c66ba1
Merge pull request #13729 from fjmolinas/pr_tests_usbus
test/usbus: disable auto_init_usbus
2020-03-26 22:56:33 +01:00
Francisco Molina
c2d5f6e8d9
test/usbus: disable auto_init_usbus 2020-03-26 15:56:21 +01:00
Martine Lenders
061eb88c05
Merge pull request #12994 from jia200x/pr/gnrc_netif_desc_alloc
gnrc_netif: implementation of dynamic GNRC_NETIF_NUMOF approach
2020-03-26 14:30:44 +01:00
Jose Alamos
124b7ae406 tests/gnrc_ipv6_nib_6ln: blacklist boards with insufficient memory 2020-03-26 14:19:03 +01:00
Jose Alamos
3b1c3426cb tests/gnrc_ipv6_nib: blacklist boards with insufficient memory 2020-03-26 14:19:03 +01:00
Jose Alamos
e451570219 gnrc_netif: remove GNRC_NETIF_NUMOF macro 2020-03-26 11:12:23 +01:00