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

4039 Commits

Author SHA1 Message Date
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
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
Jose Alamos
67ed9defbe gnrc_netif_xxx_create: use external netif allocation 2020-03-26 11:12:23 +01:00
Marian Buschsieweke
937361856d
Merge pull request #13702 from ccoors/feature/esp32-ws281x
drivers/ws281x: Add support for esp32
2020-03-25 21:39:40 +01:00
Christian Friedrich Coors
08703766fc drivers/ws281x: Add ESP32 support 2020-03-25 17:25:35 +01:00
Francisco
12b47452dc
Merge pull request #13697 from bergzand/pr/libcose/disable_monocypher
pkg/libcose: Remove monocypher crypto mode
2020-03-25 10:41:31 +01:00
bf2b495d34
Merge pull request #13703 from fjmolinas/pr_usbus_autoinit
Makefile.dep: add auto_init_usbus as usbus DEFAULT_MODULE
2020-03-25 10:19:04 +01:00
Gunar Schorcht
11b5503aa6
Merge pull request #13705 from benpicco/tests-rtt_rtc-fix
unittests/tests-rtt_rtc: blacklist test on esp32
2020-03-25 09:53:05 +01:00
bf703a70c3
tests/pkg_libcose: remove the monocypher crypto option 2020-03-25 09:37:06 +01:00
Francisco
ddf763c9da
Merge pull request #13696 from fjmolinas/pr_tests_fixes
tests: fixes for evtimer_msg and bench_runtime_coreapis
2020-03-25 08:52:34 +01:00