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

947 Commits

Author SHA1 Message Date
Martine Lenders
6911589989
Merge pull request #10102 from PeterKietzmann/pr_bitarithm_types
core/bitarithm: change types to `uintXX_t`
2018-10-16 16:09:08 +02:00
Sebastian Meiling
ca90f9db2c
Merge pull request #10087 from kb2ma/nanocoap/fix_response_type
net/nanocoap: fix response type
2018-10-16 13:41:20 +02:00
dfe03562a8
Merge pull request #7401 from dailab/Firefly
boards: add Zolertia Firefly board
2018-10-16 10:28:48 +02:00
Ken Bannister
7bb0b0d7eb unittests/nanocoap: add server side tests 2018-10-15 06:42:37 -04:00
726ebf3dad coap: use COAP_FORMAT style content-format defines
Replaces all occurences of COAP_CT_.* with COAP_FORMAT_.*
2018-10-15 09:44:17 +02:00
PeterKietzmann
0ecaaf021c core/bitarithm: add explicit 32-bit function 2018-10-08 13:57:21 +02:00
eafabe85a4 tests/unittest: exclude firefly board 2018-10-04 17:23:42 +02:00
Vincent Dupont
7e47e36e55 pkg/littlefs: fix file buffer size 2018-10-03 11:54:17 +02:00
Vincent Dupont
73e971fc56 uuid: add uuid_from_string() 2018-10-03 10:44:14 +02:00
Vincent Dupont
695a94449a fmt: add scn_u32_hex() 2018-10-03 10:44:14 +02:00
Vincent Dupont
8c5ffa0a8d fmt: add fmt_char 2018-10-03 10:44:14 +02:00
Vincent Dupont
db4ce5eff2 uuid: add uuid_to_string() 2018-10-03 10:44:14 +02:00
Vincent Dupont
71455b692f fmt: add fmt_to_lower() 2018-10-03 10:44:14 +02:00
5b398930c1 tests/unittests: exclude samr30-xpro board 2018-10-01 10:20:41 +02:00
PeterKietzmann
29fca6dd56 unittests/tests-ecc: generalize ECC test 2018-09-28 08:53:25 +02:00
PeterKietzmann
b7615e9e1b sys/ecc: remove separate hamming256 folder 2018-09-28 08:53:25 +02:00
Hauke Petersen
4a59113963 net/nanocoap: use correct type param for _bulid_hdr() 2018-09-26 13:00:39 +02:00
Sören Tempel
e523e8f5ec sys/cbor: remove module
Fixes #7707
Fixes #7800
2018-09-25 21:07:29 +02:00
Silke Hofstra
ee82d4fbfe boards, examples, tests: rename stm32mindev to blackpill 2018-09-19 16:22:14 +02:00
Leandro Lanzieri
177ef5bfa9 boards/lobaro-lorabox: Add initial support for Lobaro Lorabox board 2018-09-18 18:07:07 +02:00
Ken Bannister
cad1ccfa3b net/nanocoap: add unit test for trailing slash in path 2018-09-11 10:06:57 +02:00
472bd0ae01 tests: remove obsolete local test targets 2018-09-07 15:13:08 +02:00
Martine Lenders
2350c46740
Merge pull request #9826 from kaspar030/fix_byteorder_bebuf
core/byteorder: fix bebuftohs() / htobebufs() on big endian
2018-09-03 14:35:29 +02:00
Hauke Petersen
04bc6ee069 unittests/nanocoap: adjust to api changes 2018-08-30 10:31:03 +02:00
face869e3e tests/unittests/core: add byteorder_bebuftohs(), byteorder_htobebufs() tests 2018-08-23 10:34:59 +02:00
Toon Stegen
6a224d8bf2 unittests: add unittests for fmt_hex_byte 2018-08-20 16:19:30 +02:00
Gaëtan Harter
31aba49a31
Merge pull request #9759 from smlng/pr/pythonlibs/testrunner
dist: move testrunner to pythonlibs as package
2018-08-16 11:54:02 +02:00
José Alamos
a697689c4c
Merge pull request #9729 from leandrolanzieri/pr/sensebox
boards/sensebox: Add support for SenseBox board
2018-08-15 10:04:57 +02:00
smlng
3893f04d00 tests: move testrunner import up
Testrunner is now impported as a package found in PYTHONPATH, so
import can be placed at the top of the script as usual.
2018-08-13 14:11:24 +02:00
smlng
f9824abedb tests: remove unused os package import
os package is imported by every test script but only used by
a few, thus flake8 check reported errors.
2018-08-13 14:11:23 +02:00
smlng
13d61b5c20 tests: use testrunner from pythonlibs
Remove now obsolete sys.append from all tests, as testrunner was moved
to dist/pythonlibs as proper package.
2018-08-13 14:11:23 +02:00
Jose Alamos
d54a74736d boards/sensebox: Initial board port for SenseBox MCU with SAMD21 2018-08-13 10:49:46 +02:00
Ken Bannister
3f3df74bcd
Merge pull request #7237 from Ell-i/feature-gcoap-extra-indirection
net/gcoap: Make references to coap_resource_t all const in gcoap
2018-08-07 23:52:59 -04:00
Kees Bakker
65730b597f tests/unittests: add sodaq-one to cortex-M boards
Also add sodaq-one to the boards with insufficient memory
2018-08-07 11:06:14 +02:00
Kevin Weiss
a48b8e741b boards/openmote-b: Add board support 2018-08-07 10:32:03 +02:00
Pekka Nikander
33c84591e9 {examples,tests}/gcoap: Remove unnecessary type casts 2018-07-30 09:01:30 +03:00
e91af6d556
sock_util: Add tests 2018-07-20 11:48:29 +02:00
Gaëtan Harter
690fdb11ab
unittests: increase test timeout
It currently takes 1m30 to run on iotlab-m3.
2018-07-17 17:00:17 +02:00
Ken Bannister
03115a7c0c
Merge pull request #9444 from kb2ma/nanocoap/test_get_uri_path
net/nanocoap: test coap_get_uri() boundaries
2018-06-28 13:06:30 -04:00
Ken Bannister
a7e5562268 net/nanocoap: test coap_get_uri() boundaries 2018-06-27 23:28:37 -04:00
Marian Buschsieweke
2bff79ef56
tests/unittests: Added unit tests for sht1x
- Added unit tests for new integer only arithmetic
    - Temperature conversion differs at most 0.01°C from double arithmetic
    - Humidity conversions differs at most 0.1% from double arithmetic
2018-06-27 08:58:02 +02:00
smlng
854082272a tests/unittests: remove invisible unicode chars 2018-06-22 11:25:31 +02:00
smlng
3b84dad680 tests/unittests, cn_cbor: remove invisible unicode char from Makefile 2018-06-22 09:23:30 +02:00
afe02bcbf4
tests/fmt: Extend test with fmt_strnlen 2018-06-14 11:57:11 +02:00
32057a8c46 tests: fix doxygen grouping 2018-06-11 19:12:02 +02:00
Ken Bannister
aa0d02e994 net/nanocoap: unit tests for pkt-based request 2018-06-10 08:44:16 -04:00
Francisco Acosta
42d58373f5
Merge pull request #8802 from basilfx/feature/efm32_slstk3402a
boards: slstk3402a: add support
2018-06-04 15:35:22 +02:00
Marian Buschsieweke
e0bf20728c
examples, tests: Updated BOARD_INSUFFICIENT_MEMORY
Added stm32mindev to BOARD_INSUFFICIENT_MEMORY where needed
2018-06-04 09:03:30 +02:00
Bas Stottelaar
bfb820b989 tests: unittests: add to list of ARM boards. 2018-06-03 16:48:30 +02:00
Bas Stottelaar
283e5fb2c2 tests: unittests: blacklist efm32 boards with insufficient memory 2018-05-25 20:36:21 +02:00
fce61f91f0
Merge pull request #9046 from bergzand/pr/uuid/initial
uuid: Initial import of RFC4122 UUID functions
2018-05-25 15:05:57 +02:00
Vincent Dupont
c10568f02c boards: use marketing name for stm32f769i-disco 2018-05-23 19:21:30 +02:00
b7c7d57740
unittests: Add unittest for uuid module 2018-05-23 16:31:02 +02:00
eaf2698a69 boards/nucleo-l432kc: rename to st marketing name 2018-05-23 12:55:36 +02:00
3bbf8c01ab boards/nucleo-f303k8: rename to st marketing name 2018-05-23 12:51:41 +02:00
633a92929d boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
81700d4301 boards/nucleo-f042k6: rename to st marketing name 2018-05-23 12:49:40 +02:00
3e4f7adc95 boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
07c2c46e16 tests: use new nucleo-f767zi name 2018-05-23 12:09:28 +02:00
d59c77d9c8 tests: use new nucleo-f746zg name 2018-05-23 12:09:28 +02:00
765a820d5b tests: use new nucleo-f722ze name 2018-05-23 12:09:28 +02:00
ede9ff7af3 tests: use new nucleo-f446ze name 2018-05-23 12:08:53 +02:00
0bb43db9f2 tests: use new nucleo-f429zi name 2018-05-23 12:08:53 +02:00
3a78497211 tests: use new nucleo-f413zh name 2018-05-23 12:08:53 +02:00
033311ae94 tests: use new nucleo-f412zg name 2018-05-23 12:08:53 +02:00
9be89c120b tests: use new nucleo-f303ze name 2018-05-23 12:08:53 +02:00
51c290ba90 boards/nucleo-l476rg: rename to marketing name 2018-05-22 22:02:57 +02:00
ba3478fa1e boards/nucleo-l152re: rename to marketing name 2018-05-22 22:02:57 +02:00
a5436e0b66 boards/nucleo-l073rz: rename to marketing name 2018-05-22 22:02:57 +02:00
18435609ce boards/nucleo-l053r8: rename to marketing name 2018-05-22 22:02:57 +02:00
5821bfd68e boards/nucleo-f446re: rename to marketing name 2018-05-22 21:52:41 +02:00
de783eed78 boards/nucleo-f411re: rename to marketing name 2018-05-22 21:52:41 +02:00
1d1354bf82 boards/nucleo-f410rb: rename to marketing name 2018-05-22 21:52:41 +02:00
7818c1a080 boards/nucleo-f401re: rename to marketing name 2018-05-22 21:52:41 +02:00
b0912659b5 boards/nucleo-f334r8: rename to marketing name 2018-05-22 21:52:41 +02:00
c7b5b0f992 boards/nucleo-f303re: rename to marketing name 2018-05-22 21:52:41 +02:00
72df36909b boards/nucleo-f302r8: rename to marketing name 2018-05-22 21:52:41 +02:00
2004fb2881 boards/nucleo-f103rb: rename to marketing name 2018-05-22 21:52:41 +02:00
b8895c1946 boards/nucleo-f091rc: rename to marketing name 2018-05-22 21:52:41 +02:00
4b20095dc8 boards/nucleo-f072rb: rename to marketing name 2018-05-22 21:52:41 +02:00
9acde8e148 boards/nucleo-f070rb: rename to marketing name 2018-05-22 21:52:41 +02:00
bd6a7c3d26 boards/nucleo-f030r8: rename to marketing name 2018-05-22 21:52:41 +02:00
Gaëtan Harter
64bc06f2b6
tests/unittests: add empty list clist_foreach case
Add clist_foreach empty list test case which should:

* not call `func`
* return `NULL`
2018-05-15 16:49:59 +02:00
56c2b6a0e3
Merge pull request #9017 from kaspar030/clist_add_foreach_return
core/clist: make clist_foreach() return break-causing node
2018-05-15 16:48:12 +02:00
bcb458192d tests/unittests: add nucleo-l496zg to arm boards 2018-05-15 11:56:51 +02:00
Bas Stottelaar
e7b3e4bf64 tests: unittests: disable for new efm32 boards. 2018-05-13 18:59:12 +02:00
a0077f3c4b tests/unittests: test clist_foreach() return value 2018-05-12 00:13:41 +02:00
Gaëtan Harter
fa33eacd1f
crypto/ccm: fix _fits_in_nbytes function
Function is broken with num_bytes >= 4.

Could happen when storing input_len with len_encoding >= 4.
It can take values from 2 to 8, so make it work for cases it would overflow.
2018-05-07 15:08:00 +02:00
Gaëtan Harter
a47e5e427e
tests/ccm: add test for input_len check 2018-05-07 15:08:00 +02:00
Gaëtan Harter
154fbcff35
tests: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-04 10:52:26 +02:00
Joakim Nohlgård
5c59f6a39a unittests: Add tests for matstat library 2018-04-28 08:03:35 +02:00
f18f25c5c2
Merge pull request #8577 from gebart/pr/analog_util-refactor
sys/analog_util: Refactor, add test
2018-04-17 10:40:53 +02:00
ba809c231e
pkg/libcose: add simple unittest application 2018-04-16 19:02:04 +02:00
355c559ae9
test/cn-cbor: Use memarray as block allocator 2018-04-16 15:27:43 +02:00
ad8e69da96
pkg/cn-cbor: compile with context pointer support 2018-04-16 15:27:43 +02:00
Joakim Nohlgård
69e9767184 unittests: Add analog_util tests 2018-04-16 13:53:49 +02:00
4f4ee31f6b
Merge pull request #8949 from bergzand/pr/tests/cn_cbor_fix_memleak
unittests/cn_cbor: fix memory leak
2018-04-16 10:55:46 +02:00
35c9f999d3
tests/cn_cbor: fix memory leak 2018-04-16 10:01:12 +02:00
46938f6153
Merge pull request #8244 from beurdouche/hacl_ng
pkg: add support for HACL*
2018-04-14 21:32:43 +02:00
Benjamin Beurdouche
1d3207f38b Initial HACL* package and tests 2018-04-14 13:43:27 +02:00
ee3675e39a
tests/tweetnacl: Cleanup headers and includes 2018-04-14 12:47:32 +02:00
6b01f4d388
Merge pull request #7263 from haukepetersen/opt_fmt_s16dfp_pos
sys/fmt: extended fmt_s16_dfp to handle scales
2018-04-13 09:54:08 +02:00
d64d38b391
Merge pull request #8909 from miri64/doc/enh/ipv6-rfc
doc: update IPv6 RFC references
2018-04-12 12:11:23 +02:00
8841486f2e
Merge pull request #8741 from OTAkeys/pr/fix_spiffs_summy_mem
unittests/tests-spiffs: fix dummy mtd (as in #8607)
2018-04-10 23:47:29 +02:00
b33ae7df4f unittests/tests-nanocoap: add coap_get_uri() test 2018-04-10 20:58:06 +02:00
Martine Lenders
23bdc80e22 doc: update IPv6 RFC references
RFC 2460 was obsoleted by RFC 8200. This PR changes the references
around, so we don't reference an obsoleted RFC ;-).

Also I'm moving these references from the old-style HTML-like format
to the newer-style Markdown-like format.
2018-04-10 15:40:18 +02:00
d7bf2c112e
Merge pull request #7491 from aabadie/nucleo_l433
boards/nucleo-l433rc: initial support
2018-04-07 21:12:14 +02:00
Hauke Petersen
ac93818c90 unittests/fmt: adapt and enhance tests for sxx_dfp() 2018-04-06 12:10:18 +02:00
Francisco Acosta
baf1b8f6e9
Merge pull request #8791 from kaspar030/fix_cn-cbor
pkg: cncbor: misc fixes
2018-04-04 16:18:43 +02:00
0a553401c8 tests/unittests: support CI on-hardware testing 2018-03-28 18:28:54 +02:00
be5ae87262
Merge pull request #8829 from ZetaR60/RIOT_xplained
cpu/atmega1284p: support and boards/mega-xplained: support
2018-03-27 10:03:15 +02:00
Matthew Blue
9378d6c133 tests/* : blacklisting for mega-xplained 2018-03-26 11:17:23 -04:00
Joakim Nohlgård
f4fce5b2d2 unittests: Add test for phydat (phydat_fit) 2018-03-22 15:21:01 +01:00
86ea22a1c1 tests/unittests: blacklist nucleo-l433rc board 2018-03-21 17:07:28 +01:00
Emmanuel Baccelli
88e61ed353
Merge pull request #8781 from kaspar030/add_qdsa_pkg
pkg: add qDSA package
2018-03-16 16:30:38 +01:00
809c4b7724 unittests: unify configuration of large main stack 2018-03-16 16:00:58 +01:00
47998af5ee unittests: add msba2 to list of insufficient memory boards 2018-03-16 16:00:58 +01:00
b22d3e4bd6 tests/unittests: add qDSA unittests 2018-03-16 16:00:58 +01:00
6b189f988d tests/unittests/tests-cn_cbor: make use of fmt_hex_bytes() 2018-03-16 15:35:13 +01:00
Emmanuel Baccelli
a367e378c8
Merge pull request #8467 from lorenz9314/pr_cn_cbor_unit_tests
pkg: add cn-cbor CBOR implementation plus unit tests
2018-03-16 14:28:44 +01:00
Lorenz Hüther
711766312f tests/unittests: Added unit tests for pkg cn-cbor, removed old tests. 2018-03-16 13:52:40 +01:00
2b33f460d1 tests/unittest/tests-tweetnacl: increase main stacksize 2018-03-14 09:52:36 +01:00
c59c4897f2 tests/unittests: add tweetnacl sign/verify test 2018-03-14 07:34:51 +01:00
d025de32ed
Merge pull request #8351 from kaspar030/introduce_iolists
net: Introduce iolists
2018-03-07 09:56:13 +01:00
Martine Lenders
0b928b797a
Merge pull request #7881 from mtausig/feature/sha3
Add support for SHA-3 hash function
2018-03-06 17:34:05 +01:00
Mathias Tausig
792137f88d hashes:sha3: Integrate SHA-3 into RIOT API
Add init/update/final interface
Add interface functions for direct SHA3
Add unit tests for SHA-3
Document functions and types
Reduced var scope in Keccak code
Add CCO Copyright notice to Keccak code
2018-03-06 16:18:18 +01:00
da67e3a8eb tests/unittests: adapt to iolist pktsnip 2018-03-06 14:00:32 +01:00
c935a07513 sys/net/gnrc/pkt: match pktsnip struct start with iolist_t 2018-03-06 14:00:31 +01:00
Vincent Dupont
d938a9f68e unittests/tests-spiffs: fix dummy mem (as in #8607) 2018-03-05 18:36:58 +01:00
Vincent Dupont
03ecb0c6f3
Merge pull request #8607 from OTAkeys/pr/fix_littlefs_unittests
unittests/tests-littlefs: fix dummy mtd
2018-03-05 17:05:24 +01:00
Vincent Dupont
36e1d6b335 unittests/tests-littlefs: fix dummy mtd
_init function were erasing whole memory leading to losing everything
when mounting or formating the memory
2018-03-05 11:04:34 +01:00
Joakim Nohlgård
2d53178cc5 boards/frdm-kw41z: Add NXP FRDM-KW41Z
https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/kinetis-cortex-m-mcus/w-serieswireless-conn.m0-plus-m4/freedom-development-kit-for-kinetis-kw41z-31z-21z-mcus:FRDM-KW41Z
2018-03-02 15:40:35 +01:00
Vincent Dupont
647133f5c5 unittests/tests-spiffs: add partition test 2018-03-02 13:45:18 +01:00
a10a755548
Merge pull request #8629 from ochristi/fix_test_atomic_dec_positive
unittests/tests-core: Fix tests in loop not being executed
2018-02-26 16:04:46 +01:00
MichelRottleuthner
bad08596f6
Merge pull request #8399 from OTAkeys/fix/mtd_native_write
mtd_native: fix overlapping pages write check
2018-02-26 15:38:46 +01:00
Vincent Dupont
f04ecee9f6 mtd_native: fix overlapping pages write check 2018-02-26 15:32:06 +01:00
o0c
d7853ac87f unittests: fix loop in tests-core-atomic 2018-02-26 14:52:05 +01:00
Martine Lenders
2757f1d7dd Revert "unittests: adapt tests-netreg"
This reverts commit a7b7789388.
2018-02-22 20:29:55 +01:00
Ken Bannister
d7004ebcd8
Merge pull request #8513 from kaspar030/nanocoap_add_context_to_resources
nanocoap: add context pointer to resources
2018-02-22 18:30:43 +00:00
Ronald Weber
1293113dca unittests/saul_reg: Add unit test for saul_reg_rm of list head
This also leaves the global saul_reg list in the same empty state like
before the unit tests.
2018-02-18 12:05:54 +01:00
Joakim Nohlgård
d24cd4fd73 unittests/vfs: Add test case for #8309 2018-02-13 18:14:58 +01:00
Joakim Nohlgård
85125d04ef unittests/vfs: Add test for vfs_bind invalid FD argument 2018-02-12 08:46:44 +01:00
Vincent Dupont
5ede5db234 pkg/littlefs: add format implementation 2018-02-09 14:29:46 +01:00
Vincent Dupont
6c2d7ecac6 unittests/spiffs: add a format test 2018-02-09 14:29:45 +01:00
Martine Lenders
47bbeb8969
Merge pull request #8517 from smlng/enh/gnrc/netreg
gnrc_netreg: some optimisations
2018-02-07 08:22:44 +01:00
Joakim Nohlgård
30ad56d133
Merge pull request #8522 from gebart/pr/fmt_s64_dec
sys/fmt: Add fmt_s64_dec, print_s64_dec
2018-02-07 07:55:42 +01:00
smlng
a7b7789388 unittests: adapt tests-netreg 2018-02-06 21:40:47 +01:00
56d5ceb601 tests: instead of cpp-style, use C-style comments 2018-02-06 16:59:58 +01:00
Joakim Nohlgård
5ec44c82ba fmt: Add fmt_s64_dec, print_s64_dec 2018-02-06 11:04:42 +01:00
Joakim Nohlgård
8ecf3c6bb6 unittests/fmt: Basic check for buffer overflow errors 2018-02-06 11:03:05 +01:00
Joakim Nohlgård
19d3995504 unittests/fmt: Add max test for fmt_u16_dec 2018-02-06 11:03:05 +01:00
Joakim Nohlgård
3b90481bed unittests/fmt: Add test for min/max in fmt_s32_dec 2018-02-06 11:03:05 +01:00
96fb3b1e21 tests/unittests/tests-gcoap: adapt to resource context ptr 2018-02-02 19:02:31 +01:00
Gaëtan Harter
14ac1fa577
Merge pull request #8109 from cladmi/pr/tests-crypto-modes-ccm/refactoring
tests-crypto-modes-ccm: Refactoring to support more evolved tests
2018-01-30 21:05:51 +01:00
8d0815d386 boards: rename nucleo144-f207 to nucleo-f207zg 2018-01-29 22:14:25 +01:00
Sebastian Meiling
c2400083ae
Merge pull request #8440 from miri64/tests/fix/deactivate-DEVELHELP
tests: deactivate DEVELHELP for unittests
2018-01-26 16:03:40 +01:00
Vincent Dupont
c7d02497f4 unittests/littlefs: fix unittests
Dummy RAM mtd was too small to run unit tests correctly.
Added some sectors and reduced page size.
2018-01-26 15:08:06 +01:00
Martine Lenders
cc729bd26a tests: deactivate DEVELHELP for unittests
In my opinion it doesn't make sense to activate DEVELHELP for unittests
because it also causes the evaluation of `assert()`. This causes the
tests to crash for values the tests test intentionally (because it is
the point of the unittests to test also some unexpected values and how
this influences the behavior).
2018-01-25 16:24:43 +01:00
6e0dfcec8d tests/unittests: skip arduino-mkrfox1200 2018-01-25 11:56:27 +01:00
cefb7974d7
Merge pull request #8210 from astralien3000/teensy31
boards/teensy31 : initial support of Teensy 3.1 & 3.2
2018-01-18 09:14:51 +01:00
3f990480d1
Merge pull request #7162 from kb2ma/nanocoap/msgid_byte_order
nanocoap: fix byte order of request message ID, and add test application
2018-01-17 22:59:07 +01:00
Loïc Dauphin
f200c310ad tests/unittests: add teensy31 to BOARD_INSUFFICIENT_MEMORY 2018-01-17 18:14:00 +01:00
Ken Bannister
7e5d14fbf0 net/nanocoap: add test for message ID byte order 2018-01-12 05:58:52 -05:00
2b6e42672c tests/unittests: add fmt hex/bytes converter tests 2018-01-10 21:50:10 +01:00
Vincent Dupont
c8eb77e8ff pkg: add littlefs pkg and vfs integration 2018-01-09 17:03:44 +01:00
Gaëtan Harter
30202f9de7 tests/ccm: check output buffer size
Add static test to verify output buffer is big enough for testing.
2018-01-04 18:01:58 +01:00
Gaëtan Harter
a83a1a80e5 tests/ccm: support input/adata bigger than 256
Fix data types to have bigger sizes.
The 'data' buffer size will still need to be increased when adding bigger tests.
2018-01-03 12:02:29 +01:00
Gaëtan Harter
e74b0ff33d tests/ccm: set 'len_encoding' from 'nonce_len'
Configure len_encoding in test depending on nonce_len.
Prepare for tests with nonce_len != 13.
2018-01-03 12:02:28 +01:00
Gaëtan Harter
b5c1855d7e tests/ccm: make 'mac_length' configurable in test
Preparation to add tests with different mac_length than 8.
2018-01-03 12:02:20 +01:00
Gaëtan Harter
fc3efbd0ee tests/ccm: add macro to simplify test call 2018-01-03 12:02:16 +01:00
Gaëtan Harter
5f6dc57d09 tests/ccm: fixup indentation 2018-01-03 12:01:57 +01:00
Sebastian Meiling
b151f95b61
Merge pull request #8243 from gebart/pr/tests-snprintf
unittests: Fix printf float test BUFSIZE
2017-12-19 14:08:46 +01:00
Joakim Nohlgård
599ad3784c
Merge pull request #7345 from OTAkeys/pr/spiffs_statvfs
pkg/spiffs: implement statvfs and improve doc
2017-12-14 11:37:53 +01:00
smlng
2149411d2f unittests: fix failed assertion caused by priority_pktqueue 2017-12-13 22:25:53 +01:00
Martine Lenders
ba2453d320
Merge pull request #8247 from aabadie/pr/tests/python_E305
tests: fix python style E305
2017-12-13 10:52:57 +01:00
87b14d96c8 tests: fix python style E402
E402 module level import not at top of file
2017-12-12 22:40:03 +01:00
d3015f0a57 tests: fix python style E305
expected 2 blank lines after class or function definition, found 1
2017-12-12 15:43:27 +01:00
Joakim Nohlgård
b55975fc0a unittests: Fix printf float test BUFSIZE
Fixes the following error from GCC 7.2.0 with a recent newlib

In file included from /usr/arm-none-eabi/include/stdio.h:800:0,
                 from /home/jgn/work/src/riot/tests/unittests/tests-printf_float/tests-printf_float.c:21:
/home/jgn/work/src/riot/tests/unittests/tests-printf_float/tests-printf_float.c: In function ‘sfprintf_float’:
/home/jgn/work/src/riot/tests/unittests/tests-printf_float/tests-printf_float.c:39:28: error: ‘%f’ directive output truncated writing 11 bytes into a region of size 10 [-Werror=format-truncation=]
     snprintf(str, BUFSIZE, "%f", in0);
                            ^
/home/jgn/work/src/riot/tests/unittests/tests-printf_float/tests-printf_float.c:39:5: note: ‘__builtin_snprintf’ output 12 bytes into a destination of size 10
     snprintf(str, BUFSIZE, "%f", in0);
     ^
cc1: all warnings being treated as errors
2017-12-12 12:16:43 +01:00
Vincent Dupont
a99a244824 unittests/tests-spiffs: add statvfs unittest 2017-12-11 09:19:53 -08:00
Vincent Dupont
43a902b1ab sys/fmt: fix overflow in fmt_u32_dec()
If the value was 10 digits long it caused an overflow in the multiply loop.
The case is now tested before looping over.
2017-12-07 17:48:05 -08:00
Cenk Gündoğan
ac1a645fd1
Merge pull request #8190 from kaspar030/name_tests_by_folder
tests: set APPLICATION from folder name
2017-12-01 11:39:19 +01:00
fc2eff9fba tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
Hauke Petersen
234c3075c0 tests: fix handling for common board folders 2017-11-30 10:26:36 +01:00
smlng
1dfe3719d8 unittests: fix gnrc_ipv6_nib test 2017-11-29 21:11:08 +01:00
c4f66edba1 tests: fix python style 'E302 expected 2 blank lines, found 1' 2017-11-29 17:32:06 +01:00
Martine Lenders
e65211db7d
Merge pull request #7195 from miri64/gnrc_pktbuf_malloc/feat/initial
gnrc_pktbuf_malloc: initial import of a malloc()-based pktbuf
2017-11-28 00:00:36 +01:00
8a6d04ce52
Merge pull request #7925 from RIOT-OS/gnrc_netif2_integration/master
gnrc_netif2: gnrc_ipv6_nib: full integration into GNRC
2017-11-27 21:12:14 +01:00
Martine Lenders
fa7624019c tests: adapt unittests for nc_del signiture change 2017-11-27 20:32:27 +01:00
6b661bef04
Merge pull request #8119 from kaspar030/fix_cib
core: cib: fix overflow handling
2017-11-23 13:13:26 +01:00
Martine Lenders
8d71f250d1
tests: add #8117 test case for cib.h unittests 2017-11-22 18:23:34 +01:00
Martine Lenders
56ec27cf6f
tests: adapt cib.h unittests for variable cib size 2017-11-22 18:23:07 +01:00
Gaëtan Harter
f584a8fab7 tests-gcoap: Fix resources order which should be sorted.
gcoap documentation says for `resources`:

    First element in the array of resources; must order alphabetically

So make tests respect the API.
2017-11-21 18:04:18 +01:00
Gaëtan Harter
c450b4ce0e tests-gcoap: fixup typo ressources->resources 2017-11-21 18:01:41 +01:00
Martine Lenders
2f7b55b486 tests: adapt unittests for new FT behavior 2017-11-19 23:36:20 +01:00
Martine Lenders
c28de94fd1
tests: adapt tests for route lifetime 2017-11-17 13:45:41 +01:00
Martine Lenders
71a7dbf918
gnrc: remove legacy network interface structures 2017-11-17 09:20:29 +01:00
Martine Lenders
81731791f8
tests: unittests: remove outdated, defective unittests 2017-11-16 16:17:21 +01:00
Martine Lenders
db553b6149
tests: adapt gnrc_ipv6_nib unittests to add new required modules 2017-11-16 15:49:21 +01:00
Hauke Petersen
4ceef0c67f examples/tests: remove entries for qemu-i386 2017-11-16 10:42:02 +01:00
Vincent Dupont
27fbdc4ebe unittests: update boards lists 2017-11-14 14:16:12 +01:00
Martine Lenders
6cd91ee2cb
tests: remove gnrc_ipv6_netif requirement from gnrc_ipv6_nib tests 2017-11-13 16:36:34 +01:00
Martine Lenders
b83bc1b763
Merge pull request #7456 from miri64/gnrc_ipv6_nib/feat/port-to-gnrc_netif2
gnrc_ipv6_nib: port to gnrc_netif2
2017-11-11 19:10:14 +01:00
Martine Lenders
fa81932a8f tests: unittests: extend gnrc_ipv6_nib unittests for holey NIB
When there are holes in the NIB (e.g. when entries were removed)
currently the NIB crashes the system due to a failed assertion.
This commit tests this behavior (`DEVELHELP` needs to be activated to
test this behavior). A fix will follow.
2017-11-09 15:28:55 +01:00
Hauke Petersen
24056f3fd8 tests/examples: removed pca1000x from Makefiles 2017-11-09 13:59:18 +01:00
Martine Lenders
22a41ea99c
tests: port gnrc_ipv6_nib unittests to gnrc_netif2 2017-11-08 20:18:53 +01:00
615b1e60bc core/clist: add argument to clist_foreach 2017-11-06 12:49:22 +01:00
f142908f4e
Merge pull request #7655 from kaspar030/add_list_sort
core/clist: add clist_sort()
2017-11-06 12:46:01 +01:00
d011fd1dd8 tests: exclude feather-m0 board from unittests 2017-11-05 22:19:07 +01:00
f7f3b687fd tests: unittests: add avsextrem to BOARD_INSUFFICIENT_MEMORY 2017-11-02 12:59:46 +01:00
Sebastian Meiling
2e0917cd81
Merge pull request #7727 from beduino-project/bluepill-rebased
boards: add support for bluepill board
2017-10-27 20:33:07 +02:00
Sören Tempel
9b3714b0c4 add support for bluepill board 2017-10-27 16:06:50 +02:00
Hauke Petersen
4bdce27d02 test/unittests: set pexpect timeout to 60s 2017-10-25 15:37:37 +02:00
316e8426ae tests/unittests: skip sodaq-explorer 2017-10-13 17:24:46 +02:00
Lucas Jenss
6998ffbb14 cppcheck: Provide consistent reason formatting for all cppcheck-suppresses 2017-10-10 10:25:20 -07:00
Martine Lenders
1b36cdf79e
nib: implement public NIB functions up to link-local AR 2017-10-10 10:12:19 +02:00
Martine Lenders
c60caccf43 tests: extend gnrc_ipv6_nib unittests for FT component 2017-10-06 23:01:10 +02:00
Cenk Gündoğan
7af0f916fe Merge pull request #7270 from miri64/gnrc_ipv6_nib/feat/abr-component
gnrc_ipv6_nib: provide component to handle ABRO
2017-10-06 22:16:17 +02:00
Martine Lenders
361dc1423f tests: extend gnrc_ipv6_nib unittests for internal ABR component 2017-10-06 22:09:53 +02:00
Martine Lenders
11e81907d5
tests: unittests: actually do TODO in NIB-PL tests 2017-10-06 17:25:35 +02:00
Martine Lenders
32d48a81a1
tests: extend gnrc_ipv6_nib unittests for prefix list component 2017-10-06 15:35:41 +02:00
Cenk Gündoğan
c3d3e7d024 Merge pull request #7212 from miri64/gnrc_ipv6_nib/feat/internal-offl
gnrc_ipv6_nib: provide internal implementation for off-link entries
2017-10-06 12:02:43 +02:00
Cenk Gündoğan
11baf130a3 Merge pull request #6988 from miri64/gnrc_ipv6_nib/feat/nc-component
gnrc_ipv6_nib: add neighbor cache component
2017-10-06 11:57:46 +02:00
Martine Lenders
c1f9b15c3a
tests: extend nib-internal unittests for off-link entry handling 2017-10-06 11:50:59 +02:00
Martine Lenders
9558a3d14a
tests: extend gnrc_ipv6_nib unittests for NC component 2017-10-06 11:33:13 +02:00
Andreas "Paul" Pauli
69476a7a6f Merge pull request #7624 from smlng/boards/cc2650_launchpad
boards: initial support for TI CC2650 LaunchPad
2017-10-05 17:26:06 +02:00
258f7b70f9 tests/unittests: add clist_sort() tests 2017-10-03 00:36:14 +02:00
smlng
71dbf14149 unittests: update tests-fmt 2017-09-28 15:44:35 +02:00
ef44438d05 tests/unittests: cleanup makefile indentation 2017-09-22 14:53:01 +02:00
smlng
37db4c3112 boards: add cc2650-launchpad to BOARD_INSUFFICIENT_MEMORY for tests and examples
- examples: dtls-echo, gnrc_border_router, javascript
    - tests: thread_cooperation, unittests
2017-09-20 11:11:13 +02:00
27ed76cad1 tests/gcoap: Add second listener 2017-09-19 14:13:46 +02:00
91c1f4d9d6 Merge pull request #7511 from haukepetersen/rm_board_weio
boards/cpu: removed support for weio and lpc11u34
2017-09-01 09:36:08 +02:00
Sebastian Meiling
86c386e3d6 Merge pull request #7391 from OTAkeys/fix/cbor
cbor: fix out of bound memory access
2017-08-28 17:19:19 +02:00
Pieter Willemsen
b76bfec0a3 cbor: fix out of bound memory access 2017-08-28 14:42:43 +02:00
Hauke Petersen
cfa9580f31 boards: removed support for weio
No maintainer and no hardware available to the community.
2017-08-28 12:11:51 +02:00
016381525e tests/unittests: skip arduino-mkrzero 2017-08-25 15:33:03 +02:00
smlng
8c6e5e4590 tests: add test_fmt_s32_dfp
+ silently fix minor typos, too
2017-08-15 12:31:07 +02:00
Hauke Petersen
813c92e52a unittests/gcoap: add tests for _get_resource_list 2017-08-08 16:00:15 +02:00
87b9c75556 boards: rename nucleo-l1 to nucleo-l152 2017-07-17 18:24:15 +02:00
Martine Lenders
475e2bdc82 gnrc_pktbuf_malloc: initial import of a malloc()-based pktbuf
The main motivation for this is to valgrind the network stack.
2017-07-15 17:54:47 +02:00
Martine Lenders
d09999a127 tests: provide unittests for bcd 2017-07-06 20:43:30 +02:00
Michael Frey
5964eaa336 doc: changed include and function call in README 2017-06-29 14:03:53 +02:00
Pieter Willemsen
6706e763d4 sys: cbor: add test app for cbor_stream_decode 2017-06-27 17:47:47 +02:00
Pieter Willemsen
29e8bd1351 sys: cbor: makefiles can enable cbor functionality
new cbor pseudomodules:
- cbor_ctime
- cbor_float
- cbor_semantic_tagging
2017-06-27 17:45:42 +02:00
Francisco Acosta
32b50c371a Merge pull request #6850 from aabadie/NZ32-SC151
boards/nz32-sc151: add initial support
2017-06-26 14:50:52 +02:00
e71bf07a68 Merge pull request #7223 from kb2ma/gcoap/confirm_piggy_server
net/gcoap: Provide piggybacked ACK response to confirmable request
2017-06-24 21:47:37 +02:00
Francisco Acosta
cd824c3bc2 Merge pull request #6723 from aabadie/nucleo144_f412
boards/nucleo144-f412: initial support
2017-06-23 15:29:41 +02:00
Ken Bannister
9768f51db6 net/gcoap: Unit tests for CON request and piggybacked ACK response 2017-06-21 22:47:08 -04:00
56396624be tests/unittests: skip b-l072z-lrwan1 board 2017-06-21 15:08:41 +02:00
Martine Lenders
bfa515bd43 tests: enhance tests for caching error case 2017-06-15 11:40:46 +02:00
Martine Lenders
0bf52f07f7 tests: provide unittests for internal NIB functions 2017-06-09 21:52:37 +02:00