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

19024 Commits

Author SHA1 Message Date
Kevin Weiss
96225e317f
Merge pull request #9639 from yegorich/pr/tests/uart_periph/autotester-infra
Move testing infrastructure files to dist/tests
2018-08-02 17:17:27 +02:00
Gaëtan Harter
3226918e17
newlib.mk: indent comments in conditionnal
Comments inside an if are usually also indented.
2018-08-02 17:06:54 +02:00
Gaëtan Harter
154d64ee47
newlib.mk: get NEWLIB_INCLUDE_DIR absolute and without trailing slash
It replaces

    make BOARD=iotlab-m3 info-debug-variable-NEWLIB_INCLUDE_DIR
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/include/

with

    make BOARD=iotlab-m3 info-debug-variable-NEWLIB_INCLUDE_DIR
    /usr/arm-none-eabi/include

Without trailing slash and without relative '..' everywhere.

It also uses `realpath` instead of `abspath` to support Mingw32.
2018-08-02 17:06:51 +02:00
Gaëtan Harter
37a92c4c5e
newlib.mk: Windows/MSYS Bash support: use realpath instead of abspath
Some versions of Mingw32 abspath implementation has trouble working with
windows formatted path.

    $(abspath "C:/A/B") returns "/C/CUR/DIR/C:/A/B" instead of "/C/A/B"

relpath does not have this problem, it does additional symlink resolution but is
not a problem.
Note: on windows it does not remove the trailing `/`.

https://github.com/zephyrproject-rtos/zephyr/issues/2061#issuecomment-331635063

Patched in

941059c69f
2018-08-02 17:06:46 +02:00
Gaëtan Harter
3a4538ee76
newlib.mk: sanitize output before getting include path
Only keep lines that are indeed include path.
It also keeps newlines as they do not matter.

It fixes Mingw32 support where `grep '^\s'` is not working the same way.
It also handles some mac `sed` that do not support `\s`.

Ouput tested with:

    make -C examples/hello-world BOARD=samr21-xpro info-debug-variable-COMPILER_INCLUDE_PATHS
    # by also putting newlines for readability

Now:

    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/include
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/include-fixed
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/include

Before:

    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/cc1 -E -quiet -v -iprefix /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/ -isysroot /usr/bin/../arm-none-eabi -D__USES_INITFINI__ /dev/null
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/include
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/include-fixed
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/include
2018-08-02 17:05:17 +02:00
Gaëtan Harter
18a4ccf315
newlib.mk: fix NEWLIB_INCLUDE_DIR not being set by PATTERNS
As NEWLIB_INCLUDE_DIR has already been set here, with an empty value, it is not
overwriting it because of the '?='.
2018-08-02 17:05:13 +02:00
Gaëtan Harter
a946c2c5bd
newlib.mk: fix: do not require slash terminated NEWLIB_INCLUDE_DIR
When NEWLIB_INCLUDE_DIR is set from other parts than 'COMPILER_INCLUDE_PATHS' it
does not have a trailing slash.
Also, it makes it more problematic when supplying it from the command line.

And anyway having two '/' does not break anything.
2018-08-02 17:05:10 +02:00
Martine Lenders
d4bdac7e5c
Merge pull request #9513 from cladmi/pr/make/llvm/nano
newlib.mk: llvm, fix newlib-nano header not used
2018-08-02 17:00:38 +02:00
Gaëtan Harter
0a4a359555
Merge pull request #9681 from miri64/tests/fix/cayenne-lpp-llvm
tests: fix cayenne-lpp test for LLVM
2018-08-02 16:07:27 +02:00
smlng
f35d15d429 doc: add missing defgroup for auto_init_saul 2018-08-02 15:52:58 +02:00
smlng
a3dc63b16c drivers/mma7660: adapt to new I2C API 2018-08-02 15:52:58 +02:00
Michael Andersen
e354824bcf drivers/mma7760: Add initial support 2018-08-02 15:52:58 +02:00
Gaëtan Harter
d5505930cc
Merge pull request #9672 from miri64/gnrc_ipv6/fix/8215-regression
gnrc_ipv6: fix regression from #8215
2018-08-02 15:40:51 +02:00
Martine Lenders
35b798e486 tests: fix cayenne-lpp test for LLVM
Fixes #9680
2018-08-02 15:33:29 +02:00
Martine Lenders
f946314837 gnrc_ipv6: refactor to remove superfluous temporary variable
Since no release in this function is required anyways, we can just use
`payload` to check the return value directly.
2018-08-02 15:20:59 +02:00
Martine Lenders
cb4f6a96a8 gnrc_ipv6: correctly reset from temporary variable
While `tmp` in the loop for write-protection for the check-sum
calculation is used to check the return value of
`gnrc_pktbuf_start_write()`, it was never overwriting `payload` causing
the original snip to be used in the following iteration `prev` when
duplicated, and destroying the sanity of `ipv6`.
2018-08-02 15:17:40 +02:00
Martine Lenders
72e9b1f623 gnrc_ipv6: remove superfluous release
The packet handed to `_fill_ipv6_hdr()` is already released in the
caller (in the current version this is only `_save_fill_ipv6_hdr()`).
2018-08-02 15:16:08 +02:00
Martine Lenders
7909ce527f
Merge pull request #9626 from jia200x/pr/loramac_patch
semtech-loramac: fix uninitialized datarate
2018-08-02 14:57:30 +02:00
Yegor Yefremov
ff525eb354 dist/tests/if_lib: move testing infrastructure files to a stand-alone package
Create if_lib package containing all the modules and adapt the *.py files
to import each other using the intra-package references.

The idea behind a package is to invoke test.py either by permanently
modifying PYTHONPATH in user profile via adding path to $RIOTBASE/dist/tests
or make temporary PYTHONPATH changes during the invocation:

PYTHONPATH=$PYTHONPATH:$RIOTBASE/dist/tests python3 test.py

Leave periph_i2c_if.py in the same folder as test.py as this file is
just a Python wrapper around periph specific main.c.

Update BPT memory map. Use definitions generated with the latest code
generator. Both routine names and mapping have changed.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2018-08-02 13:34:47 +02:00
Sebastian Meiling
26c689ffbb
Merge pull request #9548 from RIOT-OS/new_i2c_if3
I2C: introduce and adapt new I2C interface (2nd attempt)
2018-08-02 12:00:59 +02:00
Cenk Gündoğan
36529e3d61
Merge pull request #9586 from miri64/dist/fix/iotlab-term
iotlab-support: use iotlab command to check credentials
2018-08-02 09:26:07 +02:00
Gaëtan Harter
9786d2fd0b
Merge pull request #9675 from miri64/tests/fix/group-macro
tests: gnrc_netif: fix group join iteration macro
2018-08-01 23:17:07 +02:00
Martine Lenders
39304987c3
Merge pull request #9668 from gschorcht/sdcard_spi
driver/sdcard_spi: fix of issue #9667
2018-08-01 22:16:55 +02:00
Martine Lenders
5921447291 tests: gnrc_netif: fix group join iteration macro
The `test_ipv6_group_join__ENOMEM()` tests joining multicast groups,
so we need to iterate `GNRC_NETIF_IPV6_GROUPS_NUMOF` times to fill up
all addresses, not `GNRC_NETIF_IPV6_ADDRS_NUMOF`.
2018-08-01 20:44:49 +02:00
Gunar Schorcht
bd4661bc19 drivers/sdcard_spi: fix of #9667 2018-08-01 20:41:30 +02:00
Martine Lenders
0a8d5e0fb9
Merge pull request #9670 from cladmi/pr/asymcute_mqttsn/documentation
examples/asymcute_mqttsn: fix target name
2018-08-01 20:26:29 +02:00
Martine Lenders
1fcf23c512
Merge pull request #9650 from cladmi/pr/tests/gnrc_sixlowpan
tests/gnrc_sixlowpan: enable test on murdock
2018-08-01 20:23:29 +02:00
Gaëtan Harter
2ce25d44b7
Merge pull request #9654 from miri64/tests/fix/gnrc_ipv6_ext-dummy-iface
tests: gnrc_ipv6_ext: replace default netif with dummy
2018-08-01 20:07:22 +02:00
Gaëtan Harter
4e83e18dc8
examples/asymcute_mqttsn: fix target name
Target name is `mosquitto_rsmb` and not `rsmb`.
2018-08-01 19:49:57 +02:00
Martine Lenders
af30e08351
Merge pull request #8378 from Icaltary/sx127x_get_rx_state
drivers/sx127x: return correct state when device is receiving
2018-08-01 17:34:41 +02:00
Martine Lenders
c4ba2b55d0 tests: gnrc_ipv6_ext: replace default netif with dummy
Use a minimalistic dummy instead of the default interface for testing
the `gnrc_ipv6_ext` module.

Currently the default interface is used which leads to problems with
this test, since random traffic on the medium or a missing default
interface might lead to failed results.

Since the `tap` dependency is removed for `native`, I add this test for
testing on CI.
2018-08-01 17:25:58 +02:00
Gaëtan Harter
edefd096d0
tests/gnrc_sixlowpan: enable test on murdock 2018-08-01 15:27:23 +02:00
Jose Alamos
2531487fca boards/periph_conf: fix Doxygen group directives 2018-08-01 15:24:55 +02:00
Jose Alamos
7b28fbf110 boards: fix Doxygen group directives 2018-08-01 15:24:55 +02:00
Jose Alamos
a1e17ab5af doc: add wiki documentation to Doxygen files 2018-08-01 15:24:54 +02:00
Peter Kietzmann
0230c2cac1
Merge pull request #8551 from aabadie/pr/readme_features
README: update features list + line length cleanup
2018-08-01 10:09:06 +02:00
Martine Lenders
e57ae7d05e
Merge pull request #9661 from miri64/native/fix/non-literal-syscall
native: ignore -Wformat-nonliteral for formatting syscalls
2018-08-01 09:24:32 +02:00
Martine Lenders
d6ec8e0122
Merge pull request #9659 from miri64/pkg/fix/tlsf-llvm
tlsf: fix for llvm
2018-08-01 09:20:09 +02:00
Martine Lenders
ad133da209 native: ignore -Wformat-nonliteral for formatting syscalls
The point of that call is to wrap the actual host system's formatting
functions, so the non-literal formatting string is alright here.
2018-08-01 09:03:01 +02:00
Martine Lenders
5ea5904d41
Merge pull request #9648 from miri64/tests/fix/gnrc_sixlowpan-dummy
tests: gnrc_sixlowpan: replace default netif with dummy
2018-07-31 22:01:47 +02:00
Martine Lenders
82c318224b tlsf: fix for llvm
The `__GNUC__` is also available in `clang` as is just used to provide
the major version of a GNU-C compatible compiler [[1]]. So I check for
`tlsf` if the `alloc_size()` is available by using the combination of
macros as proposed here: https://stackoverflow.com/a/43205345/395687

[1]: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
2018-07-31 21:35:29 +02:00
Martine Lenders
6c2510dc53 tests: gnrc_sixlowpan: replace default netif with dummy
Use a minimalistic dummy instead of the default interface for testing
the `gnrc_sixlowpan` module

Currently the default interface is used which leads to problems with
this test, since random traffic on the medium might lead to failed
results.
2018-07-31 20:59:03 +02:00
Gaëtan Harter
33389dd640
Merge pull request #9507 from ZetaR60/RIOT_docker_compat
tests/*: memory blacklisting for new Docker image
2018-07-31 19:58:37 +02:00
Peter Kietzmann
e897826cc7
Merge pull request #9616 from bergzand/pr/at86rf2xx/always_set_channel
at86rf2xx: Always set channel on device
2018-07-31 18:33:44 +02:00
ZetaR60
3ab20292a3
Merge pull request #9643 from cladmi/pr/libfixmath/debug
pkg/libfixmath: replace __FILE__ by RIOT_FILE_NOPATH
2018-07-31 11:59:38 -04:00
Matthew Blue
25c7b3ceeb tests/*: memory blacklisting for new Docker image 2018-07-31 11:48:11 -04:00
Martine Lenders
a15a1b64d9
Merge pull request #9649 from miri64/tests/fix/gnrc_sixlowpan-print
tests: gnrc_sixlowpan: fix expect for #9585
2018-07-31 16:22:27 +02:00
Gaëtan Harter
7913dd90dd
pkg/libfixmath: Replace __FILE__ by RIOT_FILE_NOPATH
The binary file size changes when the RIOT directory is moved.
This caused the `libfixmath_unittests` to fail on my computer.

I used RIOT_FILE_NOPATH instead of RIOT_FILE_RELATIVE as 'TEST' is used a lot
and it would allow more boards to be tested, full path is not that important.
2018-07-31 11:56:18 +02:00
Martine Lenders
c289cccb42 tests: gnrc_sixlowpan: fix expect for #9585
PR #9585 changed the output for the dump slightly, so now this test
is failing. This fixes that and should also fix some issues from the
2017.07 release tests.
2018-07-30 18:03:22 +02:00
Gaëtan Harter
5284849621
Merge pull request #9063 from bergzand/pr/shellcheck/initial
shellcheck: Add CI check script
2018-07-30 13:52:58 +02:00