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

781 Commits

Author SHA1 Message Date
Juan I Carrano
050e06f20f
Merge pull request #10376 from cladmi/pr/crypto/ccm/const_input
crypto/modes/ccm: update api to const input buffers
2018-11-27 15:33:00 +01:00
Hauke Petersen
b603c298ef
Merge pull request #9156 from kb2ma/gcoap/use_opt_add_api
net/gcoap: Use nanocoap pkt/options API
2018-11-26 11:20:27 +01:00
Ken Bannister
424a01ddc1 net/gcoap: remove gcoap attributes from coap_pkt_t 2018-11-24 07:09:25 -05:00
Ken Bannister
f8e5b3dee3 net/gcoap: update tests for nanocoap options API 2018-11-24 07:09:25 -05:00
José Alamos
396f53c2a1
Merge pull request #10300 from miri64/tests/enh/gnrc_rpl_srh_unittests
unittests/tests-rpl_srh: various improvements
2018-11-23 13:48:16 +01:00
Martine Lenders
78164977d8
Merge pull request #10223 from kb2ma/nanocoap/string_opt_first_char
net/nanocoap: fix string option separator write handling
2018-11-22 16:43:45 +01:00
Ken Bannister
fa77929cc7 net/nanocoap: fix string option separator handling
Assumed initial character was a separator when writing the option,
and skipped over it.
2018-11-22 09:25:05 -05:00
Tobias Heider
b4f7259a93 tests: add gnrc_pktbuf_merge() unittests 2018-11-22 11:13:33 +01:00
Martine Lenders
a63dec8074 unittests/gnrc_rpl_srh: make test constructor static 2018-11-20 09:32:32 +01:00
Gaëtan Harter
5c426f0fc9
tests-crypto-modes-ccm: change test inputs to const
Do required changes to have test inputs as const buffers.
2018-11-19 16:44:04 +01:00
Gaëtan Harter
3ca51d8b5d
tests-crypto/test-crypto.h: update api to const input buffers
Input buffers are not modified, so can be declared const arguments.
This will allow using `const` inputs for `modes/ccm` tests.
2018-11-19 16:44:04 +01:00
Gaëtan Harter
c87fe94ec1
crypto/modes/ccm: update api to const input buffers
Input buffers are not modified, so can be declared const arguments.
2018-11-19 16:44:04 +01:00
Martine Lenders
a0067b925d tests/unittests: provide tests for gnrc_pkt_len_upto() 2018-11-16 15:51:36 +01:00
Gaëtan Harter
147390c209
tests/ccm: add test for auth_data_len upper value
Maximal supported value is 0xFEFF.
2018-11-12 16:38:45 +01:00
Emmanuel Baccelli
365d82ed09
Merge pull request #9829 from OTAkeys/pr/uuid_string
uuid: add uuid_to_string() and uuid_from_string()
2018-10-30 14:30:47 +01:00
Martine Lenders
17738d7dd4 unittests/tests-rpl_srh: rename to tests-gnrc_rpl_srh 2018-10-30 12:41:45 +01:00
Martine Lenders
fb4689290d unittests/tests-rpl_srh: add failure tests 2018-10-30 12:41:40 +01:00
Martine Lenders
c7b90aab81 unittests/tests-rpl_srh: factor-out pointer initialization 2018-10-30 12:26:15 +01:00
Martine Lenders
54a8caf0cd unittests/tests-rpl_srh: reorder stack vars where appropriately
Also make constants static const ;-).
2018-10-30 12:16:38 +01:00
Martine Lenders
e56c6188ae unittests/tests-rpl_srh: move buffers out of function context
Things like this already lead to problems in other unittests, so move
them out of the stack.
2018-10-30 12:14:47 +01:00
Martine Lenders
d6ea335bfc unittests: add tests for gnrc_pktbuf_reverse_snips() 2018-10-25 23:11:33 +02:00
Martine Lenders
959e4491fa
Merge pull request #9702 from maribu/phydat_fit
sys/phydat: New phydat_fit API
2018-10-25 19:16:54 +02:00
Martine Lenders
466bc341a6
Merge pull request #10231 from miri64/gnrc_ipv6_ext/enh/move-rh-to-gnrc
gnrc_ipv6_ext: move ipv6_ext_rh (partly) to GNRC
2018-10-25 19:15:22 +02:00
Martine Lenders
390ddfba7c tests/unittests: adapt for value name changes 2018-10-25 14:02:46 +02:00
137e4825ed
tests/tweetnacl: Move from unittests to regular test
Stack size is changed from 4 times the default + printf to 5 times the
default stack size. Only on the lpc2387 this reduces the resulting stack
space. the test is not rerun for the lpc2387 and is untested.

Tests are disable for the Arduino. While they "might" work, it takes
around 8 minutes to complete the tests.
2018-10-24 16:56:32 +02:00
Marian Buschsieweke
fe46cae00d
sys/phydat: New phydat_fit API
The current phydat_fit implementation the following limitations:
- The API is way more complicated to use than needed
- It doesn't perform any rounding
- It uses `long` in a place where actual width (or better range) of the type
  is pretty important.

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

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

Now it can be used like this:
``` C
int32_t values[] = { 100000, 2000000, 30000000 };
phydat_t dat = { .unit = UNIT_V, .scale = 42 };
phydat_fit(&dat, values, 3);
```
2018-10-24 13:05:51 +02:00
Gaëtan Harter
f160a75aa5
Merge pull request #10209 from bergzand/pr/pkg/hacl_move
tests/hacl: Move from unittests to regular test
2018-10-23 18:32:27 +02:00
052fea24aa
tests/hacl: Move from unittests to regular test 2018-10-23 17:46:13 +02:00
smlng
24032ac9ae tests/heatshrink: move from unittests to regular test
This moves tests for the heatshrink package from unittests to a regular
test, which should help to decrease binary size of unittests.
2018-10-19 15:18:16 +02:00
Martine Lenders
ed1eb8ed9c
Merge pull request #10183 from bergzand/pr/tests/libcose_move
tests/libcose: Move from unittests to regular test
2018-10-18 15:16:20 +02:00
José Alamos
372a729e21
Merge pull request #10070 from OTAkeys/pr/bump_littlefs_version
pkg/littlefs: bump version to v1.6.2
2018-10-18 14:35:55 +02:00
PeterKietzmann
d3e34b4334 sys/ecc: add repetition code 2018-10-18 13:37:21 +02:00
03e2eca813 tests/libcose: Move from unittests to regular test 2018-10-18 11:43:18 +02:00
PeterKietzmann
9768995a0b sys/ecc: add golay(24,12) ECC 2018-10-18 09:05:28 +02:00
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