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

3034 Commits

Author SHA1 Message Date
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
Martine Lenders
875377d622 tests/unittests: suppress cppcheck redundantAssignment warning
To make the CI happy ;-).
2019-02-08 23:35:37 +01:00
Martine Lenders
2451fb36f8 tests: add unittest for state corruption in NC cache-out 2019-02-08 19:22:51 +01:00
Kees Bakker
50ec5130d6 drivers: add support for SHT2x (I2C temp and humidity sensor)
Several parts were inspired by a driver written by:
  George Psimenos (gp7g14@soton.ac.uk)
  Steffen Robertz (steffen.robertz@rwth-aachen.de)
2019-02-05 22:17:30 +01:00
PeterKietzmann
b2857529ef tests/gnrc_tcp_server: don't set PORT=tap0 as default 2019-02-05 15:01:12 +01:00
PeterKietzmann
e03bbb4f2e tests/gnrc_tcp_client: don't set PORT=tap1 as default 2019-02-05 15:01:05 +01:00
Kevin "Bear Puncher" Weiss
7dc243e3cc
Merge pull request #10220 from bergzand/pr/crypto/chacha20poly1305
chacha20poly1305: Initial implementation of AEAD cipher.
2019-02-04 12:52:24 +01:00
f4a4f5d0b1
chacha20poly1305: Provide a test based on the rfc
Add a test case to the crypto tests testing the chacha20poly1305
algorithm with the test vectors from rfc 8439.
2019-02-04 09:29:26 +01:00
Martine Lenders
73d72c0c52
Merge pull request #10893 from aabadie/pr/tests/periph_rtt
tests/periph_rtt: add Python script for automatic testing + use 5s delay between Hellos
2019-02-01 10:20:46 +01:00
Kevin "Bear Puncher" Weiss
1d693403b6
Merge pull request #10743 from yegorich/uart-enhanced-settings
RFC: UART enhanced settings
2019-01-31 17:11:28 +01:00
Sebastian Meiling
805efb69c5
Merge pull request #10458 from MichelRottleuthner/pr_driver_sds011
add driver for SDS011 active laser dust sensor
2019-01-31 15:54:09 +02:00
Yegor Yefremov
2673b662af tests/periph_uart: add tests for uart_mode
Add positive and negative tests for data bits, stop bits and parity:

- 7E1, 7O1
- 8E1, 8O1
- 8N2

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-01-31 14:15:20 +01:00
Yegor Yefremov
738cbf685b tests/periph_uart: add support for changing serial
Add command mode that will be used like this:

mode <dev> <data bits> <parity> <stop bits>

This command must be called after init otherwise
the UART won't be fully initialized.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-01-31 14:15:20 +01:00
6a570f3a82
tests/periph_rtt: add automatic testing script 2019-01-31 10:47:05 +01:00
aee4771a42
tests/periph_rtt: use a 5s delay between each hello 2019-01-31 10:46:56 +01:00
f6e616d48f
tests/pkg_semtech-loramac: fix send return value management 2019-01-30 18:58:43 +01:00
Michel Rottleuthner
17a1358ccb tests: add test application for sds011 driver 2019-01-30 13:15:17 +01:00
782b181b63
Merge pull request #10887 from aabadie/pr/make/distclean_cleanup
tests: remove leftover test targets in test application makefiles
2019-01-28 16:25:02 +01:00
Marian Buschsieweke
075ad47bb3
tests/driver_ltc4150: BOARD_INSUFFICIENT_MEMORY 2019-01-28 13:53:47 +01:00
Marian Buschsieweke
2ba57ac00c
tests/driver_ltc4150: Workarround for msp430
The msp430 toolchain is missing an `fputs()` implementation. This commit makes
them use the `printf("%s", str);` instead of `fputs(str, stdout);`, which is
semantically equivalent (but has more overhead).
2019-01-28 13:53:38 +01:00
Marian Buschsieweke
618e2e58d5
tests: Added test for ltc4150 driver 2019-01-28 13:50:42 +01:00
Marian Buschsieweke
5acd87bf6f
tests/saul: Updated BOARD_INSUFFICIENT_MEMORY 2019-01-28 13:33:27 +01:00
9bf82ecd16
tests/pkg_cmsis-dsp: remove useless test target 2019-01-28 10:26:36 +01:00
3ef9707e40
tests/cond_order: remove useless test target 2019-01-28 10:26:20 +01:00
MrKevinWeiss
957cc83cc6 doc: Update copywrites it include HAW 2019-01-28 09:08:50 +01:00
eb79ba0400
tests/pkg_lora-serialization: remove useless test target 2019-01-27 19:39:26 +01:00
Ken Bannister
e96209fddb net/gcoap: use coap_opt_finish in unit tests 2019-01-27 09:14:46 -05:00
b8565e492d
Merge pull request #10851 from miri64/tests/feat/gnrc_sixlowpan_frag-tests
tests: provide unittests for gnrc_sixlowpan_frag/rbuf
2019-01-25 17:55:28 +01:00
Martine Lenders
6ff06d3f41 tests: provide unittests for gnrc_sixlowpan_frag/rbuf
The reason I put these unittests into their own application is that I
intentionally wanted to test this module very isolated.
2019-01-25 16:57:09 +01:00
Kevin "Bear Puncher" Weiss
06b5a58e62
Merge pull request #10802 from leandrolanzieri/pr/boards/sensebox_samd21-mtd
boards/sensebox_samd21: Add MTD definition
2019-01-24 12:20:16 +01:00
Sebastian Meiling
907b761750
Merge pull request #10792 from gschorcht/esp8266_esp_wifi_netdev
esp8266: esp_wifi netdev driver
2019-01-24 12:09:46 +01:00
Gunar Schorcht
e6cf33eb4c tests/lwip*: blacklist esp8266 boards 2019-01-24 10:29:19 +01:00
Sebastian Meiling
44234783da
Merge pull request #10823 from kb2ma/nanocoap/verify_before_write_option
net/nanocoap: validate option length
2019-01-24 09:23:26 +01:00
Ran Berant
59416fc6ce drivers/at: make at_dev_init() return uart initialize status
in case there's an error uart_init() returns an error value,
this value indicates the reason for the error thus we should
return it from at_dev_init() so the user will be able to identify
whether the init succeded or failed.
2019-01-23 19:02:14 +02:00
Martine Lenders
d3f8739a1e
Merge pull request #5949 from zhuoshuguo/add_timeout_module_to_gnrc_mac
gnrc_mac: add timeout module.
2019-01-22 10:34:30 +01:00
7e3c382547
Merge pull request #10653 from dylad/pr/saml1x_support
cpu/saml1x: add support for SAML10 and SAML11 MCUs (Cortex-M23)
2019-01-22 08:53:06 +01:00
94d6bafc28
Merge pull request #10831 from cladmi/pr/tests/adapt_tests_auto_lookup
tests/posix_semaphore: private sub functions for tests libs
2019-01-21 18:02:37 +01:00
Dylan Laduranty
7afacf97e7 tests/*: add saml1*-xpro to BOARD_INSUFFICIENT_MEMORY 2019-01-21 17:11:32 +01:00
Dylan Laduranty
762e5251b4 tests/unittests: disable optimization for test_atomic_inc_rollover
Disable optimization for this function only with CPU_SAML1X MCUs due to an internal crosscompiler bug
2019-01-21 17:10:19 +01:00
zhuoshuguo
79e5586d0c gnrc_mac: add timeout module.
Co-Authored-By: zhuoshuguo <zhuosgzju@gmail.com>
2019-01-21 22:46:10 +08:00
e990391948
tests/periph_dma: add automatic testing of DMA over UART 2019-01-21 15:06:16 +01:00
Gaëtan Harter
6e7fa9e9e0
tests/posix_semaphore: private sub functions for tests libs
While trying python test libraries, like pytest, the automatic test collection
detects the `testNUM` functions as tests but does not know the `term` argument
and fails.

This declares them as private to only find `testfunc(child)` entry point.

Another solution could have been to use `testNUM(child)` and rename
`testfunc` to `main` but would not match other tests.
2019-01-21 12:32:29 +01:00
Ken Bannister
715b79a1e7 tests/nanocoap: build request that fills buffer 2019-01-18 12:34:55 -05:00
Sebastian Meiling
f9a3bdf1a7
Merge pull request #10671 from kb2ma/nanocoap/retry_qty
net/nanocoap: fix confirmable retry countdown
2019-01-18 17:49:00 +01:00
Dylan Laduranty
a78f357b26
Merge pull request #10813 from aabadie/pr/tests/pkg_hacl_monocypher
tests/pkg_{hacl,monocypher}: set custom timeout value
2019-01-18 16:08:29 +01:00
a1546375da
tests/periph_rtc: add automatic python test script 2019-01-18 14:42:58 +01:00
ebb45459b0
Merge pull request #10777 from fedepell/test_flashpage_enh_1
tests/periph_flashpage: improve flashpage tests
2019-01-18 14:37:39 +01:00
Leandro Lanzieri
2625a86450 boards/sensebox_samd21: Add MTD definitions 2019-01-18 13:25:35 +01:00
Ken Bannister
2e2847372c tests/nanocoap: allow server to ignore requests 2019-01-18 05:47:43 -05:00
a1736b08ad
tests/pkg_{hacl,monocypher}: set custom timeout value
On samr30-xpro the tests takes respectively 20 and 14 seconds to complete
2019-01-18 11:29:46 +01:00
939774105f
tests/periph_rtc: fix alarm period in README
The default period value the application code is set to 2s
2019-01-18 09:17:30 +01:00
Gaëtan Harter
5260b62160
tests/build_system_utils: fix TESTS name collision
TESTS is used to find the tests files for the application but was used
to list test targets. Rename to COMPILE_TESTS as already done in some of
my other applications.
2019-01-16 18:24:13 +01:00
Sebastian Meiling
2fde8335c9
Merge pull request #10728 from keestux/memcpy-struct-copy
Do normal assignment instead of memcpy
2019-01-16 09:18:44 +01:00
Federico Pellegrin
4b7c37cca0 tests/periph_flashpage: improve flashpage tests
-) verify correctness of data written by raw write test
-) write to really last flash page and not last - 1
-) use flashpage_addr instead of manual calculation
2019-01-16 05:29:23 +01:00
Emmanuel Baccelli
209d90bc00
Merge pull request #10215 from kYc0o/pr/riotboot_multislot
riotboot: add multislot support
2019-01-15 19:04:28 +01:00
Francisco Acosta
8e5ac629e0 tests/riotboot: extend to accept slot 0 or 1
Modify the test to accept slot values 0 and 1.
2019-01-14 16:14:34 +01:00
Cenk Gündoğan
6a4c764c95
Merge pull request #10569 from miri64/gnrc_netif/enh/rm-get-NETOPT_IPV6_IID
gnrc_netif: make _get_iid() just wrapper around _iid_from_addr()
2019-01-14 14:09:34 +01:00
Martine Lenders
7ae90564d9 gnrc_netif: make _get_iid() just wrapper around _iid_from_addr()
This way the IID generation gets much simplified and code duplication
is avoided since it removes GNRC's requirement for NETOPT_IPV6_IID.
2019-01-14 13:42:58 +01:00
9767dd3d49
Merge pull request #10754 from kaspar030/fix_nanocoap_optlen
nanocoap: fix server-side option_count overflow
2019-01-14 13:26:37 +01:00
Ken Bannister
1058a8d07e tests/nanocoap: add test for option parse overflow 2019-01-14 12:30:06 +01:00
dd53bb89f7 tests/unittests/nanocoap: add test case for option_count overflow 2019-01-14 12:30:06 +01:00
José Alamos
5b350d6b2a
Merge pull request #10392 from miri64/tests/new/gnrc_rpl_srh
tests: introduce dedicated `gnrc_rpl_srh` test
2019-01-11 15:42:23 +01:00
Martine Lenders
3ff2edfe33 tests/gnrc_rpl_srh: output unittests as text 2019-01-11 15:18:53 +01:00
Martine Lenders
1d5184a948 tests: move gnrc_rpl_srh unittests to dedicated test application 2019-01-11 15:18:52 +01:00
Martine Lenders
df3d1be3e6 tests/gnrc_rpl_srh: introduce dedicated gnrc_rpl_srh test 2019-01-11 15:18:52 +01:00
José Alamos
bb095e45ce
Merge pull request #10382 from miri64/tests/enh/gnrc_ipv6_ext_scapy
tests/gnrc_ipv6_ext: port to scapy
2019-01-11 13:44:35 +01:00
Martine Lenders
70c970695a tests/gnrc_ipv6_ext: port to scapy 2019-01-11 13:27:21 +01:00
Kees Bakker
c12db036d0 tests/driver_sx127x: do normal assignment instead of memcpy 2019-01-10 19:50:25 +01:00
Marian Buschsieweke
f3b9398ed7
tests/gnrc_udp: Fixed typo in Makefile 2019-01-10 13:55:16 +01:00
Sebastian Meiling
7b405058b4
Merge pull request #10640 from kb2ma/tests/nanocoap_infrastructure
tests: add nanocoap CLI app for client and server testing
2019-01-10 09:16:42 +01:00
steffen
2ff2b2c1d7 drivers: Initial support for TPS6274x converter
drivers/tps6274x: initial support step-down converter
tests/driver_tps6274x: Added testcase for the step-down converter
boards/jiminy-mega256rfr2: Added TPS6274x config
2019-01-10 00:00:02 +01:00
Ken Bannister
ee09936cc5 tests: add CLI app for nanocoap testing
Includes both server and client components.
2019-01-08 08:25:04 -05:00
Sebastian Meiling
d06aa5f23f
Merge pull request #10597 from miri64/tests/cleanup/rm-NETOPT_IPV6_IID
tests: remove NETOPT_IPV6_IID get() from driver_at86rf2xx test
2019-01-08 09:59:43 +01:00
Kees Bakker
1d5a67dcce drivers/bh1750fvi: change prototype of bh1750fvi_init
The params argument is now a const pointer. This eliminates the need for
a type cast that converts a const to a non-const.
2019-01-07 21:37:02 +01:00
Martine Lenders
b2a261f0c3 tests: remove NETOPT_IPV6_IID get() from driver_at86rf2xx test 2019-01-07 17:09:23 +01:00
Sebastian Meiling
79b051907a
Merge pull request #10706 from keestux/eliminate-cast-at86rf2xx
tests/driver_at86rf2xx: eliminate cast
2019-01-07 14:32:16 +01:00
Sebastian Meiling
612469f8ad
Merge pull request #10398 from Josar/pr/xtimer_hang/priority_worker
tests/xtimer_drift: increase priority of worker
2019-01-07 10:40:01 +01:00
Kevin "Bear Puncher" Weiss
9554f751d8
Merge pull request #6630 from OTAkeys/pr/cortex-m4f-fpu
cortexm_common: add FPU support for cortex-m4f and cortex-m7
2019-01-04 11:56:18 +01:00
Kees Bakker
d909cf3a84 tests/driver_at86rf2xx: eliminate cast 2019-01-03 22:56:15 +01:00
5072acc8b8
Merge pull request #10698 from MrKevinWeiss/pr/fixsetbaudrate
tests/periph_uart: fix baudrate truncation
2019-01-03 18:43:36 +01:00
MrKevinWeiss
501b257223 tests/periph_uart: fix baudrate truncation
Since some boards an int is 16 bits the atoi truncates values.
This commit using a long instead of an int.
2019-01-03 16:38:33 +01:00
Vincent Dupont
402b60e30c tests: add thread_float test app 2019-01-03 16:06:30 +01:00
MrKevinWeiss
d2e67261ae tests/driver_ds1307: Blacklist iotlab boards
This states iotlab boards shouldn't run these tests.
This is because the i2c address of L3G4200 is the same ad the ds1307.
This causes an error that thinks the test is valid when it is not.
2019-01-03 14:38:56 +01:00
Kevin "Bear Puncher" Weiss
e4ed9d703d
Merge pull request #10118 from aabadie/pr/tests/sx127x_default_board
tests/sx127x: set b-l072z-lrwan1 as default board
2019-01-03 11:35:49 +01:00
José Alamos
f14d46d935
Merge pull request #10242 from miri64/gnrc_ipv6_ext_rh/enh/icmpv6_error_msg
gnrc_ipv6_ext_rh: add ICMPv6 error message sending
2019-01-03 10:35:54 +01:00
f90c69cf6e tests/bench_runtime_coreapis: improve pexpect autotest 2019-01-02 14:22:37 +01:00
4e7bfb65df tests/bench_runtime_coreapis: globally import testrunner 2019-01-02 14:22:28 +01:00
Martine Lenders
9f51e15889
Merge pull request #10606 from aabadie/pr/tests/posix_semaphore_timeout_margin
tests/posix_semaphore: increase timeout margin
2018-12-28 12:10:10 +01:00
Martine Lenders
e13bc4285b
Merge pull request #10191 from fedepell/at_recv_bytes_1
drivers/at: add function to read raw data bytes from modem
2018-12-28 12:09:35 +01:00
Sebastian Meiling
cf1a5e0cae
Merge pull request #10396 from Josar/pr/xtimer_hang/periodic_wakeup
test/xtimer_hang: use xtimer_periodic_wakeup
2018-12-21 21:18:17 +01:00
Sebastian Meiling
139b5dba3c
Merge pull request #10501 from kb2ma/gcoap/req_path_null
net/gcoap: allow NULL path in gcoap_req_init()
2018-12-21 14:36:04 +01:00
Dylan Laduranty
764c7d2cc1
Merge pull request #10069 from fedepell/sam0_flashwrite
sam0 flashpage_write: correct translation from RIOT pages to CPU pages writing
2018-12-21 14:17:20 +01:00
Federico Pellegrin
50f2078fcd tests/periph_flashpage: test_last_raw must erase page before write 2018-12-20 21:18:52 +01:00
Gunar Schorcht
ae3ad4a93f tests/ccs811: satisfy Codacy 2018-12-20 12:42:44 +01:00
Gunar Schorcht
f03fb32f88 tests/driver_ccs811: fixes for Codacy 2018-12-20 12:42:44 +01:00
8a7edeb193 drivers/ccs811: fix build issues on ARM (#1)
* drivers/ccs811: fix types in debug messages

* drivers/driver_ccs811_full: fix unused variable build error
2018-12-20 12:42:44 +01:00
Schorcht
4323d9c233 drivers/ccs811: splitted test apps 2018-12-20 12:42:44 +01:00
Schorcht
74e1ab220c drivers: add driver for CCS811 gas sensor 2018-12-20 12:42:44 +01:00
4878cf2119
Merge pull request #10400 from miri64/core/enh/thread_has_queue_func
core: provide function to check msg queue initialization
2018-12-19 18:41:39 +01:00
Martine Lenders
91b526b0ad tests/gnrc_netif: use thread_has_msg_queue() for msg queue check 2018-12-19 15:39:50 +01:00
Martine Lenders
be5dd81a79 tests/unittests: adapt rpl_srh tests for API change 2018-12-18 19:46:27 +01:00
Francisco Acosta
66911d6ce1 tests/riotboot: add basic automatic test in python
Co-authored-by: Federico Pellegrin <fede@evolware.org>
2018-12-18 19:31:35 +01:00
Francisco Acosta
f1c57b21ec tests: add riotboot bootloader test
The tests overrides the target all to be tested by the CI.
All the instructions how to use it are in README.md
The test is successful if the image boots and displays
information about the image and running slot.

Co-authored-by: Federico Pellegrin <fede@evolware.org>
2018-12-18 19:31:35 +01:00
Gaëtan Harter
47830f44c2
Merge pull request #10603 from aabadie/pr/tests/pthread_timeout
tests/pthread_condition_variable: increase timeout
2018-12-17 17:57:15 +01:00
Martine Lenders
a3864aa103
Merge pull request #9158 from aabadie/pr/periph/stm32_lpuart
cpu/stm32-common: add support for lpuart
2018-12-17 12:16:27 +01:00
bd77949bc7 tests/posix_semaphore: increase timeout margin
Otherwise it may break on nrf51 boards where the timeout can be slightly above 100. Using 105us margin seems enough
2018-12-14 22:22:36 +01:00
87dd5f9341 tests/pthread_condition_variable: increase timeout
Otherwise it raises a timeout on slow boards. It takes around 2 minutes
on nrf51 based boards (e.g microbit)
2018-12-14 22:05:12 +01:00
Gaëtan Harter
169a72b9a7
Merge pull request #10590 from aabadie/tests/pkg_libcose_timeout
tests/pkg_libcose: increase timeout of autotest
2018-12-14 21:05:58 +01:00
Gaëtan Harter
60f3e1af8a
Merge pull request #10591 from aabadie/pr/tests/libfixmath_extend_timeout
tests/libfixmath_unittests: extend timeout in autotest
2018-12-14 19:46:44 +01:00
Gaëtan Harter
7b5b778cea
Merge pull request #10602 from aabadie/pr/tests/pkg_micro-ecc_timeout
tests/pkg_micro-ecc*: increase expect timeout
2018-12-14 19:28:56 +01:00
dbe43d7515 tests/periph_uart: add periph_lpuart optional dependency 2018-12-13 12:39:00 +01:00
0ea00d932e tests/pkg_libcose: increase timeout of autotest
On a microbit (nrf51) the autotest takes around 4 minutes to complete.
2018-12-13 10:04:30 +01:00
5c4698bfd8 tests/pkg_micro-ecc*: increase expect timeout
Otherwise the test takes too long on nrf51 based boards and fails:
- 80s on a microbit for tests/pkg_micro-ecc
- 120s on a microbit for tests/pkg_micro-ecc-with-hwrng
2018-12-13 10:00:51 +01:00
Leandro Lanzieri
4ce63d00ea
Merge pull request #10280 from fedepell/stk3700_arduino
boards/common/silabs: add Arduino API support for SiLabs boards
2018-12-12 09:51:13 +01:00
d8d9dd32bf tests/libfixmath_unittests: extend timeout in autotest
It can takes up to 640s to complete on microbit
2018-12-11 14:42:08 +01:00
Hauke Petersen
45698d95fa tests/events: blacklist boards for insuff. mem 2018-12-11 13:41:21 +01:00
Hauke Petersen
795699fed3 tests/events: use EVENT_QUEUE_INIT 2018-12-11 13:41:21 +01:00
Juan I Carrano
c644110bdb
Merge pull request #10573 from cladmi/pr/tests/compile_tests_in_docker
tests: compile-tests should only be executed in building machine
2018-12-10 15:46:23 +01:00
José Alamos
970bec1d1b
Merge pull request #10233 from miri64/gnrc_ipv6/enh/assume-no-preparsed-pkt
gnrc_ipv6: assume no preparsed packets
2018-12-10 14:21:17 +01:00
Gaëtan Harter
5a2609c573
Merge pull request #10439 from jcarrano/ensure-value
makefile/utils: Add a function for checking that a string is not empty.
2018-12-07 19:17:37 +01:00
Gaëtan Harter
9d252a883e tests/build_system_utils: add test for build system utilities
This will allow testing the build system 'utils' functions.
2018-12-07 18:19:38 +01:00
Gaëtan Harter
58bcde876a
tests/cortexm_common_ldscript: only execute compile-tests in docker
Without the protection, the host system also tries to execute the tests.
2018-12-07 17:41:57 +01:00
Gaëtan Harter
4dd6eb3e5b
tests/libc_newlib: only execute compile-test in docker
Without the protection, the host system also tries to execute the tests.
2018-12-07 17:41:57 +01:00
Gaëtan Harter
aea71dc309
tests/libc_newlib: verify the file exist before testing
If the file does not exist, because of concurrency issues, there is no
error. So verify it is there for good measures.
2018-12-07 17:41:57 +01:00
Martine Lenders
2b280f867e tests/gnrc_ipv6_ext: remove test for parsed packet reception 2018-12-06 16:22:31 +01:00
Hauke Petersen
92fcb4de6a
Merge pull request #10513 from miri64/gnrc_netif/enh/iid-conversion
gnrc_netif: add general IID to/from l2addr conversion functions
2018-12-06 15:57:06 +01:00
Martine Lenders
f757376fc6 tests/gnrc_sock_udp: mark arduino-atmega2560 for insufficient memory 2018-12-06 15:39:00 +01:00
Gaëtan Harter
1bc0bbb1a8
tests/xtimer_usleep: disable running test on native
The test randomly fails for unrelated PRs. Expecting real-time timing on
native is not really possible. Maybe it could be fixed but it currently
triggers many false positive.
2018-12-05 17:32:53 +01:00
Gaëtan Harter
1e7d72dea9
tests/xtimer_now64_continuity: disable running test on native
The test randomly fails for unrelated PRs. Expecting real-time timing on
native is not really possible. Maybe it could be fixed but it currently
triggers many false positive.
2018-12-05 17:31:12 +01:00
3e8c113c59 tests/periph_eeprom: cleanup + add auto tests for clear and set 2018-12-04 11:25:08 +01:00
f1d3d206c9 tests/periph_eeprom: add set command in shell 2018-12-04 11:24:57 +01:00
c95c1e4def tests/periph_eeprom: add clear and erase commands 2018-12-04 11:24:57 +01:00
90db0bf253
Merge pull request #10253 from kYc0o/pr/riot_hdr
sys: add riotboot_hdr module
2018-12-04 09:44:45 +01:00
1de4ae743a tests: exclude nrf51dk from big tests 2018-12-04 08:37:00 +01:00
Francisco Acosta
ffb1ba6e47 tests: add riotboot_hdr test
Unittest for riotboot_hdr submodule. If successful, it must
print 4 successful tests.
2018-12-04 00:01:42 +01:00
Martine Lenders
0c09a9ad8b
Merge pull request #10538 from smlng/pr/embunit
tests: adapt embunit TEST_ASSERT_EQUAL_STRING
2018-12-03 16:59:06 +01:00
Sebastian Meiling
a638b6c1ba tests: verify embunit TEST_ASSERT_EQUAL_STRING 2018-12-03 15:44:02 +01:00
Kevin "Bear Puncher" Weiss
f05852290a
Merge pull request #9236 from bergzand/pr/crypto/poly1305
crypto: Poly1305 implementation
2018-12-03 14:31:28 +01:00
Peter Kietzmann
c83493728a
Merge pull request #10435 from leandrolanzieri/pr/boards/sodaq_sara_r410m
boards/sodaq-sara-aff: Initial support
2018-12-03 14:11:34 +01:00
Marian Buschsieweke
003c04bd4c
Merge pull request #10012 from gschorcht/drivers_sht3x
drivers: sht3x temperature and humidity sensor
2018-12-03 10:43:16 +01:00
Leandro Lanzieri
d53fbb0045 boards/sodaq-sara-aff: Initial support 2018-12-03 10:05:37 +01:00
d5c527161d
test/crypto: Add tests for poly1305
Tests are based on the tests vectors provided in RFC 7539
2018-12-03 09:31:10 +01:00
Joakim Nohlgård
36e5b8ef23 usb-kw41z: NXP USB-KW41Z wireless IoT USB dongle 2018-12-01 13:51:55 +01:00
Sebastian Meiling
43d39b7a33
Merge pull request #8333 from samkumar/feature-condition-variable
core: condition variable implementation
2018-11-30 21:15:53 +01:00
Sam Kumar
fb8edbb610 core: condition variable implementation 2018-11-30 11:22:07 -08:00
Federico Pellegrin
e34d46e096 drivers/at: add function to read raw data bytes from modem 2018-11-30 14:59:00 +01:00
Juan I Carrano
77c9cc4041
Merge pull request #10219 from bergzand/pr/crypt/helper_add_wipe
crypto/helper: Add secure wipe function
2018-11-30 11:32:45 +01:00
b59bfd5554
Merge pull request #10505 from miri64/gnrc_mac/fix/header-includes
gnrc_mac: fix header includes
2018-11-29 22:02:46 +01:00
Sebastian Meiling
7913811a0f tests: board specific TIMER_SPEED in periph_timer
By default the periph_timer tests wants to init all timers with 1MHz,
which is not suitable for all timers, e.g. the atmega timers cannot
run at that speed to make the test work they need to be set to 250kHz.
2018-11-29 16:25:06 +01:00
Sebastian Meiling
739cb85830 tests: add README.md for periph_timer
Moving test description from code to a separate README.md file to reduce
binary size to make the test fit on an arduino-uno.
2018-11-29 16:24:51 +01:00
Kevin "Bear Puncher" Weiss
153759b926
Merge pull request #10498 from smlng/pr/adapt/7542
atmega: add periph_pwm (taken from #7542)
2018-11-29 15:54:51 +01:00
Martine Lenders
9d6a32b551 gnrc_mac: fix header includes
The inclusion of `net/gnrc.h` in `net/gnrc/mac/types.h` header makes it
impossible to include the `net/gnrc/netif.h` header within
`net/gnrc/netif/hdr.h`, due to `net/gnrc/mac/types.h` being included
with `net/gnrc/netif/mac.h` (which is included in `net/gnrc/netif.h`)
2018-11-29 12:39:34 +01:00
Victor Arino
8ff8aefb72 boards/arduino-atmega-common: support for PWM 2018-11-29 08:50:56 +01:00
Ken Bannister
ffa0c5b03c tests/gcoap: test NULL path in gcoap_req_init() 2018-11-28 13:26:04 -05:00
f9eebce43f
tests/qdsa: Move from unittests to regular tests
Stack size is changed from 4 times the default + printf to 5 times the
default stack size. Only on the lpc2387 this reduces the resulting stack
space. the test is not rerun for the lpc2387 and is untested.
2018-11-28 14:37:37 +01:00
Martine Lenders
85b9be71da
Merge pull request #10188 from smlng/pr/tests/pkg_cn-cbor
tests/cn-cbor: move from unittests to regular test
2018-11-27 23:51:11 +01:00
smlng
7b0a7db286 tests/cn-cbor: move from unittests to regular test
This moves tests for the cn-cbor package from unittests to a regular
test, which should help to decrease binary size of unittests.
2018-11-27 22:17:05 +01:00
smlng
618fd16699 tests/relic: move from unittests to regular test
This moves tests for the relic package from unittests to a regular
test, which should help to decrease binary size of unittests.
2018-11-27 20:41:26 +01:00
Juan I Carrano
050e06f20f
Merge pull request #10376 from cladmi/pr/crypto/ccm/const_input
crypto/modes/ccm: update api to const input buffers
2018-11-27 15:33:00 +01:00
Hauke Petersen
b603c298ef
Merge pull request #9156 from kb2ma/gcoap/use_opt_add_api
net/gcoap: Use nanocoap pkt/options API
2018-11-26 11:20:27 +01:00
Ken Bannister
424a01ddc1 net/gcoap: remove gcoap attributes from coap_pkt_t 2018-11-24 07:09:25 -05:00
Ken Bannister
f8e5b3dee3 net/gcoap: update tests for nanocoap options API 2018-11-24 07:09:25 -05:00
José Alamos
396f53c2a1
Merge pull request #10300 from miri64/tests/enh/gnrc_rpl_srh_unittests
unittests/tests-rpl_srh: various improvements
2018-11-23 13:48:16 +01:00
Martine Lenders
78164977d8
Merge pull request #10223 from kb2ma/nanocoap/string_opt_first_char
net/nanocoap: fix string option separator write handling
2018-11-22 16:43:45 +01:00
Ken Bannister
fa77929cc7 net/nanocoap: fix string option separator handling
Assumed initial character was a separator when writing the option,
and skipped over it.
2018-11-22 09:25:05 -05:00
José Alamos
1cb780ea26
Merge pull request #10447 from miri64/gnrc_pktbuf/feat/merge
gnrc_pktbuf: add gnrc_pktbuf_merge()
2018-11-22 13:58:14 +01:00
Tobias Heider
b4f7259a93 tests: add gnrc_pktbuf_merge() unittests 2018-11-22 11:13:33 +01:00
Schorcht
00cb786344 tests: add SHT3X sensor driver test application 2018-11-21 09:07:20 +01:00
1279697f9f tests/driver_mma8x5x: adapt README with type param removal 2018-11-20 10:42:14 +01:00
Martine Lenders
a63dec8074 unittests/gnrc_rpl_srh: make test constructor static 2018-11-20 09:32:32 +01:00
Gaëtan Harter
5c426f0fc9
tests-crypto-modes-ccm: change test inputs to const
Do required changes to have test inputs as const buffers.
2018-11-19 16:44:04 +01:00
Gaëtan Harter
3ca51d8b5d
tests-crypto/test-crypto.h: update api to const input buffers
Input buffers are not modified, so can be declared const arguments.
This will allow using `const` inputs for `modes/ccm` tests.
2018-11-19 16:44:04 +01:00
Gaëtan Harter
c87fe94ec1
crypto/modes/ccm: update api to const input buffers
Input buffers are not modified, so can be declared const arguments.
2018-11-19 16:44:04 +01:00
Kevin "Bear Puncher" Weiss
c7894d2bfc
Merge pull request #10385 from PeterKietzmann/pr_tests_puf_args
tests/puf_sram: add input args to automation script
2018-11-19 09:54:48 +01:00
ZetaR60
1b1d7b8b91
Merge pull request #10411 from cladmi/pr/eepreg/remove_features_required
tests/eepreg: remove duplicate FEATURES_REQUIRED
2018-11-17 15:18:45 -05:00
Martine Lenders
a0067b925d tests/unittests: provide tests for gnrc_pkt_len_upto() 2018-11-16 15:51:36 +01:00
Gaëtan Harter
195d51b92a
tests/eepreg: remove duplicate FEATURES_REQUIRED
The dependency from eepreg to FEATURES_REQUIRED is already defined in
`sys/Makefile.dep` so should not need to be duplicated in the
application Makefile.
2018-11-16 12:07:00 +01:00
josar
ccbb294f9d tests/xtimer_drift: increase priority of worker
When the slacker threads and the worker thread have the same priority
the drift and jitter depend on the workload.
Timer set before the worker thread will be fired before the worker and so
the result is not the timings the system might reach when proper priority
is set. Increasing the priority of the worker thread ensures that the
measureed timings are the achievable timings.
2018-11-15 12:36:02 +01:00
josar
82d126158e test/xtimer_hang: use xtimer_periodic_wakeup
When sleeping in the main function with xtimer_sleep not every percentage
will be printed as the sleep duration and the processing time added do
not result in full percentage values.

Using xtimer_periodic_wakeup ensures that every integer percentage is printed.
2018-11-15 12:14:09 +01:00
PeterKietzmann
0de38c2a6f tests/puf_sram: add input args to automation script 2018-11-14 13:34:41 +01:00
Gaëtan Harter
147390c209
tests/ccm: add test for auth_data_len upper value
Maximal supported value is 0xFEFF.
2018-11-12 16:38:45 +01:00
Federico Pellegrin
994999132a boards/common/silabs: add Arduino API support for SiLabs boards 2018-11-08 17:03:19 +01:00
730286903a
crypto/helper: Add test for crypto_secure_wipe
The test added for crypto_secure_wipe wipes a buffer with a secret in
it. Only the last byte is kept as it was. The last byte is used to check
that the function doesn't write outside the supplied buffer.
2018-11-07 18:27:10 +01:00
Cenk Gündoğan
df9e25353b test: trickle: fix condition for success
The current test implementation wrongly assumes that the diff between
two fired events (e1, e2) must always increase. That is not true, as
event e1 may reside on the upper part of [I/2, I) and e2 on the lower
part of [I, 2*I).

This commit fixes the test to look at the actual time that was randonmly
chosen from both intervals (t1, t2). Given that the intervals are
doubled, t1 must always be smaller than t2.
2018-11-05 16:58:54 +01:00
Francisco Acosta
dd3ca90e8a examples, tests: add memory insufficient arduino boards
The unification of a bigger stack for the atmega platforms
makes some boards to not have enough memory to provide
the big stack plus the application code.

It is possible though, to override the stack size to a
smaller amount if running the test is necessary.
2018-11-02 17:57:13 +01:00
MichelRottleuthner
1606e16879
Merge pull request #10174 from Josar/pr/xtimer_hang/debug_pins
test/xtimer_hang: DEBUG_PINS
2018-11-01 10:20:06 +01:00
josar
162d17c5a2 test/xtimer_hang: DEBUG_PINS
Add the option to use debug pins to investigate timing issues.
2018-10-31 12:41:43 +01:00
Cenk Gündoğan
f30d0a68d8
Merge pull request #10305 from jia200x/pr/fix_my9221_test
tests/driver_my9221: fix for loop indexes
2018-10-31 11:59:14 +01:00
Jose Alamos
b543f2dc67 tests/driver_my9221: fix for loop indexes 2018-10-31 10:59:51 +01:00
Emmanuel Baccelli
365d82ed09
Merge pull request #9829 from OTAkeys/pr/uuid_string
uuid: add uuid_to_string() and uuid_from_string()
2018-10-30 14:30:47 +01:00
Martine Lenders
17738d7dd4 unittests/tests-rpl_srh: rename to tests-gnrc_rpl_srh 2018-10-30 12:41:45 +01:00
Martine Lenders
fb4689290d unittests/tests-rpl_srh: add failure tests 2018-10-30 12:41:40 +01:00
Martine Lenders
c7b90aab81 unittests/tests-rpl_srh: factor-out pointer initialization 2018-10-30 12:26:15 +01:00
Martine Lenders
54a8caf0cd unittests/tests-rpl_srh: reorder stack vars where appropriately
Also make constants static const ;-).
2018-10-30 12:16:38 +01:00
Martine Lenders
e56c6188ae unittests/tests-rpl_srh: move buffers out of function context
Things like this already lead to problems in other unittests, so move
them out of the stack.
2018-10-30 12:14:47 +01:00
Joakim Nohlgård
21efb20184
Merge pull request #9725 from miri64/tests/enh/pkg_cmsis-dsp-testscript
tests/pkg_cmsis-dsp: provide testscript
2018-10-27 02:39:32 +02:00
Martine Lenders
d6ea335bfc unittests: add tests for gnrc_pktbuf_reverse_snips() 2018-10-25 23:11:33 +02:00
Martine Lenders
959e4491fa
Merge pull request #9702 from maribu/phydat_fit
sys/phydat: New phydat_fit API
2018-10-25 19:16:54 +02:00
Martine Lenders
466bc341a6
Merge pull request #10231 from miri64/gnrc_ipv6_ext/enh/move-rh-to-gnrc
gnrc_ipv6_ext: move ipv6_ext_rh (partly) to GNRC
2018-10-25 19:15:22 +02:00
danpetry
99ae495226
Merge pull request #10011 from leandrolanzieri/pr/drivers/ds18
drivers/ds18: Add Maxim Integrated 1-Wire temperature sensor driver
2018-10-25 17:26:10 +02:00
Gaëtan Harter
c5deac4865
Merge pull request #10023 from miri64/gnrc_netif/fix/no-addr-but-addr-len
gnrc_netif: Fix l2addr_len > 0, but no l2addr edge-case
2018-10-25 14:31:32 +02:00
Martine Lenders
390ddfba7c tests/unittests: adapt for value name changes 2018-10-25 14:02:46 +02:00
Gaëtan Harter
40187e81fa
Merge pull request #10184 from bergzand/pr/tests/tweetnacl_move
tests/tweetnacl: Move from unittests to regular test
2018-10-25 12:27:16 +02:00
José Alamos
059ef5c437
Merge pull request #10201 from MrKevinWeiss/pr/tests/fixlibfixmath
tests/libfixmath: Add delay at start of test
2018-10-25 11:06:37 +02:00
MrKevinWeiss
646c6d67c0 tests/libfixmath: Add delay at start of test
The delay allows allows time for the `make term` to connect and start flushing the output buffer before the buffer overflows.
2018-10-24 17:27:30 +02:00
137e4825ed
tests/tweetnacl: Move from unittests to regular test
Stack size is changed from 4 times the default + printf to 5 times the
default stack size. Only on the lpc2387 this reduces the resulting stack
space. the test is not rerun for the lpc2387 and is untested.

Tests are disable for the Arduino. While they "might" work, it takes
around 8 minutes to complete the tests.
2018-10-24 16:56:32 +02:00
Frits Kuipers
8b8790c18f drivers/ds18: Add Maxim Integrated ds18 driver
tests/driver_ds18: Add test application for DS18B20 sensor.

tests/driver_ds18: Add whitelist of boards
2018-10-24 16:02:05 +02:00
José Alamos
ea219c3eba
Merge pull request #10217 from cladmi/pr/tests/heatshrink/ci
tests/pkg_heatshrink: re-enable CI test
2018-10-24 13:56:16 +02:00
Marian Buschsieweke
fe46cae00d
sys/phydat: New phydat_fit API
The current phydat_fit implementation the following limitations:
- The API is way more complicated to use than needed
- It doesn't perform any rounding
- It uses `long` in a place where actual width (or better range) of the type
  is pretty important.

This commit addresses these limitations and uses lookup-tables to reduce the
number of divisions required.

Before this commit code using it looked like this:
``` C
long values[] = { 100000, 2000000, 30000000 };
phydat_t dat = { .scale = 42, .unit = UNIT_V };
phydat_fit(&dat, values[0], 0, phydat_fit(&dat, values[1], 1, phydat_fit(&dat, values[2], 2, 0)));
```

Now it can be used like this:
``` C
int32_t values[] = { 100000, 2000000, 30000000 };
phydat_t dat = { .unit = UNIT_V, .scale = 42 };
phydat_fit(&dat, values, 3);
```
2018-10-24 13:05:51 +02:00
Gaëtan Harter
f160a75aa5
Merge pull request #10209 from bergzand/pr/pkg/hacl_move
tests/hacl: Move from unittests to regular test
2018-10-23 18:32:27 +02:00
Martine Lenders
3068fb8aed
Merge pull request #9034 from cladmi/pr/tests/pkg_micro-ecc/blacklist/wsn430
tests/pkg_micro-ecc: blacklist wsn430 boards
2018-10-23 18:17:44 +02:00
052fea24aa
tests/hacl: Move from unittests to regular test 2018-10-23 17:46:13 +02:00