René Kijewski
11ce199c41
cbor: compare asserted lengths in unit test
...
In `test_array`, `test_array` and `test_map` the variable `offset` was
written to but not read. The accumulated value should equal the total
length of the input. This diff adds this check and fixes the warning
in turn.
Found via scan-build.
2015-08-25 21:16:50 +02:00
fa5046cd03
tests: unittests: add netopt module unit tests
2015-08-21 11:04:06 +02:00
Oleg Hahm
4267212502
fib: allow for multiple instances of FIB
2015-08-20 15:47:27 +02:00
Martine Lenders
58ff31bfe9
gnrc: make all gnrc modules sub-modules of gnrc
2015-08-18 23:00:07 +02:00
Oleg Hahm
b68213a410
Merge pull request #3561 from OlegHahm/ipv6_source_candidate_set
...
IPv6: implement source address candidate selection
2015-08-18 01:17:38 +02:00
Oleg Hahm
65e2acb29d
unittests: fixed ipv6_netif tests
...
Anycasts are not explicitly forbidden according to RFC6724, Appendix B.
2015-08-18 00:31:58 +02:00
Martine Lenders
feb8b8cc0f
Merge pull request #3639 from OlegHahm/unittest-color-output
...
Added a colored outputter to embUnit.
2015-08-17 22:06:51 +02:00
Janos Kutscherauer
5d7ba5b35f
Added a colored outputter to embUnit.
...
The outputter is called ColorTextOutputter and can be enabled by defining OUTPUT=COLORTEXT.
The colored outputter behaves just like the TextOutputter, but displays successful tests in GREEN and failed tests in RED. The summary message is also in GREEN/RED, but is slightly different from the TextOutputter.
Also:
* Added fancy simple none-verbose color-outputter for EmbUnit. The outputter outputs a simple statistics line in GREEN or RED, according to the test success or failure. (Also, the ColorTextOutputter was adjusted to use the statistics output of this new ColorOutputter.) The new outputter can be activated with OUTPUT=COLOR.
* Added a single character "." output for the simple color outputter and replaced the color codes by macros.
2015-08-17 15:04:27 +02:00
Oleg Hahm
bc3aba24a4
Merge pull request #3594 from authmillenon/ipv6/api/disentengle-hdr-ext
...
ipv6: move non-GNRC types and functions in their own module
2015-08-17 13:11:51 +02:00
Martine Lenders
bce1cf618d
Merge pull request #3586 from daniel-k/fix/pktbuf_release_check_contains
...
ng_pktbuf_static: check if pkt is in buffer before derefencing in ng_pktbuf_release
2015-08-17 10:22:44 +02:00
Martine Lenders
2903667494
tests: adapt unittests for ipv6_hdr module division
2015-08-14 17:18:37 +02:00
Martine Lenders
4f650b31f9
ipv6: move non-GNRC types and functions in their own modules
2015-08-14 17:18:35 +02:00
Hauke Petersen
e6a9549d16
Merge pull request #3213 from haukepetersen/add_pktbuf_iovecexport
...
net/ng_pktbuf: added IOVEC export function
2015-08-12 19:46:01 +02:00
daniel-k
12a3a65350
ng_pktbuf_static: remove unittests release_pkt_[null|external]
2015-08-12 14:41:20 +02:00
Martine Lenders
203561e741
ipv6_addr: remove ng_ prefix
2015-08-11 13:27:07 +02:00
Martine Lenders
2e6c974c15
Merge pull request #3568 from haukepetersen/opt_fib_ngprefix
...
net/fib: removed any ng_'s from the FIB
2015-08-11 02:28:00 +02:00
Martine Lenders
c82dfda445
Merge pull request #3567 from authmillenon/timex/enh/timex_to_str
...
timex: make timex_to_str more efficient
2015-08-11 02:21:41 +02:00
Martine Lenders
2a4fd4dd75
unittests: add test for timex_to_str()
2015-08-11 01:33:21 +02:00
Martine Lenders
a55400133b
tests: fix ipv6_netif tests
...
Fixes #3600
2015-08-10 15:47:50 +02:00
Hauke Petersen
85fe67e629
net/fib: removed all ng prefixes from fib
2015-08-10 15:43:55 +02:00
Hauke Petersen
a0600c1ee9
tests/unittests: added tests for pktbuf_get_iovec()
2015-08-10 10:37:55 +02:00
Hauke Petersen
1189b28d0d
tests/unittests: added tests for ng_pkt_count()
2015-08-10 10:37:55 +02:00
Oleg Hahm
e0f35b78e6
unittests: adapt tests to new IPv6 global check
2015-08-09 20:22:22 +02:00
Martine Lenders
5c03268516
inet_csum: remove ng_ prefix
2015-08-07 16:59:13 +02:00
Martine Lenders
b7545365df
protnum: remove ng_ prefix
2015-08-07 16:02:09 +02:00
Oleg Hahm
1373795ec5
Merge pull request #3575 from OlegHahm/ipv6_more_address_types
...
Ipv6: more address types
2015-08-07 09:22:50 +02:00
Oleg Hahm
f9417ba506
tests: unittests for all missing address checks
2015-08-07 08:15:05 +02:00
5d8349298f
remove bulk of legacy network stack and drivers
2015-08-06 12:12:47 +02:00
Oleg Hahm
2795d51d90
Merge pull request #3058 from cgundogan/universal_address_fib_split
...
sys/universal_address: separate universal_address from fib
2015-08-03 10:42:59 +02:00
Cenk Gündoğan
7e253df7f1
unittests: find best src addr with other subnet
2015-07-31 00:11:02 +02:00
Cenk Gündoğan
ea5e371383
sys/universal_address: separate universal_address from fib
2015-07-30 18:34:48 +02:00
Martine Lenders
3d9945667f
Merge pull request #3496 from authmillenon/ng_pktbuf/enh/new_default
...
ng_pktbuf: new default packet buffer implementation
2015-07-29 02:08:46 +02:00
Martine Lenders
9e823076f4
ng_pktbuf: new default packet buffer implementation
2015-07-29 00:47:30 +02:00
Martine Lenders
f747b07db8
unittests: adapt ng_pktbuf tests for new API
2015-07-29 00:47:30 +02:00
Hauke Petersen
ccf91572f8
tests: blacklisted nrf51dongle for some tests
2015-07-28 18:11:32 +02:00
Nico von Geyso
4a4235c622
Unified Cipher API and Block cipher operation modes
2015-07-22 19:18:34 +02:00
Oleg Hahm
717a4c8152
Merge pull request #3143 from authmillenon/ng_sixlowpan_ctx/api/comp-flag
...
ng_sixlowpan_ctx: add compression flag support
2015-07-17 08:23:05 +02:00
Martine Lenders
e6747b89e5
unittests: adapt for compression flag in ng_sixlowpan_ctx
2015-07-17 07:59:16 +02:00
BytesGalore
d97694f106
fib: repaired prefix/default gateway determination and added two according unittests
2015-07-16 13:46:36 +02:00
Joakim Gebart
fa4e059588
Merge pull request #3319 from gebart/pr/warning-fixes-3
...
Makefile.cflags: Build with -Wall -Werror by default (including fixes to correct all existing warnings)
2015-07-14 08:50:31 +02:00
Joakim Gebart
56067f8489
tests/unittests/tests-core-atomic: Reduce arbitrary test input numbers to fit inside int16_t
...
Fixes build warnings on avr and msp430
2015-07-14 08:11:15 +02:00
Joakim Gebart
754549b40d
tests/unittests/tests-ipv6_hdr: Cast to uint32_t to avoid truncation on msp430
2015-07-14 08:11:15 +02:00
René Kijewski
caf5503486
Merge pull request #3235 from haukepetersen/add_md5
...
sys/hashes: added MD5 implementation
2015-07-13 22:59:09 +02:00
Martine Lenders
888bdd70c1
unittests: fix length of test data strings
...
Fixes #3371
2015-07-13 14:37:24 +02:00
Martine Lenders
67d6333c39
unittests: fix errors cought by address sanitizer
2015-07-13 11:21:42 +02:00
Peter Kietzmann
c3814a7127
Merge pull request #3316 from authmillenon/ng_pktbuf/fix/align
...
ng_pktbuf: fix alignment overwrite issue
2015-07-08 10:49:26 +02:00
43ecf6d2c3
tests: unittests: add some bitfield unit tests
2015-07-07 17:49:18 +02:00
Martine Lenders
057ad18f22
unittests: add test for packet buffer alignment issues
2015-07-05 00:22:14 +02:00
Martine Lenders
69992ee7eb
Merge pull request #3293 from authmillenon/ng_inet_csum/fix/wrap-around
...
ng_inet_csum: fix double-wrap around of carry
2015-07-02 12:55:27 +02:00
Martine Lenders
6ce23a42f5
unittests: add test for ng_inet_csum() for double-wraparound
2015-07-02 12:06:31 +02:00