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

2841 Commits

Author SHA1 Message Date
Marian Buschsieweke
0e90e6195f
tests: Updated Updated BOARD_INSUFFICIENT_MEMORY
Added arduino-nano to BOARD_INSUFFICIENT_MEMORY/BOARD_BLACKLIST following suit
of how arduino-uno is marked, as arduino-nano is mostly an Uno in a different
form factor.
2019-03-14 15:39:54 +01:00
297efdd5b2
Merge pull request #10892 from kb2ma/gcoap/use_opt_finish
net/gcoap: Replace use of gcoap_finish() with coap_opt_finish()
2019-03-12 22:16:32 +01:00
Gilles DOFFE
37cfd17de6 tests: add motor_driver test
Test motor_driver API by making 2 motors turn clockwise and
counter-clockwise alternatively.
Speed varies from 0 to max PWM duty cycle.

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-03-11 01:44:22 +01:00
d562af40e6
Merge pull request #11144 from jia200x/pr/netdev_lora_rx_info
netdev/lora: add netdev_lora_rx_info structure for RX info
2019-03-08 18:36:02 +01:00
d3de1d7aec
tests/driver_sx127x: use netdev_lora_rx_info structure for RX info 2019-03-08 18:20:34 +01:00
36affe13c2
tests/driver_sx127x: handle RX started netdev event 2019-03-08 08:46:52 +01:00
Marian Buschsieweke
63069f9b88
Merge pull request #11058 from smlng/pr/9707/squash
tests : add periph_gpio_arduino for verifying arduino pin mappings
2019-03-06 16:22:52 +01:00
MichelRottleuthner
3427dcd168
Merge pull request #10961 from MrKevinWeiss/pr/addshellcommands
sys/app_metadata: Add a shell command to print application metadata
2019-03-06 13:36:14 +01:00
smlng
4dca51dc84 tests/periph_gpio_arduino: disable low-mem boards 2019-03-06 13:28:26 +01:00
Tom Keddie
e460065b65 tests : add periph_gpio_arduino for verifying arduino pin mappings 2019-03-06 13:26:02 +01:00
MrKevinWeiss
c36cf5743f tests/shell: Add app_metadata to shell tests
Adds app_metadata to the shell test
This both serves as a simple test to see if the module is available
and doesn't crash as well as an example
2019-03-06 13:07:57 +01:00
Gaëtan Harter
13e852c58c
tests/riotboot: use FLASHFILE for the generated file
FLASHFILE is now a generated file when doing `make all`.
This prepares also for when flashers will use `FLASHFILE` as a file to
be flashed.

It currently still needs the hack below for openocd and edbg.

This also fixes the issue when building 'riotboot' in docker that was
being built with the host toolchain.
2019-03-05 11:22:11 +01:00
Gaëtan Harter
60f71a1c15
tests/riotboot: use 'RIOTBOOT_COMBINED_BIN' variable
Use the new variable instead of the composed name.
2019-03-05 11:22:11 +01:00
Rotzbua
d606c11d11 tests/leds: initialize led0 by default
fix unexpected behavior:
reference #9949
reference #10294

fix redefinition for AUTO_INIT_LED0
2019-02-27 13:09:29 +01:00
Martine Lenders
a2c14b33ff
Merge pull request #11053 from cladmi/pr/tests/bloom_bytes/float_handling
tests/bloom_bytes: replace %f with fmt/print_float
2019-02-26 21:27:02 +01:00
Martine Lenders
dd1f45d05e tests: adapt tests for gnrc_netif checks 2019-02-26 16:46:29 +01:00
Martine Lenders
727a843ce4
Merge pull request #10905 from maribu/packet_size_l2_pdu
net: NETOPT_MAX_{PACKET_SIZE -> PDU_SIZE}
2019-02-22 15:23:00 +01:00
Gaëtan Harter
642f5e4809
tests/bloom_bytes: explicitely expect a float
The last line should be a float lower than 1 so 0.XXX.
So expect it to match this.

This should prevent issues when float printing does not work.
2019-02-21 16:19:47 +01:00
Gaëtan Harter
124e1dd3fa
tests/bloom_bytes: replace %f with fmt/print_float
Even if using `%f` the `printf_float` module was not used.

When running the test on `samr21-xpro` and `arduino-mega2560` the float
is not printed correctly.

 * samr21-xpro ` false positive rate.`
 * arduino-mega2560 `? false positive rate.`

As the arduino-mega2560 does not handle printf_float use
`fmt/print_float`.

The output should be flushed before using fmt/print functions if
available as they do not use `printf` buffer.
2019-02-21 16:19:38 +01:00
Gaëtan Harter
f5c79ba821
tests/bloom_bytes: define regexp as raw strings
Python strings for regular expression should be declared as `raw` so `\`
is not re-interpreted.

This fixes `flake8` warning.
2019-02-21 16:19:27 +01:00
a4c4cd9605 tests/pkg_relic: add hifive1 to blacklist 2019-02-21 14:24:55 +01:00
Sebastian Meiling
92b3558b4b
Merge pull request #11047 from kaspar030/fix_tests_periph_timer_for_hifive1
tests/periph_timer: add hifive1 exception
2019-02-21 14:39:57 +02:00
332b06a319 tests/periph_timer: add hifive1 exception 2019-02-21 11:40:30 +01:00
c16bd3871c tests/lwip_sock_ip: fix memcpy lenghts
sizeof(ip6_addr_t) > 16 depending on compilation flags, possibly reading
more data than available.

Fix by using the actual address' sizeof for memcpy.
2019-02-21 11:30:25 +01:00
Peter Kietzmann
654fd4fba5
Merge pull request #10999 from cladmi/pr/tests/rng/print_float
tests/rng: replace printf_float with fmt/print_float
2019-02-21 11:11:46 +01:00
Gaëtan Harter
27b42d34d3
tests/rng: replace printf_float with fmt/print_float
When running the test on `arduino-mega2560` printing the float failed
and was printed as ` ?`.

    Calculated  ? bits of entropy from 10000 samples.

Replace using `printf` floating point printing by using `fmt/print_float`.
Now the test succeeds on `arduino-mega2560`.

As `print_float` does not buffer and is used with `printf` the output
should be flushed before calling it if `fflush` is available.
2019-02-21 10:42:04 +01:00
Gaëtan Harter
44d2b62a70
tests/rng: fix cppcheck error shiftTooManyBitsSigned
cpp check is reporting the following error

    error (shiftTooManyBitsSigned):
    Shifting signed 32-bit value by 31 bits is undefined behaviour

Fix by ensuring the `1` is an `uint32_t` before shifting.
2019-02-21 10:41:33 +01:00
Marian Buschsieweke
9216607163
tests/gnrc_ipv6_nib_6ln: Refactored code
Improved readability of if statements. This issue was pointed out by cppcheck.
2019-02-19 13:00:05 +01:00
Leandro Lanzieri
5d481c2a68
Merge pull request #9838 from gebart/pr/ds3234-pps
ds323x: Minimal driver for DS323x extremely accurate RTC
2019-02-19 12:52:24 +01:00
Joakim Nohlgård
a6f430b4b5 drivers/ds3234: Minimal driver for DS3234 extremely accurate RTC
This driver currently only supports the SPI connected DS3234, and only
for initializing 1 Hz square wave output on the SQW pin, nothing else.
2019-02-19 11:57:40 +01:00
Peter Kietzmann
dd664a88fd
Merge pull request #10963 from brummer-simon/gnrc_tcp-fix_test_setup
gnrc_tcp: change and verify addrs in use
2019-02-19 09:32:53 +01:00
Marian Buschsieweke
1b5f615554
tests/driver_at86rf2xx: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:20 +01:00
Marian Buschsieweke
0c03c63c0e
tests/lwip_sock_ip: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:18 +01:00
Marian Buschsieweke
829a8b1792
tests/lwip_sock_udp: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:16 +01:00
Marian Buschsieweke
5189ac4d19
tests/gnrc_sixlowpan: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:13 +01:00
Marian Buschsieweke
4c0469f9d3
tests/gnrc_ipv6_nib_6ln: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:11 +01:00
Marian Buschsieweke
db83b363db
tests/gnrc_ndp: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:09 +01:00
Marian Buschsieweke
80c202f3e5
tests/gnrc_ipv6_nib: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:07 +01:00
Marian Buschsieweke
6efd1f840a
tests/gnrf_netif: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:04 +01:00
ac775b8ae5
Merge pull request #9181 from haukepetersen/opt_event_independencefromthread
sys/event: make event queue independent from thread
2019-02-16 13:50:14 +01:00
Simon Brummer
63ea8080f6 gnrc_tcp: fix test setup 2019-02-16 08:23:20 +01:00
Leandro Lanzieri
aefdc6550c tests: Add test for AD7746 driver 2019-02-15 13:37:45 +01:00
Juan I Carrano
643de0a857
Merge pull request #11005 from cladmi/pr/test/periph_eeprom/use_eeprom_clear_byte
tests/periph_eeprom: use EEPROM_CLEAR_BYTE
2019-02-12 18:00:53 +01:00
Gaëtan Harter
8e4b11cdd0
Merge pull request #10369 from miri64/gnrc_ipv6_nib/fix/arsm-16-bit
gnrc_ipv6_nib/arsm: ensure proper int width in backoff calculation
2019-02-12 17:54:52 +01:00
Martine Lenders
f5086e76df tests/unittests: add tests for exponential NS backoff 2019-02-12 17:01:14 +01:00
Gaëtan Harter
c894b67733
tests/periph_eeprom: take EEPROM_CLEAR_BYTE into account
After being cleared, the memory can be `0xFF` for `atmega` platforms for
example.

Fix the test to take EEPROM_CLEAR_BYTE into account.
2019-02-12 16:37:42 +01:00
Gaëtan Harter
3058c8c645
tests/periph_eeprom: use memcmp for cleared bytes
`strcmp` was used to check that the 4 bytes were empty but was not
testing what it should as an empty string is `0` bytes long.

The whole must be verified.
2019-02-12 16:37:42 +01:00
Gaëtan Harter
7455e0b6fe
tests/periph_eeprom: use memcmp
Use `memcmp` where it is obvious it is not doing a string comparison.
2019-02-12 16:37:42 +01:00
Gaëtan Harter
6d8fd279ac
tests/periph_eeprom: remove useless casts
Casting to `const char *` is not necessary as input, the type are
already the right ones.

It could not be before as `result` was with the wrong type.
2019-02-12 16:37:42 +01:00
Gaëtan Harter
c029fcde11
tests/periph_eeprom: fix 'results' type
Results type should only be an array of char, not an array of pointers.
2019-02-12 16:37:42 +01:00