60c922df1a
tests/memarray: allow overridable macros and print them
...
MAX_NUMBER_BLOCKS and NUMBER_OF_TESTS can be overriden via CFLAGS
2019-11-28 08:47:57 +01:00
f885b90bd9
tests/ps_schedstatistics: improve automatic test script
...
- Ensure the whole ps output is displayed in the terminal before exiting the script
- Escape parenthesis in line regexp
2019-11-28 08:31:11 +01:00
c9fccbc34d
tests/ps_schedstatistics: use lower load in background threads
...
On slow platforms, such as AVR, the main thread could never run and the shell would remain stuck.
2019-11-28 08:05:00 +01:00
15d58760a9
Merge pull request #12822 from fjmolinas/pr_fix_eol
...
tests: fix tests matching varied sized group regex
2019-11-28 08:01:30 +01:00
benpicco
7c9f2e1794
Merge pull request #12791 from maribu/test_isr_yield_higher
...
tests/isr_yield_higher: Make use of US_PER_MS
2019-11-27 23:21:12 +01:00
chudov
0a151a78da
boards/derfmega*: initial support
2019-11-27 20:53:14 +01:00
1271274964
Merge pull request #12824 from fjmolinas/pr_pexpect_doc
...
tests/README: add automated tests guidelines
2019-11-27 18:52:09 +01:00
Francisco Molina
264b323c66
tests/README: add automated tests guidelines
2019-11-27 15:26:08 +01:00
Francisco Molina
175c48f8d4
tests/gnrc_ndp: add z1 to insufficient memory
2019-11-27 15:07:43 +01:00
Francisco Molina
0996fb87fd
tests: insufficient mem. atmega328p based boards
...
- When using test_interactive_sync_utils, stdin and many more
prints/puts are included. These all go into .bss/.data which
quickly fills up RAM.
2019-11-27 15:07:43 +01:00
Francisco Molina
34c6063520
tests/README.md: add automated test guideline
2019-11-27 15:07:43 +01:00
Francisco Molina
416c048737
tests: add test_utils_interactive_sync when possible
...
- Define test_utils_interactive_sync as DEFAULT_MODULE in Makefile.tests_common
- For tests disabling autoinit, add test_utils_interactive_sync to main
- Add DISABLE_MODULE += test_utils_interactive_sync for tests requiring
sudo, `tests/shell`, `tests/minimal` and `tests/stdin`
- Add shell_commands to tests/periph_wdt and tests/struct_tm_utility to
pull `r` and `s` commands
- Remove includes and usage in `tests/main.c` for tests that where
already using test_utils_interactive_sync
2019-11-27 15:07:42 +01:00
Francisco Molina
3db9eab6d9
tests: expect match \r\n or \s
...
- Since `printf()` is buffered it might not arrive in a single
read to pexpect. Regex which terminate in a group match might
match only some elements, this might break tests that depend
on exact group matching.
2019-11-27 14:12:12 +01:00
Jannes
675bb0fe57
tests/conn_can: Edit README
2019-11-27 13:35:57 +01:00
fb8428cb6d
tests/malloc: fix test regexp to consider whole line
2019-11-27 10:41:33 +01:00
Bas Stottelaar
05bdab80e0
tests: minimal: use stdio_null
2019-11-26 21:12:41 +01:00
561daaab81
tests/malloc: reduce defaut chunk size
...
This allows to automatically run the test on very constrained platforms such as arduino-uno (2KB RAM)
2019-11-26 15:21:47 +01:00
bcf39adb36
tests/periph_cpuid: fix test script regex
2019-11-26 12:54:06 +01:00
Marian Buschsieweke
b12292603b
Merge pull request #12797 from maribu/tests_micro-ecc
...
tests/pkg_micro-ecc: Cleanup and AVR fixes
2019-11-25 17:57:27 +01:00
Marian Buschsieweke
0bb31590e6
tests/pkg_micro-ecc: Cleanup and AVR fixes
...
- Moved huge allocations from stack to data / bss
- Increased verbosity of messages (one line per round)
- Adapted test script to new output format
2019-11-25 16:36:23 +01:00
benpicco
a21fe4ae87
Merge pull request #12259 from daexel/dcf77
...
drivers/dcf77:Inital Support DCF77
2019-11-25 16:20:51 +01:00
d0d6e53ff4
Merge pull request #11960 from fjmolinas/pr_msp430_flashpage_raw
...
cpu/msp430_common: add flashpage_raw
2019-11-25 12:48:48 +01:00
Benjamin Valentin
0da8c8f094
tests/puf_sram: add newline in printf
...
puts() will already print the newline itself, but for printf()
we'll have to include it manually.
2019-11-25 02:08:59 +01:00
Benjamin Valentin
fc94abfadb
tests/driver_ws281x: use color_rgb_set_brightness()
...
Use function from color.h to manipulate the brightness of the LEDs.
2019-11-24 23:28:18 +01:00
Francisco Molina
1abeb21bce
tests/mtd_flashpage: adapt test for msp430
...
- msp430 holds the ISR vector in the last page, avoid
erasing that page during test.
2019-11-24 13:19:20 +01:00
Francisco Molina
0a68323570
tests/periph_flashpage: use before last page for msp430
...
- msp430 holds the isr vector on the last page so avoid erasing
that page when testing.
2019-11-24 13:19:20 +01:00
fjmolinas
f0bbcef987
drivers/mtd_flashpage: add 16bit compatibility
2019-11-24 13:19:19 +01:00
fjmolinas
b9b01ac57e
tests/periph_flashpage: adapt to 16 bits msp430
2019-11-24 13:19:19 +01:00
90d2e6ac8b
tests/unittests: fix typos
2019-11-23 22:39:37 +01:00
1d15fc5ddd
tests/thread_priority_inversion: fix typos
2019-11-23 22:39:37 +01:00
ab7c0c941c
tests/sys_irq_handler: fix typos
2019-11-23 22:39:37 +01:00
243ee05bee
tests/pthread_tls: fix typos
2019-11-23 22:39:37 +01:00
5df7c9ea59
tests/ps_schedstatistics: fix typos
2019-11-23 22:39:37 +01:00
6158da2ade
tests/pkg_ucglib: fix typos
2019-11-23 22:39:37 +01:00
21b978259f
tests/pkg_u8g2: fix typos
2019-11-23 22:39:36 +01:00
762eafcd75
tests/pkg_tinycrypt: fix typos
2019-11-23 22:39:36 +01:00
5120719789
tests/pkg_tiny-asn1: fix typos
2019-11-23 22:39:36 +01:00
e1a8188f00
tests/lua_loader: fix typos
2019-11-23 22:39:36 +01:00
9f2884acb3
tests/libc_newlib: fix typos
2019-11-23 22:39:36 +01:00
2e48e1cab1
tests/float: fix typos
2019-11-23 22:39:36 +01:00
e78cf493bc
tests/driver_lc709203f: fix typos
2019-11-23 22:39:36 +01:00
d3810708a8
tests/driver_io1_xplained: fix typos
2019-11-23 22:39:36 +01:00
09999a29eb
tests/driver_dsp0401: fix typos
2019-11-23 22:39:36 +01:00
1254fe5a23
tests/cortexm_common_ldscript: fix typos
2019-11-23 22:39:36 +01:00
fec66ab5ae
tests/bench_timers: fix typos
2019-11-23 22:39:36 +01:00
Francois Berder
4a31f94cfc
many typo fixes
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Marian Buschsieweke
ab94b7c8ad
Merge pull request #12795 from aabadie/pr/tests/pkg_jsmn_cleanup
...
tests/pkg_jsmn: replace use of "%.*s" string formatter
2019-11-23 22:00:20 +01:00
d75650737b
tests/pkg_jsmn: don't use '%.*s' string formatter
...
This is not compatible with avr-libc
2019-11-23 20:57:19 +01:00
9af59196da
tests/pkg_jsmn: use kernel define ARRAY_SIZE macro
2019-11-23 15:08:59 +01:00
a081fb693d
tests/pipe: cleanup application
...
The string formatter initially used doesn't seem to be supported by the AVR toolchain. Correctly closing the buffer with a null byte and using plain %s formatter works in all cases
2019-11-23 15:06:54 +01:00
benpicco
d244b0fe59
Merge pull request #12787 from gschorcht/cpu/esp32/netdev_default
...
cpu/esp*: define esp_now as default netdev
2019-11-23 14:59:54 +01:00
Gunar Schorcht
500c5f45f3
tests/netstat_l2: add esp8266 boards to BOARD_PROVIDES_NETIF
2019-11-23 14:26:37 +01:00
1f55cffcee
Merge pull request #12645 from aabadie/pr/tests/sys_crypto_remove_board_blacklist
...
tests/sys_crypto: remove use of BOARD_BLACKLIST variable
2019-11-23 06:48:29 +01:00
8a76acf060
Merge pull request #12706 from fjmolinas/pr_fix_flake8
...
RIOT: fix PEP8 errors
2019-11-23 06:47:34 +01:00
Marian Buschsieweke
16ee7aed32
Merge pull request #11350 from maribu/ina2xx
...
drivers/ina220: Changed to comply with RIOT's driver design goals & SAUL adaption
2019-11-22 23:36:50 +01:00
Marian Buschsieweke
235fc60938
tests/isr_yield_higher: Make use of US_PER_MS
2019-11-22 23:29:13 +01:00
benpicco
d86ca37ed9
Merge pull request #12759 from miri64/bitfield/fix/bitorder
...
bitfield: unify order
2019-11-22 22:37:39 +01:00
benpicco
09f647eee2
Merge pull request #12693 from maribu/neopixel-atmega
...
drivers: Added WS281x RGB LED driver for ATmega platform
2019-11-22 22:36:36 +01:00
Marian Buschsieweke
a6476bd813
drivers/ina2xx: Match RIOT's driver design goals
...
- Use standard RIOT style `ina2xx_params_t` on initialization as explained in
[1] instead of a custom API
- Provided a default configuration via `ina2xx_params_t` as required by [1] that
works fine for the INA219 breakout board and with an optimal resolution that
still covers the whole range of USB high-power devices (500 mA @ 5V) with a
comfortable safe margin.
- Changed initialization procedure to include a device reset and connectivity
test, as required by [1]
- The calibration value is now calculated by the driver
- This simplifies using the driver a lot
- The user can still choose a trade-off between range and resolution that
matches the application requirements, but now among predefined values
- This allows the driver to easily convert the raw data into meaningful
physical data, as the resolution of the raw data is known
- All measurements are provided as meaningful physical data as required by [1]
[1]: https://github.com/RIOT-OS/RIOT/wiki/Guide:-Writing-a-device-driver-in-RIOT
2019-11-22 20:28:57 +01:00
Marian Buschsieweke
f424421f79
drivers: Renamed ina220 --> ina2xx
...
The INA219 has the exact same interface as the INA220 (including values and
semantics of the configuration register). Thus, this driver can be used for
both. The ina220 has been renamed to ina2xx to reflect this and pseudo modules
for the ina220 and ina219 have been added.
2019-11-22 19:53:51 +01:00
d9ca9f3ef2
tests/crypto: remove useless BOARD_BLACKLIST
2019-11-22 19:21:06 +01:00
608fee8852
tests/crypto: add new 8/16 bit boards to insufficient memory
2019-11-22 19:21:05 +01:00
2d9612b116
tests/sys_crypto: exclude some test for 8 and 16 bit arch
...
The tests doesn't work when length_encoding is above the maximum uint16
value.
Also add a set that checks the right error code is returned with too
small length_encoding.
2019-11-22 19:21:05 +01:00
Marian Buschsieweke
16ef0a7f30
Merge pull request #8383 from haukepetersen/opt_driver_bmx280spi
...
drivers/bmx280: reworked driver and added SPI mode
2019-11-22 17:06:12 +01:00
c7cd3d869e
Merge pull request #12180 from gschorcht/sys/arduino/lib
...
sys/arduino: Using Arduino libraries
2019-11-22 15:29:52 +01:00
49e8c736d9
Merge pull request #12765 from fjmolinas/pr_improvee_pthread_barier
...
tests/pthread_barrier: improve test script
2019-11-22 14:32:12 +01:00
Hauke Petersen
5e51030eab
tests/driver_bmx280: add Makefile.ci
2019-11-22 14:04:38 +01:00
Hauke Petersen
c83e197676
tests/driver_bmx280: adapted to driver rework
...
functional changes:
- enable test to test the driver in SPI mode
style changes and code simplification:
- enable SPI mode
- fixed typos in doxygen
- fixed line length issues
- simplified code
- use fmt for formatting numbers
- use US_PER_SEC instead of magic value
- use named return values provided by driver
- use puts where ever applicable
2019-11-22 14:04:37 +01:00
Gunar Schorcht
e90dd16347
tests/ssp: warning stringop-overflow has to be disabled
...
Newer gcc versions have an option to enable overflow warnings for string operations. This option is enabled by default. For this test, it is necessary to disable this warning if the compiler supports this option.
2019-11-22 13:56:41 +01:00
Gunar Schorcht
74c0cc3878
tests/ssp: prevent that memset is optimized out
2019-11-22 13:56:41 +01:00
Gunar Schorcht
eb47f1c537
tests/sys_arduino_lib: demo the use of Arduino library
...
This test application defines a packages which imports a very simple Arduino library that is used by test application to demonstrate how an Arduino library can be imported as package and used by an application.
2019-11-22 13:26:35 +01:00
Francisco Molina
4a2644da91
flake8: fix PEP8 F632 use ==/!=
2019-11-22 11:47:49 +01:00
Francisco Molina
41e9f06b85
flake8: fix PEP8 W608 invalid escape sequence
2019-11-22 11:47:49 +01:00
Francisco Molina
1ff9f7f631
tests/pthread_barrier: improve test script
...
Add intermediate child.expect to avoid timeout on platforms
where time between `start` and `done` is a little over 10s.
2019-11-22 11:19:52 +01:00
Michel Gerlach
2a14b6ceb8
Drivers/DCF77:First implementation
2019-11-22 10:27:01 +01:00
Gunar Schorcht
a05027cdba
Merge pull request #12523 from aabadie/pr/sys/arduino_pwm
...
sys/arduino: add implementation for analogWrite
2019-11-21 15:08:10 +01:00
Martine S. Lenders
27510b72f8
tests/unittests: add tests for missing bitfield functions
2019-11-21 12:38:31 +01:00
Martine S. Lenders
880a68c11f
tests/unittests: fix existing bitfield tests for new bit-order
2019-11-21 11:43:31 +01:00
Francisco Molina
2202b71f99
flake8: fix PEP8 overidentation E127
2019-11-21 10:11:56 +01:00
07f7ac5829
tests/pkg_libfixmath: refactor test and automatic script
...
Print the range of iterations for each subtests and catch the value in the Python script. The number of iterations is reduced on boards that are not native, this is because this test takes a lot of time on slow platforms
2019-11-20 22:27:41 +01:00
326f5f1d12
tests/pkg_libfixmath: fix PEP8 issues
2019-11-20 22:27:41 +01:00
19917f18b7
tests/libfixmath*: rename test applications
...
Use pkg_ prefix to have a consistent name with other pkg tests applications
2019-11-20 22:27:41 +01:00
e4bea426d5
tests/libfixmath_unittests: remove useless BOARD_BLACKLIST
...
The implementation of libfixmath is not compatible with architecture smaller than 32bit
2019-11-20 22:27:41 +01:00
benpicco
c4d905f518
Merge pull request #12668 from herjulf/avr-rss2-PR
...
Adding: boards/avr-rss2 and AtMega256RFR2 based board See doc.txt for details.
2019-11-20 20:10:04 +01:00
Robert Olsson
c903bc8c1b
boards/avr-rss2: add AtMega256RFR2 based board
...
Co-Authored-By: benpicco <benpicco@googlemail.com>
Support: Alexandre Abadie aabadie, Marian Buschsieweke maribu, Martine Lenders miri64
2019-11-20 11:57:02 +01:00
070c6603a0
tests/malloc: add Python script for automatic test
2019-11-20 06:50:34 +01:00
254f6ff9f9
tests/malloc: cleanup in test application
...
The idea is not fill the memory on the computer running a native instance and to be able to test on hardware. The test application is reworked similarly as the memarray test application. Macro are now overridable and printed at the beginnined of the test: this allows easier automatic testing
2019-11-20 06:44:30 +01:00
benpicco
cfcbb76cd2
Merge pull request #12729 from maribu/atmega1284p
...
boards/atmega1284p: Add ATmega1284P as board
2019-11-19 23:18:31 +01:00
Marian Buschsieweke
277bf803f8
tests/sys_crypto: Blacklist atmega1284p
2019-11-19 09:32:20 +01:00
Marian Buschsieweke
7c1f35daa4
tests/libfixmath_unittests: Blacklist atmega1284p
2019-11-18 23:50:54 +01:00
Marian Buschsieweke
74db50032f
tests: Added test for the ws281x driver
2019-11-18 22:45:40 +01:00
3091de3a50
tests/blob: add test application for blob.inc.mk
2019-11-18 17:53:48 +01:00
Marian Buschsieweke
edb03cceb7
tests: Added atmega1284p to Makefile.ci
...
Added the ATmega1284P on a breadboard to the Makefile.ci for tests that
require more RAM/ROM than provided.
2019-11-18 00:08:01 +01:00
1d20e9e1bb
tests/driver_pca9685: remove useless BOARD_BLACKLIST
...
The efm32 arch is blacklisted at driver dependency level.
2019-11-16 14:16:27 +01:00
550bd160ae
Merge pull request #12719 from aabadie/pr/pkg/spiffs_msp430
...
tests/pkg_spiffs: exclude msp430 boards because of missing memory
2019-11-15 20:42:20 +01:00
2f5f69e23a
tests/pkg_spiffs: exclude msp430 boards because missing memory
...
The build fails during link because of insufficient memory. No need to use BOARD_BLACKLIST for msp430 based boards
2019-11-15 19:11:37 +01:00
c3a647f15e
tests/pkg_semtech-loramac: remove useless BOARD_BLACKLIST
...
msp430 architecture is blacklisted at package level. pic32-clicker/wifire boards doesn't provided the some required features (SPI, GPIO_IRQ)
2019-11-15 18:14:25 +01:00
779e25bc7d
tests/sys_arduino_analog: add test application
...
The goal of this application is to test the analogRead and analogWrite Arduino function
2019-11-15 17:51:45 +01:00
Leandro Lanzieri
a78354c271
tests/unittests/ipv6_addr: Add tests for ipv6_addr_split_prefix
2019-11-15 14:35:30 +01:00
Leandro Lanzieri
b5930af760
tests/unittests/ipv6_addr: Add tests for ipv6_addr_split_iface
2019-11-15 14:35:30 +01:00
Leandro Lanzieri
ad4fc4b76e
tests/nanocoap_cli: Adapt to change in ipv6_addr_split_iface
2019-11-15 14:35:30 +01:00
Leandro Lanzieri
e64d327ea8
tests/gnrc_udp: Adapt to change in ipv6_addr_split_iface
2019-11-15 14:35:30 +01:00
Leandro Lanzieri
c3a02d86df
tests/gnrc_ipv6_ext_frag: Adapt to change in ipv6_addr_split_iface
2019-11-15 14:35:30 +01:00
Marian Buschsieweke
8854255d7a
tests/bitarithm_timings: Fix use of volatile
...
The tests used the volatile qualifier for two this:
1. Prevent the compiler to optimize out calls to the inline-able functions
bitarithm_msb, bitarithm_lsb, bitarithm_bits_set
2. Communication between IRQ context and thread context
While the first use is valid, the second is dangerous, see [1], [2], [3], [4].
This commit replaces the second use with C11 atomics, which were explicitly
added to the C standard to address this use case.
[1]: https://www.kernel.org/doc/html/latest/process/volatile-considered-harmful.html
[2]: http://c.isvolatileusefulwiththreads.com/
[3]: https://web.archive.org/web/20181124154026/http://software.intel.com/en-us/blogs/2007/11/30/volatile-almost-useless-for-multi-threaded-programming/
[4]: https://blog.regehr.org/archives/28
2019-11-15 09:22:18 +01:00
Marian Buschsieweke
a1be610c9d
tests/bitarithm_timings: Fixed hang
...
Prevent bitarithm_lsb() from being called with 0, as it loops forever then
2019-11-15 09:21:24 +01:00
Francisco
2adc5a23c2
Merge pull request #12361 from haukepetersen/add_nimble_autoconn
...
pkg/nimble: add simple BLE connection manager: autoconn
2019-11-14 14:02:24 +01:00
Kevin "Tristate Tom" Weiss
57e791fcc9
Merge pull request #12705 from fjmolinas/pr_fix_periph_timer_frdmk64f
...
tests/periph_timer: add frdm-k64f/k22f to 32kHz timers
2019-11-14 11:38:43 +01:00
Francisco Molina
f851a40098
tests/periph_timer: 32Khz as timer speed for frdm-k%f
2019-11-14 10:42:34 +01:00
Hauke Petersen
28acb901ab
tests: add nimble_autoconn_ccnl test
2019-11-13 12:59:35 +01:00
Hauke Petersen
046c6f3e8e
tests: add nimble_autoconn_gnrc test
2019-11-13 12:59:35 +01:00
Hauke Petersen
a49dada291
tests: add test for qmc5883l driver
2019-11-13 12:56:26 +01:00
a42bdaeecd
Merge pull request #12694 from miri64/tests/enh/periph_cpuid
...
tests/periph_cpuid: read CPUID_LEN from app instead of environment
2019-11-12 19:57:22 +01:00
Martine Lenders
b5465402b5
Merge pull request #12678 from miri64/tests/enh/gnrc_sock+gnrc_neterr
...
tests: add a simple proof of concept test for gnrc_sock + gnrc_neterr
2019-11-12 19:29:02 +01:00
Martine S. Lenders
06f26146d0
tests/periph_cpuid: check if correct number of bytes was printed
2019-11-12 19:24:09 +01:00
Martine S. Lenders
a33857bf29
tests/periph_cpuid: read CPUID_LEN from app instead of environment
2019-11-12 19:24:09 +01:00
Martine Lenders
6b50db1713
tests: add a simple proof of concept test for gnrc_sock + gnrc_neterr
2019-11-12 11:45:08 +01:00
Martine S. Lenders
2f0187e076
tests/periph_cpuid: print CPUID_LEN
2019-11-12 10:42:23 +01:00
9b02b9d042
tests/periph_cpuid: add automatic test script
2019-11-11 21:18:13 +01:00
774a19621b
tests/pkg_lora-serialization: fix C-style comments
2019-11-11 17:31:49 +01:00
7e7c49a109
tests/pkg_lora-serialization: fix test 02 on AVR
2019-11-11 17:31:22 +01:00
benpicco
9ca9f07c04
Merge pull request #12592 from benpicco/luid-fix
...
sys/luid: add luid_get_eui48() / luid_get_eui64()
2019-11-07 18:34:37 +01:00
José Alamos
20ea18637f
Merge pull request #10485 from miri64/gnrc_netif/enh/default-init
...
gnrc_netif: assume `netif->ops->init()` to be set to at least a default
2019-11-07 11:41:05 +01:00
Martine Lenders
8eee53b7bd
tests/gnrc_ipv6_ext_frag: add bl*pill to BOARD_INSUFFICIENT_MEMORY
2019-11-07 11:04:58 +01:00
Martine Lenders
14a2f6bc18
gnrc: use gnrc_netif_default_init() for all implementations
2019-11-07 11:00:36 +01:00
Martine Lenders
a1d402e015
Merge pull request #12559 from miri64/gnrc_sixlowpan_frag/enh/factor-out-frag-buf
...
gnrc_sixlowpan_frag: factor-out and rename fragmentation buffer
2019-11-07 09:47:46 +01:00
d5da6a7ac3
examples: tests: make use of DEVELHELP consistent
2019-11-06 16:31:53 +01:00
bd39ce3179
tests/periph_gpio: increase timeout for automatic test
...
periph_gpio requires more time to complete on slow platforms, like AVR
2019-11-06 12:46:28 +01:00
cab3cc473e
tests/periph_timer: add atmega256rfr2-xpro to boards with 25KHz timer
2019-11-06 12:46:28 +01:00
benpicco
035bac0bf4
Merge pull request #12639 from aabadie/pr/boards/atmega256rfr2
...
boards/atmega256rfr2-xpro: initial support
2019-11-05 19:03:49 +01:00
Marian Buschsieweke
4d279ae76e
Merge pull request #12055 from fabian18/driver-ina3221
...
Driver for INA3221 current and power and bus voltage monitor
2019-11-05 14:45:03 +01:00
benpicco
2390d494a9
Merge pull request #12640 from benpicco/rtc_tm_compare
...
periph_common/rtc: add rtc_tm_compare()
2019-11-05 13:20:49 +01:00
Benjamin Valentin
24ae298115
unittests: add rtc_tm_compare() to unittest
2019-11-05 12:52:45 +01:00
fabian18
5311de7131
tests/driver_ina3221: Test for INA3221
2019-11-05 12:33:06 +01:00
602f9d7f9c
tests: exclude atmega256rfr2-xpro where required
2019-11-05 10:40:59 +01:00
bf1b6b6f9c
tests/nhdp: remove useless BOARD_BLACKLIST
...
The corresponding arch features are blacklisted in oonf_api package which is a dependency of nhdp
2019-11-05 09:47:25 +01:00
e1db54c20a
tests/pkg_ubasic: remove useless BOARD_BLACKLIST
...
The corresponding arch features are blacklisted at package level
2019-11-05 08:45:12 +01:00
3b42755d84
tests/driver_sht2x: cleanup how required features are set
2019-11-05 07:59:57 +01:00
33982a965d
tests/Makefile.tests_common: fix indent
2019-11-05 07:59:57 +01:00
49f1f4a9e0
tests: don't define APPLICATION in application Makefile
...
The right way is to include the common test Makefile where the application is automatically defined.
2019-11-05 07:59:57 +01:00
Benjamin Valentin
7b60214d94
unittests: add test for luid module
2019-11-04 21:08:33 +01:00
Martine Lenders
8c3dc66ad8
gnrc_sixlowpan_frag: factor-out and rename fragmentation buffer
...
The name `fragment_msg` or `frag_msg`/`msg_frag` always to me was a bit
misplaced, as it basically implements an asynchronous fragmentation
buffer and doesn't necessarily have anything to do with messages.
This change
1. changes the name to `fb` (for fragmentation buffer)
2. factors its code out to its own sub-module so it can be re-used by
other 6LoWPAN fragmentation schemes like [Selective Fragment
Recovery]
[Selective Fragment Recovery]: https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-05
2019-11-04 20:04:37 +01:00
b8b7606a7c
Merge pull request #12608 from aabadie/pr/pkg/hacl_arch_32bit
...
pkg: tests: handle arch requirements at pkg level, remove useless board blacklist
2019-11-04 15:20:03 +01:00
benpicco
865059fc66
Merge pull request #11230 from maribu/xtimer_msg_deps
...
sys/xtimer: Remove dependency to core_msg
2019-11-01 15:22:10 +01:00
Marian Buschsieweke
2c3712d55d
tests/xtimer_hang: Disabled module core_msg
...
Enforce that xtimer is usable without module core_msg
2019-10-31 19:55:50 +01:00
Martine Lenders
bf5b53392c
Merge pull request #12603 from jia200x/pr/link_up
...
netopt: redefine NETOPT_LINK_CONNECTED
2019-10-30 15:19:07 +01:00
Jose Alamos
f77eba2e53
gnrc_ipv6_ext_frag: add board to insufficient memory list
2019-10-30 14:23:34 +01:00
7a83364419
tests/pkg_micro-ecc: remove useless board blacklist
...
This is now automatically managed by the arch 16bit feature blacklist at pkg dependencies level
2019-10-30 11:43:41 +01:00
3a1a08fc4a
tests/pkg_qdsa: remove useless board blacklist
...
This is now automatically managed by the arch 16bit feature blacklist at pkg dependencies level
2019-10-30 11:43:40 +01:00
9a2f29ed83
tests/pkg_libhydrogen: remove useless board blacklist
...
This is now automatically managed by the arch 32 feature requirement at pkg dependencies level
2019-10-30 11:43:40 +01:00
2cb3ab5b78
tests/pkg_tinycbor: remove useless board blacklist
...
This is now automatically managed by the arch 32 feature requirement at pkg dependencies level
2019-10-30 11:43:40 +01:00
e40214f221
tests/pkg_monocypher: remove useless board blacklist
...
This is now automatically managed by the arch 32 feature requirement at pkg dependencies level
2019-10-30 11:43:40 +01:00
c7acc5f31b
tests/pkg_libcose: remove useless board blacklist
...
This is now automatically managed by the arch 32 feature requirement at pkg dependencies level
2019-10-30 11:43:40 +01:00
49f855bd81
tests/pkg_libcoap: remove useless board blacklist
...
This is now automatically managed by the arch 32 feature requirement at pkg dependencies level
2019-10-30 11:43:39 +01:00
0654709246
tests/pkg_hacl: remove useless board blacklist
...
This is now automatically managed by the arch 32 feature requirement at pkg dependencies level
2019-10-30 11:43:39 +01:00
b044e46207
tests/pkg_cn-cbor: remove useless board blacklist
...
This is now automatically managed by the arch 32 feature requirement at pkg dependencies level
2019-10-30 11:43:39 +01:00
e61378781f
tests/pkg_cifra: remove useless board blacklist
...
This is now automatically managed by the arch 32 feature requirement at pkg dependencies level
2019-10-30 11:43:38 +01:00
3440ecf706
tests/pkg_wolf*: remove useless board blacklist
...
This is now automatically managed by the arch 32 feature requirement at pkg dependencies level
2019-10-30 11:43:38 +01:00
Anton Gerasimov
6258713e5e
boards/cc1352-launchpad: Add BOARD_INSUFFICIENT_MEMORY entries
...
Signed-off-by: Anton Gerasimov <tossel@gmail.com>
2019-10-29 21:27:00 +01:00
14346dba26
tests/driver_hd44780: remove arduino feature requirement
...
Remove boards blacklisted because they don't provide the Arduino pin macros
2019-10-29 11:09:56 +01:00
04dc65f6ad
drivers/hd44780: move params header at the right place
2019-10-29 10:58:26 +01:00
Martine Lenders
05d338169d
Merge pull request #12367 from brummer-simon/gnrc_tcp-fix_recv_conn_closed
...
gnrc_tcp: return immediatly on gnrc_tcp_recv if a connection is closing
2019-10-29 09:54:43 +01:00
Marian Buschsieweke
4cf2151248
Merge pull request #12537 from benpicco/at86rfmega
...
drivers/at86rf2xx: add support for ATmegaRF MCUs
2019-10-28 09:22:02 +01:00
Martine Lenders
86ecc7064f
Merge pull request #12532 from benpicco/make-pan_id
...
makefiles: allow setting PAN ID like channel
2019-10-27 12:39:52 +01:00
Benjamin Valentin
d45b3d1cd3
makefiles: default-channel.inc.mk -> default-radio-settings.inc.mk
...
The scope of the file has changed, so change it's name.
2019-10-27 11:55:55 +01:00
Gunar Schorcht
b6b12527a9
tests/pkg_tinycbor: esp32 boards removed from blacklist
2019-10-27 09:58:29 +01:00
Benjamin Valentin
eeb75c08bd
tests/examples: add microduino-corerf to Makefile.ci
...
Now that the radio is enabled, some tests do not fit onto the MCU
anymore.
2019-10-27 00:18:23 +02:00
Marian Buschsieweke
a770a919aa
tests/c11_atomics_cpp_compat: Added compile test
2019-10-24 23:08:36 +02:00
Marian Buschsieweke
707bacc1b7
tests/rmutex_cpp: Testing rmutex with C++
...
Copied test from tests/rmutex, but using C++ instead of C.
2019-10-24 23:08:36 +02:00
Francisco
0364c39694
Merge pull request #12408 from miri64/gnrc_netif/fix/src-addr-selection
...
gnrc_netif: only use prefix matching as tie-breaker in source selection
2019-10-24 17:14:17 +02:00
Martine Lenders
020af4145a
tests: provide more test cases for source address selection
...
- ULA destination with global address on interface
- Deprecated addresses
2019-10-24 16:04:41 +02:00
Cenk Gündoğan
e0ab8776f3
Merge pull request #12547 from miri64/gnrc_netif/enh/warn-no-ARSM
...
gnrc_netif: warn when not joining solicited-nodes from non-6LN netif
2019-10-24 13:46:38 +02:00
Martine Lenders
796d6a3167
gnrc_sixlowpan: move garbage collect msg type to reassembly buffer
2019-10-24 12:41:29 +02:00
Martine S. Lenders
9103e5b98e
tests: set log level to ERROR for gnrc_ipv6_nib_6ln test
...
This way it still fits on `z1`.
2019-10-24 11:42:35 +02:00
d22ddc1e95
usbus: Fix usb, initialization and detected spelling mistakes
...
This commit fixes a number of difficult words in the USB stack and
related test files.
2019-10-23 10:43:52 +02:00
Simon Brummer
1eb2969986
gnrc_tcp_recv: immediatly return on closed connection
2019-10-22 20:12:38 +02:00
e2049cce49
Merge pull request #12539 from fjmolinas/pr_isr_yield_relative_time
...
tests/isr_yield_higher: adapt TEST_TIME to start-up time
2019-10-22 16:50:53 +02:00
Francisco Molina
0d91e61dbb
tests/isr_yield_higher: adapt TEST_TIME to start-up time
2019-10-22 16:20:48 +02:00
Benjamin Valentin
b5906c2aa4
tests/pthread*: blacklist boards with low RAM
...
The pthread tests dynamically allocate memory for the thread stacks.
Therefore while compilation succeeds, they will fail to run on these
low memory boards.
Static allocation of thread stacks is an option to make those tests work
for those boards (confirmed for `tests/pthread`), but it would
change the nature of the tests.
2019-10-21 15:33:48 +02:00
Benjamin Valentin
8f3d1eaf04
tests: reduce THREAD_STACKSIZE_DEFAULT for stm32f030f4-demo
2019-10-21 15:33:48 +02:00
Benjamin Valentin
58892fbbef
tests: add stm32f030f4-demo to Makefile.ci
2019-10-21 15:33:11 +02:00
Martine Lenders
42968ccc6b
Merge pull request #12528 from benpicco/ifconfig_scope
...
shell_commands: gnrc_netif: print correct scope for IPv6 address
2019-10-21 15:16:47 +02:00
Benjamin Valentin
2ff7c474b7
shell_commands: gnrc_netif: print correct scope for IPv6 addr
...
Previously `ifconfig` would only know link-local addresses
(printed as 'local') and everything else would be 'global'.
This is wrong for site-local and unique local addresses which were
also denoted as global.
So use the already existing helper functions to determine the correct
type of IPv6 address when printing.
2019-10-21 14:47:34 +02:00
benpicco
ca7e82c312
Merge pull request #11090 from maribu/atmega328p
...
boards: Added standalone ATmega328p
2019-10-21 13:38:58 +02:00
Marian Buschsieweke
6441e3c178
tests: Updated BOARD_BLACKLIST
...
- Added atmega328p to BOARD_BLACKLIST where needed
- Adapted special timer frequency selection in tests/periph_timer to also
select 25kHz for the atmega328p board
2019-10-21 12:54:46 +02:00
Marian Buschsieweke
06d560f408
tests: Added atmega328p to Makefile.ci
...
Added the atmega328p board to the BOARD_INSUFFICIENT_MEMORY list where needed.
2019-10-21 12:54:46 +02:00
Martine Lenders
05bcdba02e
Merge pull request #10499 from miri64/gnrc_netif/enh/split-6lo-6ln
...
gnrc_netif: introduce distinction if an interface supports 6Lo or if it performs ND according to RFC 6775
2019-10-21 11:47:30 +02:00
300c3abf2b
tests/lwip_sock_udp: fix sizeof address param in mempcy
...
Co-authored-by: Martine Lenders <m.lenders@fu-berlin.de>
2019-10-21 08:09:51 +02:00
Martine Lenders
c93b30268b
tests/gnrc_ipv6_nib_6ln: add msb-430* to BOARD_INSUFFICIENT_MEMORY
...
The new fixed code paths with the 6LN/6Lo distinction make this
application too big for the given boards
2019-10-20 15:40:10 +02:00
798d3170d5
Merge pull request #12510 from gschorcht/tests/log_color
...
tests/log_color: fix string literal error
2019-10-19 19:31:44 +02:00
Gunar Schorcht
41e31c516c
tests/log_color: fix string literal error
...
printf function requires a string literal as the format argument. Using a character pointer is not accepted as string literal by some compilers.
2019-10-19 16:59:11 +02:00
Martine Lenders
3cc8b912a2
tests/gnrc_sixlowpan_frag: fix comment typo
2019-10-19 16:30:45 +02:00
Martine S. Lenders
b715aee81d
tests: add tests for new 6Lo reassembly buffer functions
2019-10-19 16:30:45 +02:00
Gunar Schorcht
855ef72202
Merge pull request #12503 from kaspar030/fix_tests/pkg_fatfs_format_overflow
...
tests/pkg_fatfs: fix sprintf format overflow warning
2019-10-19 10:41:17 +02:00
ea6c4a7f23
tests/pkg_fatfs: fix sprintf format overflow warning
...
Some platforms issue this:
tests/pkg_fatfs/main.c: In function '_mkfs':
tests/pkg_fatfs/main.c:355:26: error: '%d' directive writing between 1 and 11 bytes into a region of size 8 [-Werror=format-overflo
w=]
355 | sprintf(volume_str, "%d:/", vol_idx);
| ^~
tests/pkg_fatfs/main.c:355:25: note: directive argument in the range [-2147483648, 0]
355 | sprintf(volume_str, "%d:/", vol_idx);
| ^~~~~~
tests/pkg_fatfs/main.c:355:5: note: 'sprintf' output between 4 and 14 bytes into a destination of size 8
355 | sprintf(volume_str, "%d:/", vol_idx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
The cause is vol_idx being converted by atoi(), so it might be negative.
This commit increases the stack array so it cannot overflow.
2019-10-18 23:06:44 +02:00
f52bbd084c
tests/pkg_nanopb: initial commit
2019-10-18 22:34:29 +02:00
04712dbcfc
Merge pull request #12446 from fjmolinas/pr_fix_tests_riotboot
...
tests/riotboot: fix test running test in docker.
2019-10-18 17:20:49 +02:00
Francisco Molina
57b09f1685
tests/riotboot: add SLOT_RIOT_ELFS:%.elf=%.bin to BUILD_FILES
...
- When running `BUILD_IN_DOCKER=1 make -C tests/riotboot test`
new slot binaries (fw + hdr) need to be generated.
`%.bin: %.elf` is no defined when building in docker, so the
fw binaries $(SLOT_RIOT_ELFS:%.elf=%.bin) are added to
BUILD_FILES
2019-10-18 15:56:48 +02:00
16aef163ca
Merge pull request #12497 from benpicco/tests-cpp_memory
...
tests: remove Makefile.ci from cpp11 tests
2019-10-18 15:12:36 +02:00
Benjamin Valentin
44d6cabd8a
tests: remove Makefile.ci from cpp11 tests
...
The description states that the tests caused issues with an ancient
toolchain.
Building these tests locally worked fine.
So remove the obsolete BOARD_INSUFFICIENT_MEMORY lists.
2019-10-18 14:28:57 +02:00
Martine S. Lenders
f8d75d7add
gnrc_sixlowpan_frag_rb: behavioral change to add()
...
Rather than dispatching the packet automatically once it is complete,
`gnrc_sixlowpan_frag_rb_add()` now only returns success, and leaves it
to the caller to dispatch the packet.
2019-10-18 09:02:32 +02:00
Martine S. Lenders
df484926a2
tests/gnrc_sixlowpan_frag: adapt for API change
...
These changes reflect adaptations for the following API changes:
- gnrc_sixlowpan_frag_rb: return pointer to entry on add()
2019-10-18 09:02:32 +02:00
Benjamin Valentin
c01eae3239
tests: add microduino-corerf to Makefile.ci
2019-10-17 20:38:47 +02:00
Benjamin Valentin
252f22bfe2
tests/driver_hih6130: replace SLEEP define
...
The SLEEP define collides with an Atmel header file.
Rename the define to resolve the conflict.
2019-10-17 19:20:31 +02:00
benpicco
ad81a9df8a
Merge pull request #12484 from maribu/pain_in_the_ass
...
tests: Moved BOARD_INSUFFICIENT_MEMORY to Makefile.ci
2019-10-17 18:25:41 +02:00
benpicco
bd0ba7f187
Merge pull request #12476 from basilfx/feature/efm32_uart_modes_cleanup
...
cpu/efm32: remove EFM32_UART_MODES
2019-10-17 18:22:37 +02:00
Marian Buschsieweke
fd6fedaab6
tests: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci
...
- Moved the BOARD_INSUFFICIENT_MEMORY list into Makefile.ci
- Formatted the list to contain one board per line
- Sorted the lists alphabetically
2019-10-17 15:11:59 +02:00
Marian Buschsieweke
d9e4361246
tests/rng: Fixed abuse of BOARD_BLACKLIST
...
- BOARD_BLACKLIST has been used to blacklist boards with too little RAM/ROM
according to the comment
==> Moved those entries to BOARD_INSUFFICIENT_MEMORY instead
- pic32-clicker does build fine, so RAM/ROM efficiency has improved since
==> Dropped pic32-clicker from the list
2019-10-17 15:10:42 +02:00
Jannes
2df5d6048d
driver/mpu9x50: Rename mpu9150 to mpu9x50
...
Rename all files
Rename all variables, methods and methodcalls
Rename all folders
Add to the makefiles
Add to doc
2019-10-17 12:52:18 +02:00
Bas Stottelaar
b122a8863e
tests/cpu_efm32_features: add test script
2019-10-16 22:09:37 +02:00
Bas Stottelaar
bbec8277b9
tests/cpu_efm32_features: remove EFM32_UART_MODES
2019-10-16 22:05:08 +02:00
MrKevinWeiss
2c2e1fcc16
tests/periph_uart: Remove obsolete python tests
2019-10-16 15:54:36 +02:00
MrKevinWeiss
26539eb3ec
tests/periph_i2c: Remove obsolete python tests
2019-10-16 15:54:10 +02:00
Martine Lenders
eebf3709db
Merge pull request #12465 from aabadie/pr/tests/nordic_softdevice
...
tests/nordic_softdevice: cleanup test script and fix test
2019-10-16 13:28:39 +02:00
Sebastian Meiling
375687da50
tests/emb6: replace board blacklist
...
Replaces the board blacklist by a matching
feature blacklist or arch_msp430.
2019-10-16 09:49:26 +02:00
Sebastian Meiling
047104c1c9
tests/emb6: remove pic32 boards from blacklist
...
First the comment does not fit these two boards and
second they would work compiler wise but just do not
have an SPI to support the radio. Hence, won't be
used due to missing features.
2019-10-16 09:46:45 +02:00
98e17c2736
tests/nordic_softdevice: cleanup test script and fix test
...
Adding a 1s delay before sending ifconfig makes this test works reliably because it gives the softdevice enough time to get in a ready state.
2019-10-16 08:20:41 +02:00
benpicco
1ffca2b963
Merge pull request #12412 from benpicco/tests_no-SLEEP
...
tests: replace SLEEP define
2019-10-15 15:39:53 +02:00
Martine Lenders
18fc2c206f
unittests: fix tests-pkt
for non-32bit platforms
2019-10-15 10:40:07 +02:00
Martine Lenders
117ff2f862
unittests: remove board blacklist, fix doc for MCU architectures
2019-10-15 09:48:04 +02:00
8f0f28bd50
tests/ssp: make use of architecture features
2019-10-14 22:40:13 +02:00
8a1e78bf4d
Merge pull request #9081 from kaspar030/add_arch_features
...
make: add architecture features and feature blacklisting
2019-10-14 16:12:54 +02:00
Cenk Gündoğan
b4cb32a8ab
Merge pull request #12440 from miri64/tests/fix/gnrc_rpl_srh
...
tests/gnrc_rpl_srh: fix test assumption
2019-10-14 14:43:30 +02:00
Martine Lenders
3e7f25566f
tests/gnrc_rpl_srh: fix unittests for gnrc_rpl_srh
behavior change
2019-10-14 12:04:35 +02:00
Martine Lenders
ee2126a4e2
tests/gnrc_rpl_srh: fix test assumption
...
If the destination address or an address within the source route is
multicast within a RPL source routing header, a receiving node is
supposed to just discard the packets, but not to send an ICMPv6 error
message, as the test assumes at the moment.
Source: https://tools.ietf.org/html/rfc6554#section-4.2
2019-10-14 10:33:25 +02:00
9bc600a2e5
Merge pull request #12386 from keestux/sodaq-boards-arduino
...
Sodaq boards arduino
2019-10-14 07:47:58 +02:00
3eae2f7b79
pkg/lwip: add arch_32bit feature dependency
2019-10-13 21:03:41 +02:00
Martine Lenders
c94de51e03
Merge pull request #12414 from miri64/gnrc_ipv6_ext_frag/fix/n-th-with-full-rbuf
...
gnrc_ipv6_ext_frag: fix release on rbuf creation for n-th fragment
2019-10-13 15:10:50 +02:00
JulianHolzwarth
15349eab61
tests/xtimer_mutex_lock_timeout/main.c: shell command description
...
"(no-spin timeout)" instead of "long timeout" to make it consistent
2019-10-11 15:44:56 +02:00
JulianHolzwarth
d9aec38f1f
tests/xtimer_mutex_lock_timeout/main.c: Function to terminate
...
The function will terminate the thread and send the message m to target_pid.
2019-10-11 15:44:56 +02:00
JulianHolzwarth
714ee17fab
tests/xtimer_mutex_lock_timeout/ new test with thread
...
Two Functions cmd_test_xtimer_mutex_lock_timeout_low_prio_thread and thread_low_prio_test are added.
This testfunction will test xtimer_mutex_lock_timeout with two threads (main thread and lower prio than main thread).
The main thread creates another thread and sleeps. While the main thread sleeps the other thread takes the mutex
and wakes the main thread up.
Then the main thread calls xtimer_mutex_lock_timeout and the second thread unlocks the mutex and
the main thread gets it and waits for the created thread to end.
Has test messages showing the thread count. To make sure the created thread ends.
(test messages may be removed in the future)
2019-10-11 15:44:56 +02:00
JulianHolzwarth
f0da0121f4
tests/xtimer_mutex_lock_timeout/main.c: print empty line
...
printing emty line after each test function to make the test easier to read
2019-10-11 15:44:55 +02:00
JulianHolzwarth
1fe8d33416
tests/xtimer_mutex_lock_timeout/Makefile: adding ps for better testing
2019-10-11 15:44:55 +02:00
JulianHolzwarth
6183f50462
tests/xtimer_mutex_lock_timeout/main.c: remove unnecessary/wrong include
2019-10-11 15:44:55 +02:00
Jose Alamos
9727f325ff
tests/gnrc_netif: adapt to new netif_t representation
2019-10-11 10:59:14 +02:00
Ken Bannister
9946e24bc9
Merge pull request #12375 from miri64/tests/enh/rs-i137
...
tests: prepare for RIOT-OS/Release-Specs#137
2019-10-10 13:57:54 -04:00
Martine S. Lenders
9e625841b7
tests/gnrc_udp: update BOARD_INSUFFICIENT_MEMORY
2019-10-10 19:02:24 +02:00
Martine S. Lenders
18597c4ab4
tests/gnrc_ipv6_ext_frag: update BOARD_INSUFFICIENT_MEMORY
2019-10-10 17:09:35 +02:00
Martine S. Lenders
07a6b5425e
tests/gnrc_ipv6_ext_frag: add test for nth frag with full rbuf first
...
Adds a test case for when the following conditions cause a crash:
- a subsequent fragment is received before the first
- the reassembly buffer is currently filled up when another fragment of
a different datagram arrives and thus needs to be cached out to make
room for the new reassembly
2019-10-10 16:41:47 +02:00
Martine S. Lenders
40f721a4b8
tests/gnrc_ipv6_ext_frag: move static const
to global space
2019-10-10 16:19:55 +02:00
Martine Lenders
f89e0b7b31
tests: prepare for RIOT-OS/Release-Specs#137
2019-10-10 14:57:31 +02:00
Benjamin Valentin
41745859bb
tests: replace SLEEP define
...
The SLEEP define collides with an Arduino header file.
Rename the define to resolve the conflict.
2019-10-10 10:47:38 +02:00
Kees Bakker
57463d722a
driver/hd44780: black list Sodaq boards
...
The Sodaq boards support Arduino, but there are no ARDUINO_PIN_* defines.
2019-10-09 20:16:22 +02:00
Martine Lenders
238ebe3d37
Merge pull request #12350 from haukepetersen/opt_nimble_verokt19
...
pkg/nimble: bump NimBLE version
2019-10-09 11:18:07 +02:00
7794c29650
Merge pull request #12396 from mtausig/codestyle
...
Fix code style of crypto code
2019-10-09 08:00:25 +02:00
Mathias Tausig
89db40b563
sys/crypto: Fix code style
2019-10-08 20:58:52 +02:00
Gaëtan Harter
589d7e5a46
applications: remove mentions of jiminy-mega256rfr2
...
Remove the deprecated board from BOARD_BLACKLIST and BOARD_INSUFFICIENT_MEMORY.
2019-10-08 18:37:32 +02:00
Francisco
94e00328c1
Merge pull request #12343 from cladmi/pr/board/slwstk6000b/split
...
boards/slwstk6000b-*: split one board for each module
2019-10-08 17:41:15 +02:00
Gaëtan Harter
1ab5a9390d
boards/slwstk6000b-*: split one board for each module
...
Define one board for each of the available modules.
2019-10-08 16:33:27 +02:00
4c8b6288ce
tests/unittests/base64: add test case for empty buffers
2019-10-08 15:38:27 +02:00
Hauke Petersen
88459f5a92
tests/nimble_l2cap_server: change order in _on_data
...
Printing the 'Received ...' string takes a short while and it is possible
that data is received while the string is printed. It seems however that
NimBLE does not like to be without a mbuf ready for taking data while
receiving something, as this seems to lead to a memory leak somehow. Now
changing the order of actions inside the _on_data() function fixes this.
2019-10-07 17:52:11 +02:00
Martine Lenders
c3a85bb9ca
tests/gnrc_tcp: provide regression tests for fixed issues
2019-10-06 17:34:54 +02:00
Martine Lenders
e22084c420
tests/gnrc_tcp: prepare shared_func for scapy
2019-10-05 15:12:23 +02:00
Martine Lenders
00f7e52be6
tests/gnrc_tcp: fix sudo error message
2019-10-05 15:12:23 +02:00
Ken Bannister
033b60b2d0
Merge pull request #11189 from leandrolanzieri/gcoap_link_format_options
...
sys: Add Link Format module
2019-10-05 06:46:15 -04:00
Martine Lenders
55143bb017
tests: fix copyright attribution and doc
...
While looking at tests/gnrc_ipv6_ext_frag again while writing
RIOT-OS/Release-Specs#137 , I noticed that several of tests that I
definitely wrote myself from scretch are attributed wrong (and
sometimes even documented wrong). I guess this was caused by just
copy-pasting the files...
2019-10-04 20:58:57 +02:00
Kevin "Tristate Tom" Weiss
4b7c5915ec
Merge pull request #10953 from gschorcht/sys/shell/heap_cmd/pr
...
sys/shell: add heap command
2019-10-04 13:49:57 +02:00
Leandro Lanzieri
3ca6a28e04
tests: Add unit tests for clif module
2019-10-04 11:35:52 +02:00
Martine Lenders
e9e0001239
Merge pull request #11930 from brummer-simon/gnrc_tcp-improve_tests
...
gnrc_tcp: test improvement
2019-10-03 15:40:16 +02:00
Simon Brummer
56998e822a
gnrc_tcp: test improvement
2019-10-03 15:18:28 +02:00
30457e4134
tests/unittests: exclude arduino-mkrwan1300
2019-10-03 09:34:34 +02:00
630e7ba053
tests/pkg_ubasic: improve test output regex
...
The test application now correctly prints float value, with a 3 digits precision. The python test script now verifies the run time value printed for each test is following the x.xxx pattern.
2019-10-02 15:58:20 +02:00
0e7c3bd2b7
Merge pull request #12358 from kaspar030/tests_pkg_ubasic_add_float
...
tests/pkg_ubasic: add print_float dependency
2019-10-02 15:55:57 +02:00
5653e89a3a
Merge pull request #12357 from aabadie/pr/tests/pkg_ubasic
...
tests/pkg_ubasic: increase timeout value, per test
2019-10-02 14:37:46 +02:00
Gunar Schorcht
37debfd655
tests/heap_cmd: blacklist arduino-nano due to memory limit
2019-10-02 14:21:35 +02:00
Gunar Schorcht
edae6b5c09
tests/heap_cmd: shell-based heap function test app
2019-10-02 14:21:35 +02:00
b05173b5f7
tests/pkg_ubasic: add print_float dependency
2019-10-02 13:41:52 +02:00
74e6b73ecb
tests/pkg_ubasic: increase timeout value, per test
...
On samr30-xpro, the third test requires 150 seconds to complete
2019-10-02 13:07:58 +02:00
Jannes
33a98100a9
drivers/opt3001: Initial support
2019-10-02 10:06:28 +02:00
Dylan Laduranty
aed628f08b
Merge pull request #11486 from benpicco/saml21-lpram
...
cpu/saml21: Make Low-Power SRAM available to programs
2019-10-01 21:02:42 +02:00
Gunar Schorcht
02d81b717e
Merge pull request #12063 from maribu/i2c_release
...
drivers/periph/i2c: Updated i2c_release() to return void
2019-10-01 19:50:38 +02:00
Benjamin Valentin
2ff7e03a94
tests/periph_backup_ram: add test for the Backup RAM feature
...
The test will put a device to sleep, then wake it up to see if
the backup memory was retained.
2019-10-01 18:42:56 +02:00
Gaëtan Harter
66300b2f72
tests/README.md: add documentation about uart interaction
...
Add some documentation about tests using `cleanterm` and what guarantees
it gives.
2019-10-01 14:13:02 +02:00
Gaëtan Harter
1fce298441
tests/test_tools: test receiving an empty line
...
Test receiving an empty line.
It was before not possible with `pyterm` but is fixed by previous
commit.
2019-10-01 14:13:02 +02:00
Gaëtan Harter
d33e2d215e
tests/test_tools: test to get a command return value
...
Get the output of a one line command without other garbage messages.
2019-10-01 14:13:02 +02:00
benpicco
3f0dfc14ac
Merge pull request #11085 from bergzand/pr/usb/cdcacm
...
usbus: Add CDC-ACM (Serial console) function
2019-10-01 11:22:54 +02:00
Martine Lenders
f4cca412de
Merge pull request #12303 from miri64/sixlowpan_sfr/feat/initial
...
sixlowpan_sfr: initial import Selective Fragment Recovery definitions
2019-10-01 09:46:25 +02:00
Martine S. Lenders
38571c66fe
tests: add unittests for net/sixlowpan/sfr.h helpers
2019-10-01 08:45:19 +02:00
Martine Lenders
db8dcaee48
Merge pull request #12325 from miri64/gnrc_sixlowpan_frag_vrb/enh/rm-out_dst
...
gnrc_sixlowpan_frag_vrb: re-use now unused super::dst for out_dst
2019-10-01 07:55:49 +02:00
Frank Hessel
64ac490fc9
tests/driver_adt7310: Add explicit cast required for llvm
2019-09-30 22:31:15 +02:00
c6447b73dc
test/usbus_cdc_acm_stdio: USB CDC ACM STDIO test
2019-09-30 18:53:58 +02:00
Martine Lenders
04f59d6609
gnrc_sixlowpan_frag_vrb: re-use now unused super::dst for out_dst
2019-09-30 12:46:15 +02:00
Bas Stottelaar
acd9dfda01
tests/cpu_efm32_features: update test
2019-09-30 00:03:15 +02:00
benpicco
aebcef111d
Merge pull request #12300 from miri64/gnrc_sixlowpan_frag_vrb/fix/index
...
gnrc_sixlowpan_frag_vrb: fix for draft update
2019-09-29 19:27:20 +02:00
c72f286796
Merge pull request #12169 from maribu/blxxxpill
...
boards: Split off 128KiB version of bl*pill
2019-09-29 18:50:29 +02:00
Martine Lenders
a711852379
tests: unittests: remove duplicate static const
s from VRB tests
2019-09-29 18:36:28 +02:00
Martine Lenders
99183da998
tests: unittests: adapt 6LoWPAN VRB tests
2019-09-29 18:31:43 +02:00
Marian Buschsieweke
5659d16a5a
tests: BOARD_WHITELIST, BOARD_INSUFFICIENT_MEMORY
...
Added new blackpill-128kib and bluepill-128kib to BOARD_INSUFFICIENT_MEMORY
and BOARD_WHITELIST where needed.
2019-09-29 17:06:01 +02:00
Marian Buschsieweke
ed85041a4b
examples/l2util: Updated BOARD_INSUFFICIENT_MEMORY
...
Linking works for both blackpill and bluepill
2019-09-29 17:00:28 +02:00
Martine Lenders
e9ff46b2ea
gnrc_sixlowpan_frag_rb: unify naming scheme
2019-09-28 12:11:54 +02:00
Martine Lenders
178f4af108
gnrc_sixlowpan_frag_rb: remove legacy defines
2019-09-28 12:07:24 +02:00
Martine Lenders
972e4938bc
gnrc_sixlowpan_frag_rb: use existing name scheme for private functions
2019-09-28 11:51:18 +02:00
Martine S. Lenders
49bd8678ed
gnrc_sixlowpan_frag_rb: remove public around former private functions
2019-09-28 11:51:18 +02:00
Martine S. Lenders
ec495528fe
gnrc_sixlowpan_frag: move private RB functions to RB module
2019-09-28 11:51:18 +02:00
68aae9c848
Merge pull request #12262 from cladmi/pr/cflags/fix_spaces_and_rebuild
...
makefiles: do not remove defines from CFLAGS
2019-09-28 09:42:56 +02:00
Martine S. Lenders
b5545fe334
gnrc_sixlowpan: include reassembly buffer only where needed
2019-09-27 21:11:36 +02:00
Gaëtan Harter
d6b109f720
tests/build_system_cflags_spaces: test CFLAGS macros handling
...
This tests passing CFLAGS with spaces to an application and also that
even if the CFLAGS are defined after Makefile.include, they trigger
a rebuild when modified.
This includes an example how to pass macros with spaces to a docker
build.
The test as both an automated part for the CFLAGS with spaces, and a
manual part for the two other features.
2019-09-27 19:29:07 +02:00
Martine Lenders
aa84406ac1
Merge pull request #9940 from miri64/tests/enh/rgb2hsv-black
...
tests/unittests: test black corner case for color_rgb2hsv()
2019-09-27 15:02:10 +02:00
Hauke Petersen
09faa328f9
tests: add distinct test app for nrfmin driver
2019-09-27 11:49:43 +02:00
Martine Lenders
2c9ac91903
tests/unittests: test black corner case for color_rgb2hsv()
...
Tests a (currently undocumented) behavior of `color_rgb2hsv()`, that a
black RGB value (all zero) causes the HSV value to be all zero.
2019-09-27 09:35:39 +02:00
Martine Lenders
ac9e80cfd0
Merge pull request #11401 from miri64/tests/enh/i11398-testcase
...
tests: provide test case for malformed IEEE 802.15.4 packets
2019-09-26 16:55:55 +02:00
Martine Lenders
aaaa8a21ed
tests: provide testcase for issue 11398
2019-09-26 15:56:47 +02:00
Dylan Laduranty
9c8cfaa02a
tests: add SAMR34 entry in BOARD_INSUFFICIENT_MEMORY
...
add samr34-xpro if test doesn't fit in its memory
2019-09-26 10:48:03 +02:00
0170d1c5da
Merge pull request #11969 from fjmolinas/pr_nucleo_f303k8_tests
...
tests: fix tests for nucleo-f303k8
2019-09-25 13:43:10 +02:00
f8922d80c3
tests/periph_wdt: fix upper limit format for print
2019-09-20 20:45:42 +02:00
Benjamin Valentin
a4baf45da1
tests/periph_wdt: only test powers of two
...
Some watchdog implementations do not support arbitrary precision
for timeouts.
Using powers of two seems like a good common denominator.
2019-09-20 19:04:41 +02:00
Francisco Molina
ce300ca6fd
tests: fix tests for nucleo-f303k8
...
- Decrease default stack size for pthread_cooperation and
cp11_condition_variable
- Reduce number of problems for thread cooperation and remove
from insufficient memory list
2019-09-20 17:01:08 +02:00
661fdc6c1b
tests/nimble_l2cap: remove unused debug include
2019-09-20 09:00:32 +02:00
4d2d4c5bb3
tests/nimble_l2cap: fix not needed cast
2019-09-20 09:00:13 +02:00
f6dc8a3ea8
tests/periph_pwm: fix not needed cast
2019-09-20 08:59:43 +02:00
Dylan Laduranty
f276328491
Merge pull request #12267 from bergzand/pr/usbus/auto_tests
...
usbus: Add automated test
2019-09-19 09:52:48 +02:00
e3123f352e
tests/usbus: Add automated test for usbus init
2019-09-19 09:29:54 +02:00
Martine Lenders
5631b698db
Merge pull request #11623 from miri64/gnrc_ipv6_ext/feat/ipv6-frag
...
gnrc_ipv6_ext_frag: Initial import of IPv6 fragmentation
2019-09-17 19:27:38 +02:00
Martine Lenders
e62bb9c414
tests: provide tests for gnrc_ipv6_ext_frag fragmentation
2019-09-17 18:55:18 +02:00
Martine Lenders
1a89829cc7
Merge pull request #12254 from aabadie/pr/tests/useless_ci_whitelist
...
tests: remove remaining use of "TEST_ON_CI_WHITELIST += all"
2019-09-17 10:47:06 +02:00
Martine Lenders
269af28599
tests: provide initial tests for gnrc_ipv6_ext_frag
2019-09-16 19:13:19 +02:00
43717c7b2b
tests: remove useless global board test on ci whitelist
2019-09-16 19:02:02 +02:00
Gaëtan Harter
be7ce7ea99
tests: re-enable utf-8 tests on native
...
The docker image should now be configured with LC_ALL|LANG=C.UTF-8
and used in murdock.
2019-09-16 12:29:15 +02:00
benpicco
6c95081e42
Merge pull request #10556 from gschorcht/drivers_pca9685
...
drivers: support for NXP PCA9685 I2C 16-channel, 12-bit PWM controller
2019-09-15 19:20:29 +02:00
Juan I Carrano
75c47a8dc7
Merge pull request #12216 from benpicco/cleanup-test_malloc
...
tests/malloc: cleanup
2019-09-13 12:03:48 +02:00
ab8cdace12
Merge pull request #11996 from fjmolinas/pr_libcose_crypto_up
...
pkg/libcose: update crypto support
2019-09-13 10:10:49 +02:00
Francisco Molina
9e5416239b
tests/pkg_libcose: adapt to c25519 and monocypher
2019-09-13 09:50:42 +02:00
aed12b4853
Merge pull request #11252 from fjmolinas/pr_wdg_stm32
...
cpu/stm32_common: add watchdog for stm32
2019-09-13 09:16:18 +02:00
Francisco Molina
8597952c10
tests: add periph_wdt test
2019-09-13 08:58:20 +02:00
Benjamin Valentin
769fe44f6d
tests/malloc: cleanup
...
- make local functions / variables static
- adhere to the 80 column limit
- don't increment total if head could not be allocated
- allow to overwrite CHUNK_SIZE
2019-09-13 00:35:47 +02:00
benpicco
66ce29d94c
Merge pull request #12051 from OTAkeys/fix/isotp
...
can/isotp: fix closing connection and improve flow control handling
2019-09-12 23:01:58 +02:00
Schorcht
c6bbaac7bc
tests: app for testing PCA9685 PWMs
2019-09-12 19:13:20 +02:00
Juan I Carrano
e9ca2114ee
Merge pull request #12204 from cladmi/pr/pthread/enable_avr
...
pthread_cond.h: use 'sys/types.h' value of 'clockid_t' for avr. Enables pthread on AVR.
2019-09-12 16:41:59 +02:00
Ken Bannister
1621cc1d39
Merge pull request #12075 from kb2ma/coap/options_get_opaque
...
net/nanocoap: get option bytes
2019-09-12 09:00:27 -04:00
Marian Buschsieweke
c262770634
Merge pull request #11413 from benpicco/rtc_sanitize
...
periph/rtc: normalize struct tm before usage
2019-09-12 12:47:56 +02:00
Benjamin Valentin
b1724a7d1b
periph/rtc: normalize struct tm before usage
...
A naive implementation may set a RTC alarm in 30s by calling
struct tm now;
rtc_get_time(&now);
now.tm_sec += 30;
rtc_set_alarm(&now, _cb, NULL);
This works for RTC implementations that use a RTT internally and call
mktime() to convert the struct tm to a unix timestamp, as mktime() will
normalize the struct in the process.
Call rtc_tm_normalize() when the RTC uses separate registers for time / date
components to ensure it is normalized.
This also modifies tests/periph_rtc to exercise this case.
2019-09-12 11:32:31 +02:00
Benjamin Valentin
90a8a9666c
unittests: add tests for rtc_tm_normalize()
2019-09-12 11:32:27 +02:00
Martine Lenders
8911c514fd
Merge pull request #10951 from miri64/gnrc_ipv6_nib/enh/abr-helpers
...
shell/sc_gnrc_ipv6_nib: extend for ABR
2019-09-12 07:34:09 +02:00
Martine Lenders
5c2fec106a
tests/unittests: add tests for _abr_iter()
2019-09-11 23:51:20 +02:00
Gaëtan Harter
9ee84c62c9
tests/pthread*: enable pthread tests on avr
...
'pthread' is now compatible with 'avr' so enable them in tests.
All the tests ran on 'arduino-mega2560' when supported.
2019-09-11 18:25:10 +02:00
Gaëtan Harter
5c405b56f8
tests/pthread_condition_variable: adapt for slow boards
...
Reduce the number of required iterations on boards.
This will allow running it on 'arduino-mega2560'.
2019-09-11 18:25:10 +02:00
Juan I Carrano
00e0a1cf13
Merge pull request #12056 from JulianHolzwarth/pr/posix/pthread/small_insert_fix
...
sys/posix/pthread/pthread.c: fix thread count limiting in pthread_create()
2019-09-11 18:22:54 +02:00
Francisco Acosta
092f8e8d46
Merge pull request #8774 from OTAkeys/pr/flashpage_mtd
...
drivers: add mtd wrapper for periph_flashpage
2019-09-11 16:59:15 +02:00
JulianHolzwarth
984eb7cd6c
tests/pthread_flood: test for max pthread creation
2019-09-11 15:07:32 +02:00
Ken Bannister
4ace366e8b
net/nanocoap: add unit test for get opaque option
2019-09-11 05:40:14 -04:00
MichelRottleuthner
3d0e3b0117
Merge pull request #10308 from danielinux/master
...
wolfSSL pkg addition with examples
2019-09-11 09:12:57 +02:00
Daniele Lacamera
8bb1ee1cd5
wolfSSL pkg: new set of examples and tests
2019-09-11 08:12:50 +02:00
Martine Lenders
9e33c04e3d
Merge pull request #9404 from OTAkeys/pr/can_memarray
...
can: use memarray for pkt and router allocation
2019-09-10 16:28:31 +02:00
Marian Buschsieweke
b87ab96d17
Merge pull request #10661 from miri64/gnrc_netif_hdr/enh/netif_setter
...
gnrc_netif_hdr: add setter for netif
2019-09-10 16:14:28 +02:00
Vincent Dupont
a05f7c7cac
unittests: add mtd_flashpage unittests
2019-09-10 13:26:27 +02:00
Vincent Dupont
c5376f3055
tests/conn_can: reduce size of pkt buffers
2019-09-10 13:01:28 +02:00
Martine Lenders
37eb634ff9
examples,tests: use gnrc_netif_hdr_set_netif()
2019-09-10 12:37:32 +02:00
Marian Buschsieweke
00965e3a40
makefiles: Refactored channel configuration
...
The default channel configuration is managed within the Makefiles of many
examples and tests. This commit moves the default channel logic to
`makefiles/default-channel.ink.mk` to ease maintenance. All Makefiles that
previously managed the default channel configuration themself have been
updated to include that file.
The default channel configuration of the cc110x has been added
2019-09-10 10:04:52 +02:00
f6ba7797b1
tests/log_color: add test application
2019-09-09 20:37:07 +02:00
kaleb-himes
b3f32f83bb
wolfSSL pkg with examples
2019-09-09 18:48:53 +02:00
Leandro Lanzieri
563a053bc1
Merge pull request #10983 from skullbox305/driver_ph_oem
...
drivers/ph_oem: support for Atlas Scientific pH OEM sensor
2019-09-09 10:18:49 +02:00
4922d6072e
Merge pull request #12146 from jcarrano/usb-warnings-fix
...
tests,examples/usb: PID, VID warning only when building.
2019-09-09 09:59:11 +02:00
Sebastian Meiling
c78ae0e33c
Merge pull request #12074 from kb2ma/coap/options_iterate
...
net/nanocoap: iterate options
2019-09-09 10:51:23 +03:00
Kees Bakker
35c5869a2e
Merge pull request #12117 from maribu/arduino-println
...
sys/arduino: Extended Serial.print() / println()
2019-09-07 21:16:43 +02:00
benpicco
cf56f6a942
Merge pull request #12172 from bergzand/pr/pkg/cifra
...
Cifra: initial import of package
2019-09-07 16:37:29 +02:00
Marian Buschsieweke
ab5a6d6187
tests/sys_arduino: Added tests for Serial.print
2019-09-05 23:55:18 +02:00
Igor Knippenberg
16e0c2648d
tests/driver_ph_oem: Added a test application for the pH OEM driver
2019-09-05 12:47:10 +02:00
1c9e9351ed
tests/cifra: Add test for aes-gcm validation
2019-09-05 10:25:54 +02:00
aa6f9e5b25
Merge pull request #12164 from keestux/driver_sht2x_cleanup
...
tests/driver_sht2x: avoid negative number after decimal dot
2019-09-04 07:58:18 +02:00
f750c3a474
tests/driver_hts221: cleanup temperature display logic
...
This saves 12 bytes when building for samr21-xpro
2019-09-03 21:36:26 +02:00
Kees Bakker
3d6b6d868d
tests/driver_sht2x: avoid negative number after decimal dot
...
Also don't include printf_float
2019-09-03 20:50:25 +02:00
d0a8060ea6
tests/driver_bmx280: cleanup temperature value display
2019-09-03 12:58:56 +02:00
benpicco
7cbc239a00
Merge pull request #12140 from aabadie/pr/tests/driver_bmp180_cleanup
...
tests/driver_bmp180: cleanup application
2019-09-02 21:55:29 +02:00
db12eeb1a7
tests/driver_bmp180: remove useless printf_float module
2019-09-02 18:33:02 +02:00
73e1c563b4
tests/driver_bmp180: fix display with negative temperature
2019-09-02 18:33:02 +02:00
Gaëtan Harter
c59d263c61
tests/xtimer_periodic_wakeup: blacklist testing on native
...
The test randomly fails on `native` due to timers being not accurate but
it cannot be otherwise. So better disable it than raising fake errors.
...
151 diff=3
150 diff=4
149 diff=3539
148 diff=4
147 diff=3
....
min/max error: 1/3539
too large difference.
Test Failed.
Timeout in expect script at "child.expect_exact("Test complete.")"
(tests/xtimer_periodic_wakeup/tests/01-run.py:22)
2019-09-02 18:12:04 +02:00
Gaëtan Harter
52000b83be
tests/evtimer: blacklist testing on native
...
The test randomly fails on `native` due to timers being not accurate but
it cannot be otherwise. So better disable it than raising fake errors.
main(): This is RIOT! (Version: buildtest)
Testing generic evtimer
This should list 2 items
ev #1 offset=1000
ev #2 offset=500
This should list 4 items
ev #1 offset=659
ev #2 offset=341
ev #3 offset=500
ev #4 offset=2454
Are the reception times of all 4 msgs close to the supposed values?
At 662 ms received msg 0: "#2 supposed to be 659"
At 1009 ms received msg 1: "#0 supposed to be 1000"
At 1511 ms received msg 2: "#1 supposed to be 1500"
Traceback (most recent call last):
File "/tmp/dwq.0.3125418833043728/ef3af88c4b3615788b164464a437df5c/tests/evtimer_msg/tests/01-run.py", line 33, in <module>
sys.exit(run(testfunc))
File "/tmp/dwq.0.3125418833043728/ef3af88c4b3615788b164464a437df5c/dist/pythonlibs/testrunner/__init__.py", line 29, in run
testfunc(child)
File "/tmp/dwq.0.3125418833043728/ef3af88c4b3615788b164464a437df5c/tests/evtimer_msg/tests/01-run.py", line 26, in testfunc
assert(actual in range(expected - ACCEPTED_ERROR, expected + ACCEPTED_ERROR))
AssertionError
2019-09-02 16:37:05 +02:00
Juan Carrano
8b88666f3d
tests,examples/usb: PID, VID warning only when building.
...
The warning issued when the PID and VID are set to the default values should
not be printed on `make clean` and other targets, only with `make all` and it
should be a proper target.
To do: replace shell echos with proper $(warning ..) calls.
2019-09-02 12:20:32 +02:00
fabian18
2edf153cf8
drivers/at86rf2xx: do not hang on no dev
2019-09-02 10:27:24 +02:00
benpicco
a10c3f09a4
Merge pull request #12136 from aabadie/pr/tests/driver_io1_xplained_printf_float
...
tests/driver_io1_xplained: remove printf_float dependency
2019-09-01 15:43:04 +02:00
6754f71c3a
tests/driver_io1_xplained: remove printf_float dependency
...
This saves a lot of ROM and is easily replaced with basic temperature computation
2019-09-01 15:16:32 +02:00
Juan I Carrano
866b126f36
Merge pull request #12119 from cladmi/pr/makefiles/utils/uppercase_function
...
makefiles/utils: functions for lowercase and uppercase
2019-08-29 16:04:58 +02:00
Gaëtan Harter
765f3e9327
makefiles/utils: functions for lowercase and uppercase
...
Add make only function to convert strings to lowercase and uppercase.
This can replace the `$(shell echo $(var) | tr 'a-z-' 'A-Z_')` pattern.
Using the 'make' implementation results in being around 100 times faster.
2019-08-29 13:59:31 +02:00
Martine Lenders
1f086932d5
Merge pull request #12046 from Harisanthosh/gnrc_udp_nullpointer
...
net/gnrc/udp: Adding Null pointer check in gnrc_netif_hdr_build
2019-08-29 13:01:18 +02:00
Hauke Petersen
16bbd2f864
tests/unittests/bluetil: adapt to byteorder fixes
2019-08-28 16:49:21 +02:00
Hauke Petersen
a237971cfd
tests/l2util: adapt to changes for BLE
2019-08-28 16:49:21 +02:00
Marian Buschsieweke
5ea305f352
tests/periph_i2c: Adapted to new i2c_release()
2019-08-27 13:59:20 +02:00
harisanthosh
f583368842
net/gnrc/udp: Adding Null pointer check in gnrc_netif_hdr_build
2019-08-26 12:46:26 -07:00
Kevin "Tristate Tom" Weiss
b9a01437be
Merge pull request #12072 from cladmi/pr/test_tools/shell_no_echo
...
tests/test_tools: add a test for the testing tools environment
2019-08-26 17:12:14 +02:00
Ken Bannister
47ef5c1656
net/nanocoap: add unit test for iterate options
2019-08-24 07:46:54 -04:00
570f95f2bb
tests/pkg_semtech-loramac: disable rx thread for arduino-mega2560
...
Otherwise the application cannot be linked for this platform
2019-08-23 21:08:35 +02:00
Kevin "Tristate Tom" Weiss
1b1c902dd3
Merge pull request #12022 from JannesVolkens/tmp00x
...
driver/tmp00x: make tmp006 more generic
2019-08-23 13:26:09 +02:00
cladmi
b3cb076286
tests/test_tools: add a test for the testing tools environment
...
Check the interaction with a board through make term.
It is using a shell without echo or prompt for reference.
It currently checks that there is no local echo.
2019-08-23 12:14:52 +02:00
Jannes
90c4ef04ef
driver/tmp00x: Change tmp006 to tmp00x and add tmp007
...
Rename TMP006 to TMP00x
Add TMP007 sensor support to TMP00X
Change uint8_t reg to uint16_t
Add to doxygen documentation group
Expose compile time configurations
Move defines from .c to .h
Change double to float, because double is not needed
Add TMP007 register information
2019-08-23 12:11:16 +02:00
Juan I Carrano
647b0cdd29
Merge pull request #12040 from cladmi/pr/tests/unittests/move_cpp_test
...
tests/cpp_ctors: move tests-cpp_ctors out of unittests
2019-08-22 15:46:38 +02:00
349b83c117
Merge pull request #6927 from OTAkeys/pr/ncv7356
...
can: add ncv7356 SW transceiver driver
2019-08-22 15:18:35 +02:00
Gaëtan Harter
1e0ca7ca7f
tests/unittests: remove the 'DISABLE_TEST_FOR_ARCH'
...
Remove the arch disabling tests handling as now unused.
If something like this is necessary again the test must be put
outside of unittests.
2019-08-22 12:39:47 +02:00
Gaëtan Harter
5638881e5b
tests/cpp_ctors: move tests-cpp_ctors out of unittests
...
This moves 'unittests/tests-cpp_ctors' to its own test.
It prevents requiring 'cpp' in the 'unittests' that forced almost all
architectures to link the unittests with `g++`.
It also removes the need to have disabled tests for architectures.
Some boards were actually not big enough to compile unittests.
But were hidden by the 'cpp' missing feature.
Blacklist boards that were disabled for cpp test even though they
provide the 'cpp' feature.
2019-08-22 12:39:47 +02:00
Gaëtan Harter
1ec4e45f77
tests/unittests: blacklist 8/16bit boards as they do not compile
...
The boards do not compile the unittests due to issue with too long
integers and other issues.
2019-08-22 10:52:58 +02:00
Juan I Carrano
c35cbda1bf
Merge pull request #12038 from cladmi/pr/tests/crypto/add_rfc_nist_tests
...
tests/sys_crypto: add RFC3610 and NIST SP 800-38C tests
2019-08-21 18:46:43 +02:00
Gaëtan Harter
46c79018f3
tests/sys_crypto: add tests from NIST SP 800-38C
...
Taken from pycrypto tests input
2019-08-21 17:52:45 +02:00
Gaëtan Harter
d61f3c23ca
tests/sys_crypto: add remaining tests from RFC 3610
...
Taken from pycrypto tests input
2019-08-21 17:52:45 +02:00
Gaëtan Harter
1e7242ac82
tests/sys_crypto: change naming and formatting
...
* use names with RFC
* add terminating comma
* remove newlines between tests values
This prepares for the format of the next commit adding all RFC tests.
This will reduce the number of changes in upcoming commit.
2019-08-21 17:52:45 +02:00
Gaëtan Harter
330b9669a3
tests/sys_crypto: move tests-crypto out of unittests
...
This moves unittests/tests-crypto to its own test.
It should allow adding big test vectors without preventing boards from
running the tests.
2019-08-21 17:52:45 +02:00
Juan I Carrano
e7957e6d9b
Merge pull request #11688 from cladmi/pr/tests/pthread_rwlock/enable_in_ci
...
tests/pthread_rwlock: run the test in CI
2019-08-21 17:15:53 +02:00
Marian Buschsieweke
938b36a29c
Merge pull request #12054 from cladmi/pr/unittests/sht1x/limit_test_vectors_on_board
...
unittests/sht1x: decrease the amount of tested values on board
2019-08-21 16:03:04 +02:00
Gaëtan Harter
9cd08d4999
tests/pthread_rwlock: run the test in CI
...
HACK, the test currently fails in CI for `native` due to `utf-8` handling.
2019-08-21 15:46:47 +02:00
Gaëtan Harter
0aae704fd4
tests/pthread_rwlock: lock around prints
...
The test assumes that 'printf/puts' are non interruptible operations.
Use a mutex to guarantee it.
Without this, the automated test was failing in some configurations with
lines being cut by others.
2019-08-21 15:46:19 +02:00
Gaëtan Harter
2a24c7ee20
unittests/sht1x: decrease the amount of tested values on board
...
Reduce the amount of tested values by a 100.
This makes the testing time go from 3 minutes to 2 seconds on
`frdm-kw41z`.
Testing that the integer calculation matches the float one does not need
to be performed on the full range on boards. Checking some values should
be enough to detect overflow issues.
The full range checking is kept on native.
2019-08-21 14:54:35 +02:00
Gaëtan Harter
8e5422ff78
applications: remove 'TEST_ON_CI_WHITELIST += all'
...
This is now the default so not required anymore.
2019-08-21 12:51:17 +02:00
Gaëtan Harter
084c6f739d
tests/lwip: disable failing test
...
The test fails on both murdock and on my machine due to the process
exiting directly.
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
2019-08-21 12:49:24 +02:00
Gaëtan Harter
1f11843623
tests/pkg_fatfs_vfs: disable tests that need setup
...
The test need a manual setup that cannot currently be done in CI.
2019-08-21 12:49:00 +02:00
Gaëtan Harter
f7176f425f
tests/gnrc: disable tests that need setup and root
...
Disable running tests that need a setup and run with root as they cannot
currently be run in CI.
2019-08-21 12:46:51 +02:00
Gaëtan Harter
12d4b71c31
tests/socket_zep: define TEST_ON_CI_BLACKLIST
...
HACK, the test currently fails in CI for 'native' due to binding issue
2019-08-21 12:40:40 +02:00
Gaëtan Harter
095268a33a
tests/netstats_l2: run the test in CI
...
HACK, blacklist native as it fails to create a tun interface in murdock.
2019-08-21 12:40:40 +02:00
Gaëtan Harter
622fe2c28f
tests/pthread_rwlock: run the test in CI
...
HACK, the test currently fails in CI for `native` due to `utf-8` handling.
HACK, the test implementation can fail due being de-scheduled during printf.
2019-08-21 12:40:40 +02:00
Vincent Dupont
af66fe101d
can/isotp: allow changing FC options at runtime
2019-08-21 11:16:56 +02:00
Vincent Dupont
cb15c86024
tests/can_trx: add ncv7356 build
2019-08-21 11:05:51 +02:00
d6356bdc08
Merge pull request #11692 from maribu/fmt_table
...
sys/fmt: Added submodule fmt_table for printing tables
2019-08-20 22:18:54 +02:00
Peter Kietzmann
11b4bab101
Merge pull request #10340 from maribu/cc110x_rewrite
...
drivers/cc110x: Complete rewrite from scratch
2019-08-20 17:58:21 +02:00
Marian Buschsieweke
a84de4225d
examples,tests: Add msba2 to BOARD_PROVIDES_NETIF
2019-08-20 17:05:09 +02:00
Juan I Carrano
d2970332fc
Merge pull request #12009 from cladmi/pr/application/board_equal/bug
...
dist/tools/build_system_sanity_check: check BOARD set as ?=
2019-08-20 16:52:21 +02:00
Marian Buschsieweke
f33b963ef4
tests: Added test for the cc110x driver
...
The test application provides:
- RIOT's basic network utilities such as `ping6`
- A custom `cc110x` shell command that can be used print the low level device
and driver state. This is mostly useful for debugging.
2019-08-20 16:40:15 +02:00
Marian Buschsieweke
18bc0ce5fc
tests/driver_ltc4150: Use new fmt_table API
2019-08-20 14:33:15 +02:00
Marian Buschsieweke
615e25f319
drivers: Removed driver for CC110x transceivers
...
- Removed cc110x driver
- Updated all makefiles
- Kept both board specific configurations and support for it in RIOT's
upper layers, so re-implementations don't need to start from zero
2019-08-19 12:56:47 +02:00
913614ef04
Merge pull request #11004 from jcarrano/shell_cancel_line_ctrl-c
...
sys/shell: cancel current line on CTRL-C.
2019-08-16 13:00:33 +02:00
Juan Carrano
2946f4b192
tests/shell: Test cancelling a line with ctrl-C.
...
Send garbage, cancel it and issue a valid command. No errors should
ocurr.
2019-08-15 17:40:17 +02:00
Juan Carrano
3f46863426
tests/shell: use tuple instead of dictionary in test scripts.
...
Python dictionaries are not guaranteed to be ordered until version
3.7. In 3.6 they are ordered too, but that is an implementation
detail. riotdocker seems to be using 3.5.
As it stands now, it would not be a problem if the test commands
are run in a random order, except that:
- It would result in non-reproduceable tests.
- It hinders testing other functionality, such as exiting the shell.
2019-08-15 17:13:42 +02:00
Juan Carrano
cdfece682f
tests/shell: Use socat as the RIOT_TERMINAL.
...
For test scripts, a terminal that does not modify the input and output
streams, configured without local echo, is preferred as it ensures the
test setup is introducing as little noise as possible.
2019-08-15 17:12:54 +02:00
Gaëtan Harter
ac8a6cf3a3
tests/libfixmath: use test_utils_interactive_sync
...
Replace the 'xtimer_sleep' hack to prevent flooding at startup to use
test_utils_interactive_sync for synchronizing.
2019-08-15 12:30:59 +02:00
Gaëtan Harter
4c209ab8d7
tests/libfixmath: explicitly import ARRAY_SIZE definition
...
ARRAY_SIZE is implicitly imported by "xtimer.h" which will be removed of
this file.
2019-08-15 12:30:37 +02:00
Gaëtan Harter
ed27d3b68b
tests/posix_time: use test_utils_interactive_sync
...
Use test_utils_interactive_sync for synchronizing test instead of the
custom 'getchar' handling.
2019-08-15 12:26:28 +02:00
Gaëtan Harter
1172ca9f93
tests/xtimer_usleep: use test_utils_interactive_sync
...
Use test_utils_interactive_sync for synchronizing test instead of the
custom 'getchar' handling.
2019-08-15 12:26:28 +02:00
Gaëtan Harter
f193ffd604
tests/cond_order: use test_utils_interactive_sync
...
Use test_utils_interactive_sync for synchronizing some case treat
the output before `reset` as the start of the test,
which fails for some boards/configurations.
2019-08-15 12:26:28 +02:00
Gaëtan Harter
a9e7e1b1d0
tests: do not unconditionally set BOARD
...
Remove unconditionally setting 'BOARD' to an hardwritten value.
The definition must be moved before including 'Makefile.tests_common' as
it defines 'BOARD ?= native'.
2019-08-14 17:11:34 +02:00
Francisco
414df99a4c
Merge pull request #11083 from cladmi/pr/docker/hack/bootloader
...
tests/mcuboot: handle building in docker
2019-08-14 15:17:44 +02:00
Marian Buschsieweke
c225636966
Merge pull request #10555 from gschorcht/irq_handler
...
sys: single interrupt handler thread for interrupts in modules with blocking functions
2019-08-13 15:08:53 +02:00
Gunar Schorcht
5fe75a9766
tests/sys_irq_handler: test for sys/irq_handler
...
Test application for sys/irq_handler.
2019-08-13 14:50:48 +02:00
Francisco
7705f6a93e
Merge pull request #11968 from aabadie/pr/tests/printf_format
...
tests/log_printfnoformat: add test application & script
2019-08-12 16:58:42 +02:00
Martine Lenders
0bfef4cdae
tests/gnrc_ndp: enhance coverage
2019-08-09 11:47:08 +02:00
Francisco
ca2b00875a
Merge pull request #11687 from cladmi/pr/tests/pkg_u8g2/enable_in_ci
...
tests/pkg_u8g2: run the test in CI
2019-08-08 10:15:56 +02:00
Hauke Petersen
02df6ab13f
Merge pull request #11000 from miri64/gnrc_sixlowpan_frag/new/vrb
...
gnrc_sixlowpan_frag: initial import of the VRB
2019-08-07 17:33:01 +02:00
Martine Lenders
2cd46e57ab
tests: add unittests for gnrc_sixlowpan_frag_vrb
2019-08-07 16:19:36 +02:00
Hauke Petersen
4a75d0bdd5
Merge pull request #11463 from aabadie/nimble_nrf51
...
pkg/nimble: adapt to nrf51 family
2019-08-07 13:54:32 +02:00
Juan I Carrano
ff57a904e3
Merge pull request #10271 from mtausig/aes_rv
...
Fix return value of aes_init for keys of incorrect length
2019-08-07 13:26:25 +02:00
Mathias Tausig
0d80383a5c
crypto: Add tests for aes_init return value on bad key length
2019-08-07 11:02:16 +02:00
Mathias Tausig
17b2f3ac54
crypto: Call AES tests with real key length
2019-08-07 11:02:16 +02:00
Mathias Tausig
0352c7406d
crypto: Fix code style
2019-08-07 11:02:16 +02:00
Hauke Petersen
b72f606ef4
tests/nimble_l2cap: adjust buffer sizes for nrf51
2019-08-07 09:53:55 +02:00
Benjamin Valentin
4918dfe590
tests: make use of ARRAY_SIZE macro
2019-08-06 19:43:54 +02:00
accff501d9
tests/log_printfnoformat: add test application & script
2019-08-06 12:05:52 +02:00
60455a9f3a
Merge pull request #11962 from fjmolinas/pr_nucleol152re_qdsa
...
tests/pkg_qdsa: increase timeout
2019-08-05 16:18:46 +02:00
Francisco Molina
b2b915d217
tests/pkg_qdsa: increase timeout
...
- Some boards take longer than the default timeout to finish the test,
e.g. nucleo-l152re
2019-08-05 15:27:36 +02:00
Hauke Petersen
2e73e7f043
tests: add Nordic SoftDevice test app
2019-08-05 12:09:00 +02:00
Hauke Petersen
7e9c7ee98d
tests/nimble_l2cap: adjust buffer sizes
2019-08-01 16:15:56 +02:00
Martine Lenders
6e9612f1d1
Merge pull request #11928 from gschorcht/sys/event/detached_init
...
sys/event: fix of compilation problems
2019-07-29 17:02:14 +02:00
Gunar Schorcht
dcfd83c1ba
tests/event: use EVENT_QUEUE_INIT_DETACHED
...
Changes the test so that EVENT_QUEUE_INIT_DETACHED is used for the initialization of detached event queue. Without this change, a compilation problem was not recognized for ESP8266, MSP430 and MIPS.
2019-07-29 16:40:41 +02:00
Francisco
9028be5e08
Merge pull request #11925 from leandrolanzieri/pr/tests/sx127x_reset_cmd
...
tests/driver_sx127x: Add reset command
2019-07-29 14:42:40 +02:00
Leandro Lanzieri
a9ab9d37e2
Merge pull request #11765 from kb2ma/coap/encode_resources
...
net/gcoap: add/publish link format attributes for a resource
2019-07-27 22:36:33 +02:00
Ken Bannister
d481ca9da7
net/gcoap: add selectable function to write a link
2019-07-27 07:09:40 -04:00
Leandro Lanzieri
3fd65f7517
tests/driver_sx127x: Add reset command
2019-07-26 13:53:33 +02:00
Juan I Carrano
7d3817e8f1
Merge pull request #11686 from cladmi/pr/tests/lua_loader/enable_in_ci
...
tests/lua_loader: run the test in CI
2019-07-26 12:14:10 +02:00
Martine S. Lenders
b8b1e4c0fb
tests/gnrc_netif: check if if_pid is set correctly in header
...
Previously this was not tested and excepted KERNEL_PID_UNDEF == 0 as
legal value for received `gnrc_netif_hdr`s (which except for the
loopback interface is wrong)
2019-07-25 14:15:37 +02:00
kenrabold
e4bee51a9d
tests/* : blacklisting for hifive1b
2019-07-19 13:25:18 -07:00
Martine Lenders
7d2cb71c51
Merge pull request #11564 from pokgak/credman
...
sys: add credman (D)TLS credential management module
2019-07-19 16:38:47 +02:00
Marian Buschsieweke
d15b8201b4
Merge pull request #10717 from keestux/refactor-evtimer-add-del
...
sys/evtimer: refactor evtimer add()/del()
2019-07-19 15:00:29 +02:00
Aiman Ismail
0a3f12ebbc
tests: add credman unit tests
2019-07-19 13:56:40 +02:00
Aiman Ismail
8f75ff6b9a
tests/unittests: rename set_up/tear_down caller
...
Renames the `tests_<module>_<header>_set_up` and in EMB_UNIT_TESTCALLER
`tests_<module>_<header>_tear_down` to `set_up` and `tear_down` respectively.
2019-07-19 12:10:12 +02:00
8150b014b1
Merge pull request #11801 from kaspar030/update_pkg_libcose
...
pkg/libcose: bump version
2019-07-18 09:44:32 +02:00
Kees Bakker
ea11de5258
tests/evtimer_msg: modify test to delete entries
...
The evtimer_msg test is expanded to also delete entries.
Furthermore the messages that are printed should now show
numbers that are very close (if not equal). Something like
this:
At 740 ms received msg 0: "#2 supposed to be 740"
At 1081 ms received msg 1: "#0 supposed to be 1081"
At 1581 ms received msg 2: "#1 supposed to be 1581"
At 4035 ms received msg 3: "#3 supposed to be 4035"
The function evtimer_print is also called to show the
intermediate status of evtimer entries.
2019-07-17 20:52:12 +02:00
Gaëtan Harter
78ca09dd43
tests/devfs: move tests-devfs out of unittests
...
This moves unittests/tests-devfs to its own test.
It prevents requiring `periph_hwrng` in the `unittests`.
2019-07-17 16:05:39 +02:00
40c89531d2
tests/pkg_libcose: update to nanocbor-based libcose
...
Co-authored-by: Francisco Molina <femolina@uc.cl>
2019-07-17 10:31:18 +02:00
43c3e43c40
tests/riotboot: add re-flashing and image selection test
2019-07-15 11:30:49 +02:00
Kevin "Bear Puncher" Weiss
da3a17212e
Merge pull request #11831 from jcarrano/farewell-mips-malta
...
boards/mips-malta: remove board.
2019-07-13 16:07:46 +02:00
Gaëtan Harter
50449b341c
tests/pkg_u8g2: run the test in CI
...
HACK, the test currently fails in CI for `native` due to `utf-8` handling.
2019-07-12 18:52:54 +02:00
Gaëtan Harter
ce58a32ba9
tests/lua_loader: run the test in CI
...
HACK, the test currently fails in CI for `native` due to `utf-8` handling.
2019-07-12 18:52:18 +02:00
6c895e1484
Merge pull request #11743 from cladmi/pr/ci/add_test_blacklist
...
murdock: introduce 'TEST_ON_CI_BLACKLIST'
2019-07-12 13:56:31 +02:00
Juan I Carrano
ee6b6b9c38
boards/mips-malta: remove board.
...
The mips-malta board is a maintainance burden, has no working UART input
and is unobtainable and thus must be removed.
1. Unobtainable board
=====================
The mips-malta board is not an off-the-shelf part. A quick web
search only show the MIPS website where one is told to "contact sales".
I could find it on ebay, used, at €155 and from single seller.
Not having access to the board means:
a. We cannot maintain it. In fact it could be broken right now.
b. Potential RIOT uses have not access to the board either. In other
words, it is pointless to run on hardware nobody has.
2. No working UART input
========================
Not all applications need UART input, but that is no excuse for not supporting
it:
a. Makes development & debugging way harder.
b. It is impossible to run interactive tests.
b.1. Constrains the rest of the platforms by providing an incentive to not
make tests interactive.
c. The lack of UART is a witness to the poor quality of the port.
I want to stress point (c). If something as basic as a serial port cannot work,
how can we expect more complex fucntionality to work. The answer is impossible
to know, because of point (1).
3. Maintainance burden
======================
The RIOT project has limited time and human resources which can be better spent.
a. Compiling for mips-malta wastes CPU time.
b. Blacklisting the board in the test wastes contributor's time.
c. Adapting the board's makefile during build system rework takes time and makes
the reworks harder.
c.1. Add to that that the changes are most of the time not even tested on the board
because of (1). Look at the github issues/PRs and you will see it.
d. Developers usually stick to the lowest common denominator. Issue (2) sets this
denominator unacceptably low.
MIPS platform in general
========================
In commits I will address general issues in the MIPS platform and why it should all
be removed.
2019-07-12 12:24:52 +02:00
Francisco
ba5106df4f
Merge pull request #9517 from aabadie/pr/board/stm32l0538-disco
...
boards/stm32l0538-disco: add initial support
2019-07-09 09:06:14 +02:00
4ac2b4ec2b
tests: exclude stm32l0538-disco board
...
because of insufficient memory available
2019-07-08 21:50:36 +02:00
8370acb2ff
tests/riotboot_flashwrite: blacklist some boards
...
Adding saml1[01]-xpro, nucleo-f302r8|f334r8 to
BOARDS_INSUFFICIENT_MEMORY.
The riotboot build fails because it only offers half the flash size (per
slot), compared to before where the default build would not use riotboot
at all, thus have double the flash (but being useless).
2019-07-08 16:54:43 +02:00
bb71e979f3
riotboot: set FLASHFILE to RIOTBOOT_EXTENDED_BIN
...
... if the riotboot feature is used.
Previously, even an application that had "FEATURES_REQUIRED += riotboot"
set would still flash the non-riotboot binary on "make flash".
This is usualy not what the user wants.
This commit set's the FLASHFILE variable to the combined "riotboot
bootloader + slot0 + empty slot1" binary. This has the effect that make
all, flash and flash-only will compile and/or flash a working riotboot
setup.
tests/riotboot and tests/riotboot_flashwrite now default to flashing the
riotboot-extended binary. tests/riotboot was previously configured to
use the riotboot-combined binary. This has been changed in order to not
behave differently than how usual riotboot applications do.
2019-07-08 16:33:01 +02:00
34d20f4e36
tests/nanocbor: enable for 8 and 16 bit platforms
2019-07-05 20:48:39 +02:00
91d982733f
Merge pull request #11600 from bergzand/pr/pkg/nanocbor
...
nanocbor: Initial support for the nanocbor package
2019-07-05 15:07:04 +02:00
86db9b88de
nanocbor: Add small test application
2019-07-05 14:26:18 +02:00
Francisco
ad23896696
Merge pull request #11777 from aabadie/pr/tests/pkg_semtech_loramac_init_twice
...
tests/pkg_semtech-loramac: don't init the mac from main
2019-07-04 18:15:45 +02:00
Martine Lenders
16f0751102
Merge pull request #11745 from miri64/gnrc_ipv6/fix/rm-dangerous-dup
...
gnrc_ipv6: remove obsolete and harmful reception code
2019-07-03 23:50:06 +02:00
Martine S. Lenders
b8269316e6
tests: add test case for pointer confusion
...
When subscribing to IPv6 packets on a router for sniffing, the NETIF
header is released prematurely, because of a wrong
`gnrc_pktbuf_start_write()` call. This test aims to reproduce this
error case.
2019-07-03 14:44:03 +02:00
660b375082
tests/pkg_semtech-loramac: don't init mac from main
...
This application already uses auto_init and semtech_loramac_init is already called from auto_init_loramac
2019-07-03 14:42:26 +02:00
Leandro Lanzieri
326ec30074
Merge pull request #11741 from jcarrano/deprecate-ubjson
...
sys/ubjson: deprecate module.
2019-06-28 19:41:21 +02:00
Juan Carrano
3b8deac3e9
sys/ubjson: deprecate module.
...
Summary for Users
=================
Deprecation is scheduled for 2020.01.
Users which depend on this module and cannot switch libraries may copy
the code into to their own application.
As expressed in PR #11724 , the UBJSON module has issues which are not easy
or worth fixing.
Before removing the module, it should be marked as deprecated to give users
time to either migrate to another library, or copy the code to their own
private repo.
The deprecation warning has been supressed from the unit tests. This has the
ugly side-effect of supressing deprecation warning in other unit tests too,
but that should not last long, only until the module is finally deleted.
2019-06-28 18:28:16 +02:00
Juan I Carrano
50ea0d822c
Merge pull request #11664 from cladmi/pr/make/variables_lazy_evaluation
...
makefiles/utils/variables: add functions to help managing variables
2019-06-28 17:11:29 +02:00
6c271f6927
Merge pull request #11736 from jia200x/pr/sx127x_netops
...
sx127x: add several NETOPT for GNRC LoRaWAN
2019-06-28 15:23:56 +02:00
Jose Alamos
398cf6648f
tests/sx127x: add handlers for new NETOPTs
2019-06-28 11:36:11 +02:00
Gaëtan Harter
2c5eeca47a
makefiles/utils: function to memoize a variable evaluation
...
This allow deferring a variable evaluation to its usage but still
benefit from only evaluating it once on multiple uses.
2019-06-28 11:34:43 +02:00
Gaëtan Harter
fcf8c4782d
makefiles/utils: function to export variables for a target
...
This allows exporting variables only for some target.
It will allow not exporting variables when not needed, and so prevent
unnecessary evaluation.
2019-06-28 11:33:54 +02:00
Leandro Lanzieri
6938df1f82
Merge pull request #11659 from aabadie/pr/tests/driver_rn2xx3_tx_mode_fix
...
tests/driver_rn2xx3: fix invalid element index for txmode
2019-06-28 10:39:39 +02:00
José Alamos
14f91388bd
Merge pull request #11754 from jia200x/pr/sx127x_test_unc
...
drivers/sx127x: uncrustify main file
2019-06-27 15:43:21 +02:00
Jose Alamos
0a73369aea
tests/driver_sx127x: uncrustify main file
2019-06-27 14:45:16 +02:00
Sebastian Meiling
4f5ce88ba6
Merge pull request #7421 from OTAkeys/pr/dev_urandom
...
devfs: add /dev/urandom and /dev/hwrng
2019-06-26 21:33:32 +02:00
Gaëtan Harter
bdd721fff4
tests/xtimer: blacklist native instead of whitelisting
...
Blacklist native for the xtimer tests that have timing issues.
This also enables running the test on `nrf52dk` as I think it was
forgotten when adding the support.
2019-06-26 17:53:58 +02:00
Gaëtan Harter
eab0a88642
Merge pull request #11679 from JulianHolzwarth/pr/xtimer_mutex_lock_timeout/first_tests
...
tests/xtimer_mutex_lock_timeout: add simple case test
2019-06-26 16:27:39 +02:00
JulianHolzwarth
b3d2324ccf
tests/xtimer_mutex_lock_timeout: new test for mutex locked
...
New test function cmd_test_xtimer_mutex_lock_timeout_long_locked.
In this test the mutex is locked and the timeout is long.
When it works the thread continues running and stops waiting for the mutex and
the function will return that it did not get the mutex.
2019-06-26 15:28:25 +02:00
JulianHolzwarth
f207c6adc6
tests/xtimer_mutex_lock_timeout: minimal xtimer_mutex_lock_timeout test
...
Adding a first normal test case where the mutex is unlocked and the timeout is long.
The timer will not trigger in this test and instead wil be removed after getting the mutex.
2019-06-26 15:26:15 +02:00
5e2f2672e9
tests/*: add stdio_ethos as dependency instead of just ethos
2019-06-23 22:16:04 +02:00
d73a6c837b
tests/stdin: add non regression test for stdin
2019-06-22 22:10:20 +02:00
9c7a1e6a27
tests/lua_loader: add stdin dependency
2019-06-20 16:01:45 +02:00
7f5a402267
tests/posix_time,xtimer_usleep: add stdin dependency
2019-06-20 16:01:45 +02:00
Dylan Laduranty
ea36d68703
Merge pull request #11077 from bergzand/pr/usb/cdcecm
...
usbus: Add CDC-ECM (Ethernet Control Model) function
2019-06-14 18:44:27 +02:00
b13ef786bd
usbus_cdc_ecm: add test application
2019-06-14 17:15:19 +02:00
Hauke Petersen
4e9efe1fee
Merge pull request #11673 from aabadie/pr/exemples/nimble_radio_ble
...
pkg/nimble: add dependency to ble_nimble feature + remove board whitelist from tests and examples
2019-06-13 15:51:14 +02:00
Gaëtan Harter
224372d773
tests/lua_loader: remove deprecated test target
...
The test target is now defined in the common `Makefile.include`.
This removes the warning
Makefile: warning: overriding recipe for target 'test'
Makefile.include: warning: ignoring old recipe for target 'test'
2019-06-13 10:37:33 +02:00
e41df0c693
tests/nimble*: remove useless board whitelist
2019-06-12 17:41:31 +02:00
Leandro Lanzieri
864247d6ca
unitttests/sock_util: Test null pointer in urlsplit
2019-06-12 10:03:11 +02:00
Gaëtan Harter
33b3b5f3ee
tests/netstats_l2: use BOARD_WHITELIST
...
Use BOARD_WHITELIST instead of calculating BOARD_BLACKLIST from BOARDS.
The output of `make info-boards-supported` kept the same.
2019-06-07 15:32:39 +02:00
5f5e58f1e2
tests/driver_rn2xx3: fix invalid element index to txmode
2019-06-07 10:47:23 +02:00
Kevin "Bear Puncher" Weiss
002e033f5e
Merge pull request #11612 from ben-postman/pr_cc26x0_uart_mode
...
cpu/cc26x0: implement uart_mode()
2019-06-06 15:43:07 +02:00
Ben Postman
567fa8e32d
tests/periph_uart_mode: Add uart_mode test for single UART MCU
...
The existing periph_uart test depends on having more than one UART.
This test allows for manual testing with the use of a probe
on-behalf-of: @sparkmeter <ben.postman@sparkmeter.io>
2019-06-06 08:46:33 -04:00
Martine Lenders
71a7dc3539
unittests: add tsrb tests
2019-06-05 17:54:56 +02:00
Gaëtan Harter
bbb6dec054
Merge pull request #11630 from fjmolinas/pr_kinetis_ld
...
kinetis/ldscript: handle _rom_offset
2019-06-05 16:12:25 +02:00
francisco
985ee95d41
tests/cortexm_common_ld_script: add kinetis to whitelist
2019-06-04 18:11:55 +02:00
Martine Lenders
6b582fd5d0
Merge pull request #11593 from miri64/ipv6_ext/feat/frag
...
ipv6_ext: add fragmentation extension definitions
2019-06-04 17:12:51 +02:00
Martine Lenders
3e6cfcdb8c
tests: provide unittests for ipv6_ext_frag
2019-06-04 16:24:28 +02:00
Gaëtan Harter
24a54fe853
tests/mcuboot: handle building 'mcuboot' in docker
...
When using BUILD_IN_DOCKER only make 'all' execute 'mcuboot' target when
inside the container. Otherwise it will execute it using your host
toolchain.
This is a hack and could be prevented by having a file target put in
FLASHFILE.
This does currently not allow flashing after building in docker as
flashing should be done with `mcuboot-flash` which will not be done in
docker. It would require the `FLASHFILE` fix to be done properly.
2019-06-03 18:09:32 +02:00
Leandro Lanzieri
f56709e0bb
Merge pull request #9726 from jcarrano/lua-loader-fix
...
pkg/lua: Make the module searchers conform to the API.
2019-06-03 11:47:06 +02:00
Juan Carrano
913f74b90b
tests/lua_loader: test the RIOT-customized lua loader.
...
For the RIOT port of Lua, the module loader has been more or less
rewritten to allow for easily integrating source modules defined in static
arrays and C modules embedded in the application.
So far the loader had not been tested (and a bug was found). This test
should give a bit more certainty that the RIOT integration works as it
should.
2019-05-31 17:16:06 +02:00
Francisco
d1f06bd9c7
Merge pull request #8855 from aabadie/pr/pkg/semtech-loramac_shell
...
sys/shell: add loramac shell command
2019-05-29 18:06:05 +02:00
Peter Kietzmann
3e33c11c16
Merge pull request #11606 from leandrolanzieri/pr/tests/shell_stdio_rtt_fix
...
tests/shell: Initialize xtimer when stdio_rtt is used
2019-05-29 17:41:49 +02:00
Juan I Carrano
c6affd7388
Merge pull request #11602 from cladmi/pr/unittests/clean_board_insufficient_memory
...
tests/unittests: enable boards with enough memory
2019-05-29 17:23:13 +02:00
Leandro Lanzieri
859250c66f
tests/shell: Init xtimer when stdio_rtt is used
2019-05-29 17:18:30 +02:00
fd9b3c7b84
tests/pkg_semtech-loramac: use auto-init to initialize the mac
2019-05-29 16:53:53 +02:00
fdeba82b16
tests/pkg_semtech-loramac: use system shell command
2019-05-29 16:53:52 +02:00
56fb2578bf
tests/pkg_semtech-loramac: use semtech_loramac_rx with supported boards
2019-05-29 16:24:53 +02:00
14a4db137c
tests/pkg_semtech-loramac: conditionally build RX related code
2019-05-29 16:24:52 +02:00
0838cf99bb
tests/pkg_semtech-loramac: add RX thread for downlink messages
2019-05-29 16:24:23 +02:00
Vincent Dupont
c8655ab164
unittests: add random/hwrng tests in tests-devfs
2019-05-29 15:50:25 +02:00
Sebastian Meiling
1216c5f3b8
Merge pull request #11601 from cladmi/pr/unittests/remove_large_tests
...
tests/unittests: remove unused LARGE_STACK_TESTS
2019-05-29 11:12:12 +02:00
0c59ea132f
Merge pull request #11338 from lpaulic/pr/drivers-ds18-whitelist
...
tests/drivers_ds18: add tested boards to the board whitelist
2019-05-29 10:54:41 +02:00
Kevin "Bear Puncher" Weiss
772dcd189b
Merge pull request #11532 from leandrolanzieri/pr/drivers/at_rcv-functions
...
drivers/at: Add 'at_recv_bytes_until_string' function
2019-05-29 09:55:33 +02:00
Kevin "Bear Puncher" Weiss
6616032150
Merge pull request #9941 from bergzand/pr/pkg/monocypher/v205
...
pkg/monocypher: bump version to 2.0.5
2019-05-29 09:55:08 +02:00
Peter Kietzmann
2bc524fb4d
Merge pull request #10228 from bergzand/pr/checksum/fletcher16_split
...
Fletcher16: extend with multi-part functions
2019-05-28 22:49:19 +02:00
Gaëtan Harter
7286a99e55
tests/unittests: enable boards with enough memory
...
Now that tests with packages have been moved out of `unittests`
re-enable boards with enough memory.
The removed boards list matches the boards that now compiled locally
with `BUILD_IN_DOCKER=1 make buildtest` and also the output of murdock
for boards that were able to link despite being in the list:
avsextrem:gnu
cc2538dk:gnu
firefly:gnu
mbed_lpc1768:gnu
msba2:gnu
openmote-b:gnu
openmote-cc2538:gnu
remote-pa:gnu
remote-reva:gnu
remote-revb:gnu
seeeduino_arch-pro:gnu
2019-05-28 21:54:33 +02:00
Gaëtan Harter
d17b092232
tests/unittests: remove renamed openmote
...
The board as renamed to openmote-cc2538.
2019-05-28 21:54:19 +02:00
Gaëtan Harter
ecd174c488
tests/unittests: remove unused LARGE_STACK_TESTS
...
All tests that were in LARGE_STACK_TESTS have been moved out of the directory.
This handling is not needed anymore.
2019-05-28 20:50:20 +02:00
Cenk Gündoğan
b6655a2bba
Merge pull request #10988 from miri64/gnrc_sixlowpan_frag/enh/expose-interval-type
...
gnrc_sixlowpan_frag: prepare reassembly base types for VRB
2019-05-28 18:55:55 +02:00
Gaëtan Harter
79877679e4
Merge pull request #10210 from bergzand/pr/pkg/spiffs_move
...
tests/spiffs: Move from unittests to regular test
2019-05-28 18:53:20 +02:00
Peter Kietzmann
3e5a00d14c
Merge pull request #11595 from cladmi/pr/tests_rng/fix_for_msp430
...
tests/rng: fix for msp430
2019-05-28 18:44:37 +02:00
Francisco
b8d602abdc
Merge pull request #11583 from aabadie/pr/pkg/semtech-loramac-cflags
...
pkg/semtech-loramac: move region CFLAGS definitions from applications to pkg
2019-05-28 18:42:03 +02:00
e80fccaf50
Merge pull request #11511 from gdoffe/scanf_float
...
sys: add pseudomodule scanf_float
2019-05-28 18:23:43 +02:00
Martine Lenders
52e4247798
gnrc_sixlowpan_frag: introduce reassembly buffer base class
2019-05-28 18:07:42 +02:00
Martine Lenders
495eaa36a6
gnrc_sixlowpan_frag: remove unnecessary type indirection
...
The members of `rbuf_t` and `gnrc_sixlowpan_rbuf_t` are now identical
so we can remove the internal type.
2019-05-28 18:07:42 +02:00
Martine Lenders
8cc5d94956
gnrc_sixlowpan_frag: add arrival time to public type
...
The arrival time is also needed for the VRB's garbage collection.
2019-05-28 18:07:42 +02:00
Martine Lenders
b84e496563
gnrc_sixlowpan_frag: add intervals to public type
...
The fragment intervals are also required by the VRB, so make them part
of the public representation of a reassembly buffer.
2019-05-28 18:07:42 +02:00
eb7d7d6d99
tests/spiffs: Move from unittests to regular test
2019-05-28 17:41:11 +02:00
1d38863e2e
tests/littlefs: Move from unittests to regular test
2019-05-28 17:39:26 +02:00
Gaëtan Harter
381382b61a
tests/rng: take into account stack buffers and printf
...
Take into account stack buffers and printf for allocating the default
stack size.
This solves stack size issues with `wsn430-v1_3b` and `z1`.
It now have a main stack usage of 514 bytes out of 768 on `wsn430-v1_3b`.
2019-05-28 15:43:15 +02:00
Gaëtan Harter
d1c454790f
tests/rng: alloc shell buffer in .data
...
Do not allocate the shell buffer on stack to reduce stack usage.
2019-05-28 15:43:15 +02:00
Gaëtan Harter
0e66b18f0c
tests/rng: expect shell prompt in test
...
Be more pedantic in expected output for shell commands.
For slow boards, `ws430-v1_3b/arduino-mega2560/msba2`, some commands
were sent before the output of the previous command.
2019-05-28 15:43:15 +02:00
Juan Carrano
66c66b59a5
tests/unittests: add tests for scanf_float.
...
Newlib-nano does not seem to support hexadecimal floats or the %a
specifier. What is even weirder, it reports a successful conversion
anyways.
Tests for these two cases have been commented out.
2019-05-28 12:10:39 +02:00
Gaëtan Harter
fe81c51dcd
tests/cortexm_common_ldscript: update code section for kinetis
...
Update the 'code' section detection to also work on kinetis.
The boards using 'cortexm.ld' have the code section starting with
'.text'. For the 'cpu/kinetis/kinetis.ls' the first section is '.vector'.
Update the 'awk' matching pattern to correctly detect the kinetis boards.
It is a dependency to allow testing upcoming offset support with kinetis.
I am not 100% sure about the pattern for awk.
2019-05-27 15:45:49 +02:00
92ee05289a
tests/pkg_semtech_loramac: remove useless lora region cflags
2019-05-26 11:47:16 +02:00
Martine Lenders
b251f96022
tests/pkg_minmea: remove blacklisting of ATmega-based boards
...
The reason for the blacklisting was fixed in the current version of
minmea.
2019-05-24 19:03:27 +02:00
Martine Lenders
5522f3d7a5
tests/pkg_minmea: port to fmt
...
With `newlib-nano` and other smaller `libc`s the output of floats does
not work with `printf()`. Since minmea uses floating point operations
I used `fmt` instead.
2019-05-24 18:58:47 +02:00
Marian Buschsieweke
855b5bd54d
tests: Updated BOARD_INSUFFICIENT_MEMORY
...
Added arduino-leonardo to BOARD_INSUFFICIENT_MEMORY where needed
2019-05-24 17:57:44 +02:00
Marian Buschsieweke
5522e9efb5
tests: Updated BOARD_BLACKLIST
...
Added arduino-leonardo to BOARD_BLACKLIST where needed
2019-05-24 17:56:42 +02:00
Marian Buschsieweke
112b88f7ee
tests/periph_timer: Set freq for Arudino Leonardo
...
The Arduino Leonardo requires - like the other ATmega based Arduinos - a
different frequency than the default 1000000, as this frequency cannot be
achieved on a 16MHz ATmega with any available prescaler.
2019-05-24 15:12:47 +02:00
Martine Lenders
10d0dfaf33
Merge pull request #11378 from kaspar030/tests/pthread_tls_allow_negative_key
...
tests/pthread_tls: allow negative key values
2019-05-23 16:14:58 +02:00
69a38f8b7b
tests/driver_ds75lx: add test application
2019-05-22 16:54:19 +02:00
07a7ae9c3a
test: not enough memory for i-nucleo-lrwan1
2019-05-21 09:57:33 +02:00
ea2988c057
tests: add lsn50 to insufficient memory boards
2019-05-17 22:43:04 +02:00
Hauke Petersen
e172c80bad
tests/nimble_l2cap: adapt to config var name change
2019-05-17 10:34:26 +02:00
Hauke Petersen
5bd53db88f
tests/l2cap: use newly introduced TX_UNSTALLED evt
2019-05-17 10:34:26 +02:00
Leandro Lanzieri
d57f8ff793
Merge pull request #11536 from ParksProjets/pr_ds18
...
drivers/ds18: fix `ds18_read` for negative temperatures
2019-05-17 10:27:51 +02:00
Guillaume Gonnet
c9fa1d7503
tests/drivers_ds18: display negative numbers
...
When `ds18_read` returns -2506, DS18 test print `Temperature [ºC]: -25.-6`
whereas it should print `Temperature [ºC]: -25.06. This commit fixes this
issue.
2019-05-16 20:22:02 +02:00
Leandro Lanzieri
f5f76c7375
tests/driver_at: Fix README typo
2019-05-16 14:45:53 +02:00
Leandro Lanzieri
b5171f4d48
tests/driver_at: Add receive until string test
2019-05-16 14:45:53 +02:00
Hauke Petersen
8637d308bd
tests: add test for evens_wait_timeout()
2019-05-16 12:01:42 +02:00
Gaëtan Harter
dde4fe0dc1
Merge pull request #11493 from fjmolinas/pr_xtimer_usleep_negative
...
tests/xtimer_usleep: fail with negative offsets
2019-05-14 12:45:15 +02:00
francisco
a687a26f42
tests/xtimer_usleep: fail with negative offset
...
- xtimer_usleep(timeout) should sleep for at least timeout us.
Negative offset, i.e. sleeping less than the specified time
is incorrect.
2019-05-14 08:57:29 +02:00
Juan I Carrano
cbc08edcd1
Merge pull request #11358 from fjmolinas/riot-cortexm-address-check
...
cpu/cortexm_common: function to check address validity
2019-05-13 11:50:48 +02:00
Oleg Artamonov
a5ce6deb02
cpu/cortexm_common: function to check address validity
2019-05-13 09:35:34 +02:00
Martine Lenders
98f97afc97
Merge pull request #11467 from kaspar030/increase_posix_semaphore_timeout
...
tests/posix_semaphore: unify and increase allowed test4 margin
2019-05-06 15:47:45 +02:00
a9cd9433f0
tests/posix_semaphore: unify and increase allowed test4 margin
...
Previously, there was a very tight allowed margin (100us), then some
special cases for platforms for which the test would otherwise fail,
increasing the margin.
This turned out to be a maintanance burden, as each slightly special
board needed a PR adding the special case.
This commit sets a quite large margin (1000us, 0.1% of total delay),
which should be large enough to not trip over platform-induced timer
inaccuracies, but still verify that the module is using timers
correctly.
(This is not a timer accuracy test.)
2019-05-06 14:51:44 +02:00
Dylan Laduranty
c49e72ac66
Merge pull request #11307 from fedepell/rwwee_autotests
...
tests/periph_flashpage: add RWWEE automatic test if hw supports it
2019-05-04 23:46:17 +02:00
Gaëtan Harter
ad599f724d
tests/pkg_cc25519: increase timeout for arduino-mega2560
...
`arduino-mega2560` finishes the test in 170 seconds so set a bigger timeout.
2019-04-30 21:59:54 +02:00
Francisco
c073e56b25
Merge pull request #11448 from cladmi/pr/tests/periph_hwrng
...
tests/periph_hwrng: add automated python test
2019-04-30 08:43:00 -07:00
Gaëtan Harter
564402e88f
tests/periph_hwrng: enable test in murdock
2019-04-30 15:50:09 +02:00
Francisco
cd0ab4a193
Merge pull request #11469 from aabadie/tests/periph_timer_kw41z
...
tests/periph_timer: include kw41z boards in low-power timer boards
2019-04-30 06:23:29 -07:00
96fd49520b
tests/periph_timer: include kw41z boards in low-power timers
2019-04-30 14:58:40 +02:00
Frank Hessel
19275d5788
tests/driver_sdcard_spi: Use uint8_t for byte buffers
2019-04-29 19:25:39 +02:00
Gaëtan Harter
9a15b32c57
tests/periph_hwrng: add automated python test
...
Add the automated test for 'periph_hwrng'. It only checks that numbers
are returned, not their value.
2019-04-25 15:21:26 +02:00
Martine Lenders
1fdccd5a2e
Merge pull request #11429 from jia200x/pr/fix_at86rf2xx_test
...
drivers/at86rf2xx: enable NETOPT_RX_END_IRQ and fix RSSI values
2019-04-24 20:26:23 +02:00
Martine Lenders
c1be18a002
tests/gnrc_udp: include gnrc_pktbuf_cmd
per default
...
`tests/gnrc_udp` was specifically introduced for testing the release
specs. All of them ask the tester to check the packet buffer after the
test. So it makes sense to include the module that allows for that per
default for this test so the tester does not forget to include it ;-).
2019-04-24 16:45:25 +02:00
Martine Lenders
cfde3f1596
Merge pull request #11387 from danpetry/tests/periph_rtt_testfix
...
tests/periph_rtt: Correct the test script syntax
2019-04-23 12:30:15 +02:00
Jose Alamos
576bbaa248
drivers/at86rf2xx: print signed RSSI instead of unsigned
2019-04-23 11:15:26 +02:00
Jose Alamos
53a54dcea1
tests/at86rf2xx: enable NETOPT_RX_END_IRQ
2019-04-23 11:14:05 +02:00
José Alamos
d16d911f42
Merge pull request #10120 from mtausig/ocb
...
Add OCB encryption mode
2019-04-23 11:08:30 +02:00
Mathias Tausig
dcab239b9b
crypto: Implement Unit Tests for OCB mode
2019-04-23 10:36:31 +02:00
c93bb62040
Merge pull request #11427 from aabadie/pr/pkg/c25519_make_cleanup
...
pkg/c25519: cleanup in Makefiles
2019-04-23 09:55:56 +02:00
ddc909f8d9
tests/pkg_semtech-loramac: fix build commands in README
2019-04-22 21:12:25 +02:00
33bc8b67cc
tests/pkg_c25519: remove useless test target
2019-04-22 21:08:47 +02:00
Juan I Carrano
7169695cb5
Merge pull request #11379 from kaspar030/tests/pthread_cooperation_disable_hifive1
...
tests/pthread_cooperation: add hifive1 to BLACKLIST
2019-04-15 13:52:42 +02:00
Gilles DOFFE
3a83648f2a
drivers: add licence to motor_driver source files
...
Related to PR #10290 , add missing licence to some source files.
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-04-13 00:29:58 +02:00
danpetry
b3ed7ade10
tests/periph_rtt: Correct the test script syntax
...
Previously the test was failing due to apparently incorrect Python syntax in
the testrunner script. This fix corrects this and the test now passes.
2019-04-12 14:39:14 +02:00
afc983724b
tests/pthread_cooperation: add hifive1 to BLACKLIST
...
The hifive1 has only 16kB of memory. The tests tries to allocate 12
thread stacks with 1kB (default) stacksize each. The corresponding
malloc() fails for the last two threads, making the test fail silently.
2019-04-11 15:42:42 +02:00
33783d9fa2
tests/pthread_tls: allow negative key values
...
On Hifive1, the created keys have a negative value. This commit
adjusts the pexpect script to allow for that.
2019-04-11 15:34:00 +02:00
Martine Lenders
364499f212
Merge pull request #11356 from jcarrano/fix_udp_atoi-master
...
tests/gnrc_udp: Replace atoi() by strtol().
2019-04-11 12:48:21 +02:00
Juan Carrano
c0af4237d8
tests/gnrc_udp: fix printf format string (%d->%u).
...
This was causing the CI build to fail in the static-check stage
(cppcheck).
2019-04-11 11:26:02 +02:00
Martine Lenders
f11d462b82
Merge pull request #11371 from danpetry/tests/gnrc_sock_dns_timeout
...
tests/gnrc_sock_dns: Give time to allow node to set its ll address
2019-04-10 17:43:10 +02:00
Martine Lenders
e0de94cb5f
Merge pull request #11309 from miri64/tests/enh/lwip_sock-l2util
...
tests: remove NETOPT_IPV6_IID dependency from lwip_sock tests
2019-04-10 17:07:16 +02:00
danpetry
b320dd7909
Give time to allow node to set its ll address
...
Set a delay of three seconds at the beginning of the test. Otherwise,
the node will send a neighbour solicitation with a blank link local
address, it won't receive a reply, and the test will fail.
2019-04-10 16:43:27 +02:00
Juan Carrano
54cbdaaa53
tests/gnrc_udp: Replace atoi() by strtol().
...
This patch is a reduced version of an earlier one, with the bare minimum
required to be able to run the test and get the release going.
Original description:
atoi() cannot detect errors. Many implementation return zero on error
and that is what was being checked here, making the "udp send" command
unable to parse integer values of zero. On top of this, the behavior on
errors does not seem to be specified in the standard (so it is not even
correct to check for zero even when zero is not an accepted value, like
for a port number).
The result of all this is that sending UDP packets of zero length (as
required by the Release Specs) was not possible.
This patch replaces atoi by strlen, which allows for robust error detection.
Sending zero length packets is possible.
2019-04-10 15:33:46 +02:00
Juan I Carrano
9832299e62
Merge pull request #11319 from miri64/pkg/new/ubasic
...
pkg: Initial introduction of ubasic package
2019-04-08 17:38:03 +02:00
Martine Lenders
9f960fd61c
tests: provide tests for ubasic package
2019-04-08 17:09:28 +02:00
Sebastian Meiling
4dd09eaa06
Merge pull request #6178 from OTAkeys/pr/can_stm32
...
can stm32: add a driver for STM32 bxCAN peripheral
2019-04-08 08:50:08 +02:00
25b0d4d67b
tests/pkg_c25519: increase timeout on non-native
2019-04-05 16:33:53 +02:00
Luka Paulic
e16b42aeb6
test: reverted to last commit
2019-04-04 22:05:00 +02:00
f6f988cfbf
Merge pull request #9389 from bergzand/pr/pkg/c25519/initial
...
c25519: Initial support for the c25519 package
2019-04-04 14:23:09 +02:00
2ed516fa39
c25519: add test application
2019-04-04 14:05:57 +02:00
Luka Paulic
8f658aee8a
drivers: modify DS18 driver so it is supported on all platforms
2019-04-04 12:01:02 +02:00
Luka Paulic
480bc74edd
tests: add tested boards to the board whitelist
2019-04-04 07:38:35 +02:00
Hyungsin
d9c17c2154
boards: add initial hamilton board support
2019-04-03 15:00:35 -07:00
88171698e0
Merge pull request #10931 from kb2ma/nanocoap/pktapi_opt_enospc
...
net/nanocoap: Packet API return error if buffer full
2019-04-03 14:49:44 +02:00
Vincent Dupont
74ddf56171
tests/conn_can: build stm32 CAN drivers
...
Build can_stm32 module on boards which have a stm32 CAN controller.
2019-04-03 11:12:46 +02:00
Martine Lenders
397adf79ca
tests: remove NETOPT_IPV6_IID dependency from lwip_sock_ip
2019-03-29 13:21:58 +01:00
Martine Lenders
31f72e29be
tests: remove NETOPT_IPV6_IID dependency from lwip_sock_udp
2019-03-29 13:21:58 +01:00
14f47bf220
Merge pull request #10695 from aabadie/pr/drivers/lpsxxx
...
drivers/lpsxxx: refactor lps331ap and add support for lps25hb + lps22hb
2019-03-29 10:54:08 +01:00
Sebastian Meiling
4242a026e9
Merge pull request #11197 from miri64/tests/fix/pktbuf-unittests-malloc
...
tests/unittests: exclude ENOMEM tests for gnrc_pktbuf_malloc
2019-03-29 10:03:11 +01:00
Federico Pellegrin
672dbd707e
tests/periph_flashpage: add RWWEE automatic test if hw supports it
2019-03-29 07:19:26 +01:00
Martine Lenders
3b95ac0eb1
tests: add tests to reproduce #10881
2019-03-28 18:40:56 +01:00
Kevin "Bear Puncher" Weiss
831955c742
Merge pull request #11269 from cladmi/pr/makefiles/tests/refactoring/test/available
...
Makefile.include: add a 'test/available' target
2019-03-28 12:08:02 +01:00
Gaëtan Harter
29ada72a9e
Merge pull request #11254 from cladmi/pr/make/openocd/flashfile
...
makefiles/openocd.inc.mk: use FLASHFILE
2019-03-28 11:56:59 +01:00
Dylan Laduranty
ccf12c57a8
Merge pull request #10884 from fedepell/sam_rwee_support
...
sam0 flashpage RWWEE flash support
2019-03-28 11:00:25 +01:00
Martine Lenders
e5c5beaf40
Merge pull request #10898 from miri64/tests/enh/gnrc_sock_dns
...
tests/gnrc_sock_dns: port to scapy
2019-03-27 12:11:21 +01:00
José Alamos
61d7b205b8
Merge pull request #11241 from aabadie/pr/pkg/loramac_duty_cycle
...
pkg/semtech-loramac: provide a way to disable dutycycle
2019-03-27 11:47:48 +01:00
Hauke Petersen
f2df22ed99
Merge pull request #10589 from miri64/l2util/feat/initial
...
l2util: initial import of a general IPv6 over X helper module
2019-03-27 11:46:12 +01:00
Martine Lenders
3bfadedcdf
tests/gnrc_sock_dns: add failure tests
2019-03-27 11:35:45 +01:00
Martine Lenders
c1ea34eed0
tests/gnrc_sock_dns: port to scapy with sockets
2019-03-27 11:35:45 +01:00
Martine Lenders
5cfb31d86c
tests/gnrc_sock_dns: port to shell based test
...
Also remove binding of the DNS server to 2001:db8::1. It causes
`dnsmasq` to send router advertisements from that address, which is
not a [valid source for RAs][RFC 4861], so a default route is never
configured on the RIOT to reach the DNS server.
[RFC 4861]: https://tools.ietf.org/html/rfc4861#section-6.1.2
2019-03-27 11:35:45 +01:00
Martine Lenders
9b70b5aa29
tests: provide tests for l2util module
2019-03-27 10:22:17 +01:00
Hauke Petersen
ce5a08cd2c
unittests: added tests for bluetil_addr
2019-03-26 21:05:11 +01:00
Martine Lenders
2c012a2c05
Merge pull request #11235 from haukepetersen/add_tests_nimblel2cap
...
tests: add nimble_l2cap test and benchmark applications
2019-03-26 21:01:16 +01:00
Martine Lenders
60a8bd0949
Merge pull request #11251 from haukepetersen/add_core_clistcount
...
core/clist: add clist_count()
2019-03-26 20:55:15 +01:00
Hauke Petersen
07a12108da
tests: add nimble_l2cap test application(s)
2019-03-26 20:23:01 +01:00
Martine Lenders
83b9f72f83
Merge pull request #11011 from miri64/ndp/enh/add-hop-limit-define
...
ndp: provide define for common hop-limit
2019-03-26 20:18:07 +01:00
Martine Lenders
713fd19040
Merge pull request #9454 from miri64/tests/enh/lwip-recv-port0
...
tests: provide tests for reception on sock with port 0
2019-03-26 20:05:30 +01:00
Gaëtan Harter
ff13208751
riotboot: remove compatibility for ELFFILE as file to flash
...
Openocd boards are now updated.
2019-03-26 19:26:42 +01:00
Dylan Laduranty
a7785683c2
Merge pull request #11172 from cladmi/pr/make/flashfile/edbg
...
makefiles/edbg.inc.mk: use FLASHFILE
2019-03-26 15:12:58 +01:00
Kevin "Bear Puncher" Weiss
268d3e926c
Merge pull request #10826 from ranbe1/at_driver_uart_initialize_status
...
drivers/at: make at_dev_init() return uart initialize status
2019-03-26 14:07:05 +01:00
Gaëtan Harter
d4775ccf96
riotboot: remove compatibility for HEXFILE as file to flash
...
It is now the case for `edbg`.
Openocd support still needs special handling.
2019-03-26 13:35:04 +01:00
Martine Lenders
a927a051db
tests/unittests: exclude ENOMEM tests for gnrc_pktbuf_malloc
2019-03-26 12:08:10 +01:00
Martine Lenders
8749dc817a
tests: use NDP_HOP_LIMIT instead of magic number
2019-03-26 12:00:52 +01:00
Gaëtan Harter
ec4d83727a
Makefile.include: add a 'test/available' target
...
This allows querying the build system if there are test available.
Before, one should rely on 'info-debug-variable-TESTS' to print the list
of test files. But was not reliable as sometime the build system printed
messages anyway.
BOARD=esp32-wroom-32 make --silent --no-print-directory \
-C examples/hello-world/ info-debug-variable-TESTS
ESP32_SDK_DIR should be defined as /path/to/esp-idf directory
ESP32_SDK_DIR is set by default to /opt/esp/esp-idf
# empty line here
Now the return code can be trusted.
2019-03-25 16:17:26 +01:00
afa261194b
Merge pull request #11245 from gschorcht/tests/malloc/fix
...
tests/malloc: fix of dereferencing a NULL pointer
2019-03-25 08:40:24 +01:00
MrKevinWeiss
7bd633a8b2
tests/doc: Add intial how to test doc
...
This commit adds a README.md to the testing folder.
It explains the basic about how to run a test with testrunner.
It adds a reference so it will be displayed on the doxygen docs.
There currently is not obvious documentation for running tests.
2019-03-24 15:15:35 +01:00
Hauke Petersen
eae103cbd7
unittests/core: added tests for clist_count
2019-03-23 23:47:25 +01:00
Gunar Schorcht
136849661a
tests/malloc: fix of dereferencing a NULL pointer
...
If the memory is exhausted during the allocation of the new `head` structure, subsequent accesses to `head` will result in dereferencing of a NULL pointer.
2019-03-23 14:01:28 +01:00
e5831cf321
tests/pkg_semtech-loramac: add note about duty-cycle disabling
2019-03-23 13:14:26 +01:00
Federico Pellegrin
5faafac092
sam0 flashpage RWWEE flash support
2019-03-21 04:27:41 +01:00
Gaëtan Harter
732bcc7335
tests/posix_semaphore: sem_timedwait should not return before abstime
...
Update the test as sem_timedwait is not supposed to return before the
given abstime.
Source: http://pubs.opengroup.org/onlinepubs/9699919799.2016edition/functions/sem_timedwait.html
The timeout shall expire when the absolute time specified by abstime
passes, as measured by the clock on which timeouts are based (that is,
when the value of that clock equals or exceeds abstime), or if the
absolute time specified by abstime has already been passed at the time
of the call.
2019-03-20 15:18:25 +01:00
0916126941
tests/driver/lpsxxx: update with support for lps22hb
2019-03-20 14:43:37 +01:00
f3b7b6066a
tests/driver_lpsxx: use new unified driver
2019-03-20 14:43:36 +01:00
Martine Lenders
4ee4625f39
Merge pull request #10357 from jcarrano/posix_headers-module
...
sys/posix: make posix module provide only headers.
2019-03-20 14:07:12 +01:00
Juan Carrano
6b766c3cd3
sys/posix: make posix module provide only headers.
...
The build system contains several instances of
INCLUDES += -I$(RIOTBASE)/sys/posix/include
This is bypassing the module management system, by directly accesing
headers without depending on a module. The module is the posix module.
That line is also added when one of the posix_* modules is requested.
According to the docs, the posix module provides headers only, but in
reality there is also inet.c.
This patch:
- Moves `inet.c` into `posix_inet`, leaving `posix` as a headers-only
module.
- Rename `posix` as `posix_headers` to make it clear the module only
includes headers.
- Makes `posix_*` modules depend on `posix_headers`, thus removing the
explicit `INCLUDES+=...` in `sys/Makefile.include`.
- Ocurrences of `INCLUDES+=...` are replaced by an explicit dependency
on `posix_headers`.
2019-03-20 12:57:13 +01:00
Martine Lenders
fb5a298c1f
Merge pull request #11193 from haukepetersen/rm_pkbuf_getiovec
...
net/gnrc_pktbuf: rm deprecated _pktbuf_get_iovec()
2019-03-19 11:52:14 +01:00
Ken Bannister
7d259cc268
net/gcoap: verify error when overfill on coap_opt_finish
2019-03-19 05:30:04 -04:00
Ken Bannister
58faa35156
tests/nanocoap: verify error when overfill buffer
2019-03-19 05:30:04 -04:00
fb2c7eaec4
Merge pull request #11181 from kaspar030/add_riotboot_flashwrite
...
riotboot: add riotboot_flashwrite module
2019-03-18 11:15:25 +01:00
Andreas "Paul" Pauli
fbac2d47bb
Merge pull request #10397 from Josar/pr/test/xtimer_hang/separate_debug_pin
...
test/xtimer hang: separate debug pins
2019-03-18 02:10:22 +01:00
josar
254d25fc5a
test/xtimer_hang: separate debug pins
...
Previously one pin was used for both slacker threads.
For better debugging seperating the threads to use one pin each is better.
2019-03-17 09:21:30 +01:00
641a32bfeb
tests/riotboot_flashwrite: initial commit
2019-03-15 12:32:50 +01:00
Hauke Petersen
9fb2f541ba
net/gnrc_pktbuf: rm deprecated _pktbuf_get_iovec()
2019-03-15 10:21:22 +01:00
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
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