0fcc7d3834
cleanup: apply headerguard script output
2017-05-24 17:54:02 +02:00
kYc0o
bc2387ed25
tests-gcoap: move dependencies to gcoap module
2017-05-22 12:23:43 +02:00
ca70a58cfe
tests/unittests: add nucleo144-f412 to cortexM boards
2017-05-19 15:57:37 +02:00
4c9866d634
test/unittests: add arduino-mkr1000 for ARM and unsufficient memory boards
2017-05-16 10:14:59 +02:00
9156aa1483
tests/unittests: skip nz32-sc151
2017-05-13 20:00:42 +02:00
Vincent Dupont
9edda8d013
unittests/tests-spiffs: fix dummy memory layout
...
Use 8 pages per sector to comply with spiffs requirements:
- page_size must be block_size / (2^y) where y > 2
2017-05-10 17:44:59 +02:00
José Alamos
137d4689da
tests/unittests/tests-hashes: add tests for AES-CMAC
2017-05-08 13:52:12 +02:00
Vincent Dupont
e2d392629b
unittests/tests-mtd: disable AND flash test with dummy flash
2017-05-02 09:59:14 +02:00
Martine Lenders
006b12e4b3
Merge pull request #6960 from emmanuelsearch/delete-3des
...
sys: crypto: Remove 3DES crypto
2017-04-26 08:17:44 +02:00
Martine Lenders
7f778988c3
tests: provide test for off-by-x error in ipv6_addr
2017-04-25 19:19:27 +02:00
Emmanuel Baccelli
6589c01aa0
sys/crypto: remove 3DES
2017-04-25 18:34:18 +02:00
Ken Bannister
e7d6d57e5f
gcoap: Define length of client token in test to parse response.
2017-04-24 22:21:53 -04:00
Ken Bannister
412d0dd67e
gcoap: Use client token length macro when generate expected data.
2017-04-24 22:21:53 -04:00
smlng
3b50f30a6e
unittests: enhance tests-pkt with type search
2017-04-22 20:56:54 +02:00
Martine Lenders
38f383c68d
Merge pull request #6703 from OlegHahm/cppcheck_fixes
...
dist: enable cppcheck warnings for all files
2017-04-19 08:18:47 +02:00
Travis Griggs
b2e33e840f
unittests: unroll board lists to one item per line
2017-04-17 15:09:37 -07:00
908429eb33
tests: fix misc cppcheck warnings
2017-04-14 14:36:16 +02:00
Travis Griggs
43a9b85dd3
tests: update configuration for samd21-xpro
2017-04-13 18:21:07 -07:00
Vincent Dupont
70ed63ed25
Merge pull request #6838 from aabadie/nucleo32_l432
...
boards/nucleo32-l432: initial support
2017-04-13 09:44:05 +02:00
Joakim Nohlgård
a2b4c42c28
unittests: Only build C++ tests for some platforms
...
Known working platforms are native and Cortex-M
2017-04-10 09:31:13 +02:00
Joakim Nohlgård
0f477b8b44
unittests: Add C++ constructors test
2017-04-10 09:31:13 +02:00
a454975ae5
tests/unittests: skip nucleo32-l432
2017-04-06 22:23:31 +02:00
66c870a446
test/unittests: update ARM based boards list
2017-04-06 09:27:43 +02:00
Francisco Acosta
9edca89ea7
Merge pull request #6625 from aabadie/nucleo144_f303
...
boards/nucleo144-f303: initial support
2017-04-05 19:31:26 +02:00
Martine Lenders
117c9341ab
Merge pull request #6854 from gebart/pr/unittests-dir-wildcard
...
unittests: Refactor Makefile test wildcard matching line
2017-04-04 19:55:07 +02:00
Joakim Nohlgård
9809db3d90
unittests: Refactor Makefile test wildcard matching line
...
Eliminate external shell calls
2017-04-04 15:04:17 +02:00
Joakim Nohlgård
7f9b37e2ca
unittests: Add missing check for result of vfs_opendir in tests-spiffs
2017-04-03 10:08:25 +02:00
Joakim Nohlgård
f4dd0a31b2
Merge pull request #5625 from OTAkeys/pr/spiffs
...
pkg: add SPIFFS support
2017-03-31 20:29:41 +02:00
Vincent Dupont
b52c9a79cf
unittests: add spiffs unittests
2017-03-31 17:17:42 +02:00
Hauke Petersen
05bcd3106f
test: added nucleo-f476 to unittest targets
2017-03-30 16:58:34 +02:00
Joakim Nohlgård
d1ea50a600
mtd: Redefine MTD_0 as a mtd_dev_t *
2017-03-28 17:00:39 +02:00
a3774adfaf
tests: unittests: add unittest for fmt_lpad()
2017-03-27 17:44:51 +02:00
fb907b35f8
tests/unittests: add nucleo144-f303 to cortexM boards
2017-03-24 17:29:11 +01:00
8d49054190
tests/unittests: add nucleo144-f429 to cortexM boards
2017-03-18 15:58:13 +01:00
Vincent Dupont
1b2b5d9df9
Merge pull request #5624 from OTAkeys/pr/mtdi_flash
...
mtd: add a generic low level flash interface
2017-03-17 17:18:13 +01:00
879fe0c416
tests/unittests: add nucleo144-f446 to cortexM boards
2017-03-16 18:24:34 +01:00
Joakim Nohlgård
9782be1d91
unittests: add unit test for mtd-vfs
2017-03-16 18:19:05 +01:00
Vincent Dupont
81149f1843
unittests: add mtd unittests
2017-03-16 11:24:46 +01:00
83307d311e
tests/unittest: add nucleo-f302 to unsufficient memory list
2017-03-16 10:44:37 +01:00
ca85e8afe4
Merge pull request #6651 from aabadie/nucleo32_l031
...
boards/nucleo32-l031: initial support
2017-03-16 08:30:48 +01:00
a0e45d1390
tests/unittest: remove nucleo32-l031 from unittest
2017-03-15 14:08:06 +01:00
721ca1ee78
tests/unittests/relic: remove nucleo-f410 from blacklist
2017-03-15 13:25:21 +01:00
478ee1a9a0
tests: add nucleo-f410 to unsufficient memory boards
2017-03-14 18:45:11 +01:00
Vincent Dupont
db65e8b3fe
tests: sort ARM_CORTEX_M_BOARDS in Makefile
2017-03-14 08:12:59 +01:00
Vincent Dupont
ad0f0877cc
tests,examples: sort BOARD_INSUFFICIENT_MEMORY alphabetically
2017-03-13 18:27:50 +01:00
26b99a57be
cpu: native: add vfs wrappers
2017-03-07 17:59:59 +01:00
Joakim Nohlgård
0371769e72
devfs: Dynamic file system for device nodes
2017-03-07 17:59:59 +01:00
Joakim Nohlgård
dcc37329df
sys/vfs: A virtual file system (VFS) layer for RIOT
...
The VFS layer provides file system abstractions to allow using a unified
interface to access files from mounted file systems.
2017-03-07 17:59:57 +01:00
Hauke Petersen
f3d3c08e2a
Merge pull request #6679 from brummer-simon/ringbuffer-remove-bugfix
...
core: bugfix: ringbuffer_remove
2017-03-06 17:27:07 +01:00
Loïc Dauphin
ac53dff0cb
tests: rename opencm9-04 into opencm904
2017-03-03 09:57:53 +01:00
0e874357a2
tests: remove nucleo-l053 from unittests
2017-03-02 13:52:12 +01:00
Simon Brummer
68581a8fbe
core: bugfix: ringbuffer_remove
2017-03-01 22:01:26 +01:00
BytesGalore
dacc3cba9f
Merge pull request #6283 from OTAkeys/pr/hmac_iterative_calc
...
hashes/sha256: add iterative hmac calc. functions
2017-03-01 17:14:11 +01:00
Hermann Lelong
f2ef9db988
hashes/sha256: add iterative hmac calc. functions
...
Add init, update, and final functions to do HMAC
calculation using blocks, instead of one shot.
Unit tests: use the PRF-6 test vector to test the case
where data is splitted in 3 different blocks.
2017-03-01 15:51:21 +01:00
4ca7f1096a
tests/unittests: exclude nucleo-l073 board
2017-02-24 16:12:41 +01:00
77df65e95e
tests: add nucleo32-f031 to unsufficient memory boards
2017-02-22 18:43:02 +01:00
3628617001
tests/unittest: add nucleo-f411 to ARM Cortex based boards
2017-02-22 15:18:21 +01:00
Joakim Nohlgård
cb34eed8f3
tests/unittests/core-atomic: Use stdatomic.h instead of custom atomic.h
2017-02-08 16:23:49 +01:00
kYc0o
5ff272f9f8
tests/unittests: add more boards to insufficient memory list
2017-01-26 15:02:00 +01:00
kYc0o
2277cc3354
tests/unittests/tests-tweetnacl: increase needed stack
2017-01-26 15:02:00 +01:00
Martine Lenders
751a82807b
Merge pull request #6214 from miri64/tests/enh/list-unittests
...
tests: provide unittests for core/list
2017-01-24 15:56:43 +01:00
Francisco Acosta
e44236d379
Merge pull request #6170 from haukepetersen/add_periph_romaddrtopage
...
drivers/flashrom: added addr-to-page function
2017-01-24 14:18:41 +01:00
Martine Lenders
b0a849c01c
tests: provide unittests for core/list
2017-01-24 14:15:48 +01:00
Hauke Petersen
87bdd7be32
tests/unittests: added flashpage tests (page<->addr)
2017-01-24 09:41:56 +01:00
Frits Kuipers
e483c2307b
boards/maple-mini: initial support
2017-01-21 16:27:17 +01:00
Martine Lenders
5b1c00ad8b
Merge pull request #6388 from astralien3000/opencm9-04
...
boards/opencm9-04 : initial support
2017-01-21 14:37:50 +01:00
Ken Bannister
342c3f2ed3
gcoap: Remove coap.h include file, which is no longer used.
...
Also change references in dependencies to the net/gcoap.h include.
2017-01-20 22:00:25 -05:00
Ken Bannister
acda73c9c7
gcoap: Update unit tests for rebase on sock
2017-01-20 22:00:25 -05:00
Loïc Dauphin
73a3be518b
tests: add opencm9-04 to insufficient memory boards in some tests
2017-01-20 18:11:00 +01:00
smlng
a79ee2d623
unittests: fix heatshrink compiler error on macOS
2017-01-20 14:34:35 +01:00
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
2017-01-19 18:30:53 +01:00
Oleg Hahm
693636690c
Merge pull request #6399 from OlegHahm/timex_constants
...
timex: unambiguous time conversion macros
2017-01-19 17:29:26 +01:00
Martine Lenders
76f951b54f
Merge pull request #6326 from smlng/pr/osx/tests_name_clash
...
tests: fix linker failure on OS X due to name clash
2017-01-19 16:08:13 +01:00
smlng
6a037ad004
tests: add prefix to Makefile.tests_common
...
- fixes name clash on macOS
- correct naming of test coap to pkg_libcoap
2017-01-19 15:20:37 +01:00
Martine Lenders
8ba057daf7
Merge pull request #6377 from aabadie/nucleo32-f303
...
boards/nucleo32-f303 : initial support
2017-01-19 14:19:28 +01:00
Oleg Hahm
4f4214235b
timex: unambiguous time conversion macros
2017-01-19 13:18:08 +01:00
Oleg Hahm
b9b6e4934c
Merge pull request #5203 from OlegHahm/cbor_bound_checking
...
cbor: bounds checking on read and no_copy string deserialization
2017-01-19 12:21:18 +01:00
ca11e4c9e6
tests: add nucleo32-f303 to insufficient memory boards in some tests
2017-01-19 11:09:42 +01:00
963662416b
boards/nucleo32-f042: change board name nucleo->nucleo32
2017-01-18 22:04:59 +01:00
Lucio Torre
d783d784c9
cbor: add zero copy string deserialization
2017-01-18 19:33:00 +01:00
smlng
48a93cb665
unittests: fix array length error on OSX
2017-01-18 13:50:56 +01:00
21faabe417
Merge pull request #5948 from kaspar030/add_pkg_heatshrink
...
pkg: add heatshrink compression library
2017-01-17 08:37:04 +01:00
680a923aa5
tests: unittests: add unittests for heatshrink package
2017-01-17 00:04:03 +01:00
Oleg Hahm
c2893d4a88
sys: crypto: remove twofish and rc5
2017-01-15 14:53:43 +01:00
0194091673
remove obsolete lpm code
2017-01-12 11:24:15 +01:00
Francisco Acosta
deeb48723b
Merge pull request #6293 from kYc0o/tweetnacl_pkg
...
pkg: add tweetnacl as a package
2017-01-11 21:04:00 +01:00
kYc0o
b84b151e78
tests/unittests: add tweetnacl unittest
2017-01-11 16:29:53 +01:00
Peter Kietzmann
82ec622748
Merge pull request #6168 from BytesGalore/base64_fix_expected_encode_size
...
sys/base64: corrected output size determination
2017-01-11 11:51:06 +01:00
BytesGalore
49f89b4268
sys/base64: corrected output size determination
2017-01-10 18:30:38 +01:00
Vincent Dupont
1a12a40110
boards/nucleo-f042: initial support
2017-01-10 10:34:35 +01:00
zhuoshuguo
6a0ac75d2c
gnrc_mac: add mac tx and rx internal types and API.
2017-01-04 13:59:16 +01:00
Martine Lenders
71f778aa65
tests: provide unittests for ucrc16
2016-12-27 00:58:11 +01:00
9172e42437
tests/unittests: add stm32f3discovery to BOARD_INSUFFICIENT_MEMORY
2016-12-18 16:56:36 +01:00
Joakim Nohlgård
c5058673b7
tests/unittests: Mark limifrog-v1 for insufficient memory
2016-11-29 20:44:31 +01:00
Joakim Nohlgård
4e5fae77da
tests/fib: Tidy up code style and fix cppcheck warning
2016-11-29 20:44:31 +01:00
Joakim Nohlgård
7c48c891a0
xtimer: Update xtimer usage to match API changes
2016-11-29 20:44:31 +01:00
Joakim Nohlgård
199140e50b
sys/div: Add support for big 64 bit numbers
2016-11-28 11:00:42 +01:00
Joakim Nohlgård
94da9c2975
sys/div: Add div_u64_by_15625div512
...
64-bit version of div_u32_by_15625div512
also updated tests-div to use correct order for expected and actual values in unit tests (embUnit)
2016-11-28 11:00:42 +01:00
Hauke Petersen
8787eee178
tests: blacklisted calliope-mini
2016-11-21 17:20:53 +01:00
Hauke Petersen
fe7fc50106
tests: blacklisted microbit for insufficiant RAM
2016-11-09 12:01:09 +01:00
Martine Lenders
57ab1b06d5
unittests: Add more boards to BOARD_INSUFFICIENT_MEMORY
...
Somehow in the merging of 6dac4bd
this was not catched, but those new
unittests made the total build too big for some more boards.
2016-11-01 11:05:43 +01:00
Martine Lenders
6dac4bd530
Merge pull request #5950 from zhuoshuguo/add_packet_queue_module_to_gnrc_mac
...
gnrc: Add priority packet queue module to gnrc
2016-11-01 07:45:31 +01:00
Ken Bannister
88a3eeb574
gcoap: unit tests
2016-10-31 22:41:53 -04:00
zhuoshuguo
0ebe2a0309
gnrc: add priority packet queue module.
2016-10-31 16:53:01 +01:00
Martine Lenders
5090e805e6
Merge pull request #5976 from miri64/tests/enh/fletcher-wrap-around
...
tests: unittests: add tests for longer input vectors
2016-10-26 17:52:03 +02:00
1659f56904
boards/nucleo-f070: initial support for nucleo-f070 board
2016-10-26 14:12:39 +02:00
Martine Lenders
0016463687
all: fix for new netreg_entry_t structure
2016-10-25 22:17:18 +02:00
Hauke Petersen
bc232a5642
Merge pull request #5524 from miri64/gnrc_netreg/api/helper-macro
...
gnrc_netreg: introduce helper macro/function for entry init
2016-10-25 21:21:25 +02:00
Hauke Petersen
bee57a4d6a
Merge pull request #5798 from aabadie/nucleo-f030
...
boards: initial support for Nucleo f030 board
2016-10-25 19:50:59 +02:00
Lucas Jenß
4e20feb453
Merge pull request #5975 from miri64/cbor/bug/i5420
...
cbor: fix off-by-one error
2016-10-25 19:20:52 +02:00
Martine Lenders
dc45cd2610
gnrc: use new netreg helper functions everywhere
2016-10-25 18:47:30 +02:00
Martine Lenders
f341947612
cbor: fix off-by-one error
2016-10-24 15:52:05 +02:00
Martine Lenders
100991e59e
tests: unittests: add tests for longer input vectors
...
Fixes #5299
2016-10-21 11:06:27 +02:00
560a509036
make: remove trailing slash from BINDIR variable
2016-10-18 23:27:59 +02:00
3f29e77a4c
boards/nucleo-f030: initial support
2016-10-12 14:32:25 +02:00
Francisco Acosta
ba6a8e06b0
Merge pull request #5475 from aabadie/arduino_zero
...
boards/arduino-zero: add initial support
2016-10-06 20:26:33 +02:00
68acc8857e
boards/arduino-zero: add initial support
2016-10-04 18:34:51 +02:00
Martine Lenders
ed343907e4
tests: adapt tests for changed broadcast settings
2016-09-30 14:57:06 +02:00
Martine Lenders
3b35dae6cd
tests: adapt unittests for removal of user-controlled PAN_COMP
2016-09-30 14:57:05 +02:00
Kees Bakker
076d5bda11
boards: add support for SODAQ Autonomo
...
The following features were tested (briefly):
* UART (the first)
* I2C using a BMP180 on a SODAQ TPH board
* SPI0, connected to the on-board serial data flash (only DevID was read
using the periph_spi test program)
* xtimer is working (it's the same code as in samr21)
boards/sodaq-autonomo: Disable the "big" unittests because it does not fit
2016-09-28 18:02:16 +02:00
Martine Lenders
6f0018f66a
Merge pull request #5694 from miri64/gnrc/enh/0-length-payload
...
gnrc_pktbuf: allow for 0-sized payload snips
2016-09-28 07:09:23 +02:00
Martine Lenders
8f890b3790
tests: adapt unittests for new gnrc_pktbuf preconditions
2016-09-27 21:49:58 +02:00
Martine Lenders
1f5dcd91cc
Merge pull request #5873 from Lotterleben/unittest_link_fix
...
unittests: fix link
2016-09-27 20:57:03 +02:00
Lotte Steenbrink
faaf50619d
unittests: fix link
2016-09-27 11:41:44 -07:00
Lotte Steenbrink
1bccdfe9c2
unittests: document make debug
2016-09-27 11:34:35 -07:00
BytesGalore
9818d053f4
hashes/sha256: changed data pointer parameters to void*
2016-09-27 06:36:08 +02:00
b2b42c7b71
Merge pull request #5451 from mali/uno
...
boards: add arduino uno and duemilanove support
2016-09-22 09:29:49 +02:00
Laurent Navet
3ff576e46a
tests: adapt for arduino uno and duemilanove support
...
- blacklist arduino-uno and arduino-duemilanove for
coap, libfixmath_unittests, lwip, nhdp,
pthread, pthread_barrier, pthread_cleanup, pthread_condition_variable
pthread_cooperation, pthread_rwlock and pthread_tls tests.
- fix sys/pipe build
- unittests: boards added to BOARD_INSUFICIENT_MEMORY list.
2016-09-21 21:12:58 +02:00
Martine Lenders
dd7fb1c63b
Merge pull request #5228 from OlegHahm/gnrc_ipv6_hdr_get
...
gnrc ipv6: convenient function to get the header
2016-09-01 23:16:49 +02:00
Oleg Hahm
de0963948c
tests: unittests for gnrc_ipv6_get_header
2016-07-22 16:34:52 +02:00
Lotte Steenbrink
fef429e16b
fix typo
2016-07-20 12:20:50 +02:00
Hauke Petersen
08a2aed46d
unittests: added test for printf with floats
2016-07-18 23:22:28 +02:00
Martine Lenders
e16bbda5f6
Merge pull request #5629 from kaspar030/improve_clist
...
core: improve clist
2016-07-18 19:36:16 +02:00
d86c141842
core, tests: adapt to changed clist function names
2016-07-18 16:20:40 +02:00
Victor Arino
e84e2996f3
core/cib: add unittest for cib_peek
2016-07-18 08:57:44 +02:00
Joakim Nohlgård
ffb4573667
Merge pull request #5097 from gebart/pr/make-include
...
make: Place most configuration macros in a separate file instead of on the command line
2016-07-07 18:03:18 +02:00
Joakim Nohlgård
4d6883a732
tests/unittests: Remove unnecessary FORCE target
...
Changes to CFLAGS #defines are now picked up by the configuration
header (genconfigheader) when building, so the FORCE target is no longer
necessary when building different test suites.
2016-07-05 16:06:33 +02:00
kYc0o
62a9773a9c
boards/waspmote-pro: add support for Waspmote PRO v1.2
2016-07-05 13:05:12 +02:00
Martine Lenders
2af14d6373
unittests: apply proper naming for gnrc_netif tests
2016-06-04 17:21:27 +02:00
aee6a6ad60
Merge pull request #5307 from kaspar030/add_fmt_types
...
sys: fmt: add fmt_u64_dec(), print_u64_dec()
2016-06-02 11:12:40 +02:00
be269d3773
tests: unittests: add fmt_u64_dec() tests
2016-06-02 10:40:19 +02:00
Mathias Tausig
dfee5c3274
hashes: Unified the cryptographic hash functions
...
- Same signatures for XXX_init, XXX_update and XXX_final
- Same naming conventions and parameter types for all funtions in sha1.h
2016-05-24 16:52:30 +02:00
Leon M. George
c8985056e9
tests/unittests: cc2650stk insufficient memory
2016-04-18 19:00:50 +02:00
Hauke Petersen
e2fe3cc504
test: added unittests for the SAUL registry
2016-04-15 15:07:49 +02:00
Ludwig Knüpfer
ef25f32536
tests/checksum: fix style in fletcher32
2016-04-08 22:03:48 +02:00
Ludwig Knüpfer
018b3b4660
tests/checksum: fix style in fletcher16
2016-04-08 22:03:48 +02:00
Ludwig Knüpfer
4d9ac9eebd
tests/checksum: fix style in crc16-ccitt
2016-04-08 22:03:48 +02:00
Ludwig Knüpfer
889adc18b8
unittests: add fletcher* tests
2016-04-08 22:03:48 +02:00
Hauke Petersen
02df871428
Merge pull request #4949 from jia200x/nucleo-f072
...
board: added support for nucleo f072
2016-03-31 19:18:28 +02:00
José Ignacio Alamos Aste
cc0e94f9c6
blacklist: nucleo-f072: blacklisted several examples and tests
2016-03-31 19:08:10 +02:00
Cenk Gündoğan
9dbfdcac0b
Merge pull request #4279 from BytesGalore/fib_prefix_handling_change
...
fib: changed handling of the net prefix by the FIB
2016-03-30 11:19:49 +02:00
BytesGalore
1bc9c3bfd2
fib: changed handling of the net prefix
...
Until now the prefix length has been determined automatically by the FIB
This PR changes it to be provided as msb(yte) in the global_flags of an entry
2016-03-30 10:05:05 +02:00
1bac3f3a2f
tests: unittests: adapt tests-core-clist to singly linked clist
2016-03-30 00:27:49 +02:00
Hauke Petersen
0610c20914
tests: added unittests for fmt_s16_[dfp|dec]()
2016-03-29 15:23:04 +02:00
Cenk Gündoğan
37c2dc961c
tests-ipv6_nc: init interfaces for all unittests
2016-03-24 16:13:21 +01:00
Oleg Hahm
991c71cf27
gnrc ipv6: use ipv6_addr_t ptr for hdr_build
2016-03-23 15:20:12 +01:00
Oleg Hahm
360413a033
gnrc ipv6 hdr: remove len params from hdr_build
2016-03-23 15:20:11 +01:00
DipSwitch
0bb4748a94
core: Fix/refactor function naming in core/incude/irq.h
2016-03-20 16:47:34 +01:00
Cenk Gündoğan
a2979cdeb4
unittests/tests-ipv6_nc: add tear_down
2016-03-16 13:51:23 +01:00
Martine Lenders
0a3b56e0b4
Merge pull request #5006 from immesys/fix-rtr-adv
...
ndp: change rtr adv src to link local
2016-03-16 12:42:12 +01:00
Simon Brummer
1af9612b34
sys/color: added RGB inversion and complementary color
2016-03-16 11:43:26 +01:00
Oleg Hahm
bdcf8879fd
core: merged kernel_macros.h and attributes.h
...
Merged into new kernel_defines.h and updated all includes.
2016-03-09 22:29:06 +01:00
Michael Andersen
60f6aeaf70
ndp: change rtr adv src to link local
2016-03-08 21:33:35 -08:00
Martine Lenders
32e0c7ae66
Merge pull request #4636 from authmillenon/ieee802154/enh/general-hdr
...
ieee802154: provide general header build and read functions
2016-03-07 21:02:52 +01:00
Martine Lenders
ab0505dfff
tests: provide unittests for ieee802154 module
2016-03-07 16:40:30 +01:00
Martine Lenders
cba05cc028
Merge pull request #4873 from Yonezawa-T2/zero_udp_checksum
...
udp: fixed a corner case for checksum computation.
2016-03-07 09:21:24 +01:00
Martine Lenders
9201063bd1
Merge pull request #3307 from OlegHahm/sixlowpan-tests_0
...
unittests: initial import of 6LoWPAN tests
2016-03-07 09:16:05 +01:00
Oleg Hahm
e0c38f9899
unittests: initial import of 6LoWPAN tests
2016-03-06 21:00:24 +01:00
Martine Lenders
cf9bef8f16
Merge pull request #4965 from kaspar030/add_testrunner
...
tests: add shared pexpect test code
2016-03-05 23:59:29 +01:00
test
a9ef72ff02
tests: make use of testrunner
2016-03-05 20:36:28 +01:00
2b010b5337
core: rename tcb_t -> thread_t, move into thread.h
2016-03-05 18:20:17 +01:00
Joakim Nohlgård
3af809bdfc
Merge pull request #4910 from kaspar030/core_header_cleanup
...
core: header cleanup
2016-02-29 22:48:35 +01:00
9082273746
core: header cleanup
2016-02-28 22:46:28 +01:00
Cenk Gündoğan
170acbc4f6
rpl: srh: add unittests
2016-02-27 20:40:06 +01:00
BytesGalore
f0245bd648
hashes/sha256: add sha256-chain computation and verification functions
...
* also added unittetst for it
x[SQUASH ME] separated out all waypoints test and increased waypoints
2016-02-24 19:04:17 +01:00
Oleg Hahm
dd15430fce
Merge pull request #4856 from BytesGalore/sha256_separate_unittests
...
unittests/sha256: separated tests to prevent stack corruption on boards
2016-02-24 16:55:17 +01:00
BytesGalore
8a0016a928
unittests/sha256: separated tests to prevent stack corruption on borards
2016-02-24 14:07:49 +01:00
Oleg Hahm
e0732a5a81
Merge pull request #4701 from OlegHahm/sha1
...
hashes: Import of SHA-1 algorithm
2016-02-23 12:23:21 +01:00
Oleg Hahm
20567d46dc
tests: added unittests for SHA-1
2016-02-23 12:09:37 +01:00
Yonezawa-T2
e92c355aba
udp: fixed a corner case for checksum computation.
...
Fixes #4842 .
RFC 2460 section 8.1 (https://tools.ietf.org/html/rfc2460#section-8.1 )
states:
> if that computation yields a result of zero, it must be changed to hex
> FFFF for placement in the UDP header.
2016-02-22 20:30:31 +09:00
Cenk Gündoğan
f26ea2028c
unittests: added some unittests for the color module
2016-02-21 20:18:25 +01:00
Ludwig Knüpfer
1fedd456ce
Revert "crc: rename checksum to CRC"
...
This reverts commit 3f645884a4
.
2016-02-15 09:28:57 +01:00
Joakim Nohlgård
686cad8170
tests/unittests/tests-cbor: Add static to compilation-unit local variables
2016-02-11 15:19:56 +01:00
BytesGalore
b1537bc17c
hashes/sha256: initial commit for hmac-sha256 computation
2016-02-06 08:11:37 +01:00
Oleg Hahm
3f645884a4
crc: rename checksum to CRC
2016-02-04 14:58:34 +01:00
Oleg Hahm
51db509f7c
sha256: move from crypto to hashes
2016-02-04 14:58:34 +01:00
Cenk Gündoğan
e0bf46ce60
unittests: nc: test reachability of unmanaged entries
2016-01-30 15:27:08 +01:00
Ludwig Knüpfer
1df395f364
Merge pull request #4647 from LudwigKnuepfer/pr/sys-checksum
...
sys/checksum: initial import including CRC16-CCITT
2016-01-28 18:11:35 +01:00
Oleg Hahm
a57e77e46a
sys: remove hash_string module
...
hash_string implements djb2 which is already part of `sys/hashes/`
2016-01-28 14:20:54 +01:00
Martine Lenders
03081216f3
Merge pull request #4692 from authmillenon/unittests/fix/python3
...
unittests: fix for python3
2016-01-27 23:32:37 +01:00
Ludwig Knüpfer
edbfdeb02e
tests/unittests: add checksum test
2016-01-27 19:28:05 +01:00
Martine Lenders
0f7f9fe986
unittests: fix for python3
2016-01-27 15:07:35 +01:00
BytesGalore
59a69796ab
unittests/crypto: changed to really compare digest vs string of digest
...
* added additional test with longer input
* uncrustified file
2016-01-27 06:32:28 +01:00
Cenk Gündoğan
617796241e
Merge pull request #4295 from authmillenon/gnrc_ipv6_nc/enh/l2addr-lookup
...
gnrc_ipv6_nc: introduce L2 address lookup function
2016-01-26 19:30:01 +01:00
Martine Lenders
9740ccae52
unittests: add tests for gnrc_ipv6_nc_get_l2_addr()
2016-01-26 10:19:16 +01:00
Martine Lenders
4fb7939ab9
unittests: add new test runner script
2016-01-23 15:22:18 +01:00
Martine Lenders
55044512fb
unittests: do not powerdown node at the end
2016-01-23 15:17:36 +01:00
Aaron Sowry
7759611713
Rename 'openmote' board to 'openmote-cc2538'
...
This is to avoid ambiguity with future versions of the OpenMote platform.
2016-01-23 08:06:15 +13:00
Martine Lenders
d48a8230f9
unittests: add unittests for overflow fix
2016-01-07 15:17:52 +01:00
Martine Lenders
3b9c9abad8
unittests: fix formatting of fib_sr tests
2015-12-19 21:58:40 +01:00
Martine Lenders
e664507f00
unittests: some fixes to fib_sr tests
2015-12-19 21:56:50 +01:00
Martine Lenders
fa7df9adb2
unittests: deactivate relic tests for all but native
2015-12-18 23:48:32 +01:00
Martine Lenders
d1d39fd3cf
Revert "unittests: deactivate relic tests for all but native"
2015-12-18 23:44:58 +01:00
Martine Lenders
18ab5bf898
unittests: deactivate relic tests for all but native
2015-12-18 23:40:20 +01:00
Victor Arino
3a8a932b27
boards/nucleo-f103: add support for nucleo-f103
2015-12-15 17:23:27 +01:00
Hauke Petersen
cf53aeddd8
Merge pull request #4382 from haukepetersen/rm_core_flagsh
...
core: move thread flags from flags.h to thread.h
2015-12-08 11:36:43 +01:00
Oleg Hahm
7fd62876af
unittests: exclude tests for particular platforms
2015-12-08 08:58:11 +01:00
Tobias Markmann
57b8a24466
Add a RELIC package and unit test that shows how to use it
...
Add install of cmake to .travis.yml.
Test-Information:
This has been tested on OS X and on Ubuntu for both the native target
and STM32F4Discovery.
2015-12-08 08:58:11 +01:00
Hauke Petersen
cc23481d55
tests: adapted to renamed THREAD_FLAGS
2015-12-07 22:09:47 +01:00
Hauke Petersen
fa7c2a1b45
tests: removed includes of flags.h
2015-12-07 22:09:46 +01:00
Oleg Hahm
baa4869b70
tests: unittests for gnrc_netif_exist
2015-12-04 10:38:04 +01:00
Martine Lenders
281b0ba46e
Merge pull request #4343 from kb2ma/misc/fix-checksum
...
Fix UDP/ICMPv6 checksum for a sliced/accumulated payload.
2015-12-03 13:16:12 +01:00
Ken Bannister
0cd5bf9b8f
Add unit tests for inet_csum_slice()
2015-12-02 05:53:58 -05:00
Lucas Jenss
ddaa9863f2
Add 256 byte block hamming code implementation
2015-11-30 20:08:36 +01:00
e98237a26f
sys: div: remove div_u32_by_10()
2015-11-19 13:29:10 +01:00
Joakim Nohlgård
6378be104c
Merge pull request #4100 from authmillenon/tests/fix/i4095
...
unittests: initialize xtimer if present
2015-11-06 08:53:18 +01:00
BytesGalore
523d1f87ca
net/fib: Added network prefix flag to indicate a network destination
2015-11-02 15:57:39 +01:00
Cenk Gündoğan
26e67b86b5
Merge pull request #4161 from kaspar030/add_fmt
...
sys: fmt: initial commit of simple string formatting library
2015-10-30 18:51:29 +01:00
Cenk Gündoğan
de52225c70
sys: fmt: add basic unittests for fmt
2015-10-29 19:18:24 +01:00
Cenk Gündoğan
206e027725
Merge pull request #3647 from BytesGalore/fib_source_routing
...
fib: initial source route support
2015-10-29 12:08:47 +01:00
Martine Lenders
42d387a42f
unittests: initialize xtimer if present
2015-10-29 09:39:30 +01:00
BytesGalore
6c57582107
fib: initial source route support
2015-10-27 20:20:18 +01:00
Cenk Gündoğan
697e7923e6
ipv6-tests_addr: add test for ipv6_addr_init_iid
2015-10-26 16:55:02 +01:00
Cenk Gündoğan
7ecd6d4a8a
fib: reduce scope of global vars to the scope of fib_table_t
2015-10-19 10:26:41 +02:00
f1e742dcf4
tests: unittests: add unittests for div.h
2015-10-12 23:25:58 +02:00
Cenk Gündoğan
4b405b9680
unittests/tests-bloom: use static memory for bloom
2015-10-05 11:41:53 +02:00
Paul Rathgeb
cefe2a6698
make: Blacklisted the board 'weio' for some test due to insufficient
...
RAM/ROM
Blacklisted LPC11Uxx.h for doxygen
2015-10-01 20:11:48 +02:00
Thomas Eichinger
99720b4eec
unittest/fib: fix printf formating for OS X
2015-09-30 15:41:59 +02:00
Martine Lenders
8df17de95b
Merge pull request #3925 from authmillenon/gnrc_pktbuf_static/fix/short_snip
...
gnrc_pktbuf_static: fix marking of pktsnips with short payload
2015-09-22 16:20:22 +02:00
Oleg Hahm
a0957b11d6
Merge pull request #3926 from OlegHahm/some-scan-build-warnings
...
clean up: Some scan build warnings
2015-09-22 11:43:20 +02:00
Martine Lenders
b254889b2b
tests: unittests: provide test for fix
2015-09-22 10:50:17 +02:00
Oleg Hahm
423d6e31f3
unittests: add an netif before performing nc tests
2015-09-17 11:11:49 +02:00
Oleg Hahm
5644102399
unittests: adapt netif tests to 1461675
...
Since 14616753433559bb7be7a8bed224d86d339b5fe2 an IPv6 interface doesn't have a link-local address per default any more, so tests shouldn't check for it.
2015-09-17 11:11:26 +02:00
5a485c3f73
sys: net: fib: switch to xtimer
2015-09-16 10:58:56 +02:00
Martine Lenders
f595ac32a6
unittests: tests-ipv6_addr: adapt for optional IPv4 address support
2015-09-11 20:03:46 +02:00
Martine Lenders
be587ca717
tests: add unittests for ipv4_addr
2015-09-11 16:32:36 +02:00
Oleg Hahm
8afecdd8a6
Merge pull request #3658 from OlegHahm/ipv6_fib
...
universal_addresses: configure sizes according to the used modules
2015-09-07 10:14:08 +02:00
Oleg Hahm
7d2f414476
universal_address: make size dependent on FIB size
2015-09-07 09:18:29 +02:00
Hauke Petersen
fe5d9fb3df
tests: removed redbee-econotag from blacklistings
2015-09-04 10:44:48 +02:00
Oleg Hahm
b514eeab04
Merge pull request #3706 from OlegHahm/fib_size_parameter
...
fib: add size parameter
2015-09-01 11:28:55 +02:00
Oleg Hahm
86cabbd102
fib: add data struct for meta information
...
In order to properly make use of different FIB tables, handling of different sizes is required. The fib_table_t provides a pointer to the array of entries and its size.
2015-09-01 11:09:10 +02:00
Cenk Gündoğan
7848a03549
tests/unittests: BOARD_INSUFFICIENT_RAM => BOARD_INSUFFICIENT_MEMORY
2015-08-28 18:13:34 +02:00
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
Frank Holtz
ee952f79fe
boards: added nrf6310 support. (NRF51 MCU)
2015-08-23 17:00:01 +02:00
Martine Lenders
c1e24d449e
Merge pull request #3584 from cgundogan/pr/seqno
...
sys: Serial Number Arithmetic (RFC1982)
2015-08-21 23:55:08 +02:00
Cenk Gündoğan
9d1b899e56
tests/unittests/tests-seq: unittests for Serial Number Arithmetic
2015-08-21 23:30:06 +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
Martine Lenders
8b7a0c2613
unittests: add ng_ipv6_hdr_inet_csum test for initial sum overflows
2015-07-01 17:49:19 +02:00
Philipp Rosenkranz
1913b7ea66
Merge pull request #3229 from Kijewski/chacha
...
sys: add ChaCha stream cipher and PRNG
2015-06-28 21:13:59 +02:00
René Kijewski
2cf4253710
sys: add ChaCha stream cipher and PRNG
...
This implementation is optimized for a little code and data size, not
for speed. IMO the code is more readable than in the reference
implementation.
The biggest advantage of ChaCha over other stream ciphers is the very
little data usage with only 64 bytes of context, and its good encryption
speed.
Also part of this PR is pseudo-random number generator, that just
returns the keystream of a randomly initialized ChaCha context.
2015-06-28 18:32:04 +02:00
BytesGalore
db18e5760a
fib: added check for passing NULL pointers to fib_get_next_hop()
2015-06-24 09:05:24 +02:00
haukepetersen
b708e423ed
tests/unittest: added tests for MD5
2015-06-22 21:43:28 +02:00
Martine Lenders
82e54d0970
tests: adapt unittests for new pktqueue
2015-06-22 18:19:54 +02:00
René Kijewski
98aec32f6b
ng_netif: more formats for ng_netif_addr_from_str
2015-06-13 13:38:11 +02:00
René Kijewski
7d3d8dee21
ng_netif: make const what is const
2015-06-12 21:53:59 +02:00
René Kijewski
64e0b8d8fb
ng_netif: more tests for ng_netif_addr_from_str
2015-06-12 21:53:59 +02:00
BytesGalore
9079e30da0
sys/net/fib: added function to request a set of destination addresses
2015-06-02 16:42:47 +02:00
Lotte Steenbrink
fbc7f9ddc4
add simple test for fib_devel_get_lifetime()
2015-05-26 15:36:02 -07:00
Joakim Gebart
a6eda18099
unittests/ubjson: Use MUTEX_INIT to initialize mutexes
2015-05-26 21:28:31 +02:00
Joakim Gebart
41ef11c215
core: Remove atomic_set_return()
2015-05-26 21:24:10 +02:00
Martine Lenders
55a48f48cc
Merge pull request #3060 from Lotterleben/ng_netif_tests_rm_warn
...
unittests: rm warning for tests-ipv6_netif
2015-05-25 23:26:18 +02:00
Martine Lenders
4310ab37ba
Merge pull request #3048 from authmillenon/ipv6_netif/fix/get-best-src-mc
...
ipv6_netif: fix ng_ipv6_netif_find_best_src_addr() for multicast
2015-05-25 23:19:20 +02:00
Martine Lenders
6014853530
unittests: add unittests for getting multicast addresses
2015-05-25 22:48:36 +02:00
Martine Lenders
350b040d72
ng_netif: adapt ng_netif_get for holey lists
2015-05-25 22:02:44 +02:00
Lotte Steenbrink
486f8dd8e9
Merge pull request #3044 from Lotterleben/ipv6_ifs_no_duplicates
...
ng_ipv6_netif: no more duplicates if empty entries are found before
2015-05-23 02:12:49 +02:00
Joakim Gebart
13832d8e62
everything: Remove filename from @file Doxygen command
2015-05-22 07:34:41 +02:00
Lucas Jenss
426170b064
Improve naming of thread stacksize/priority constants
...
As discussed in #2725 , this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:
* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
Lotte Steenbrink
0afcb620bd
unittests: rm warning for tests-ipv6_netif
2015-05-19 10:15:58 -07:00
Lotte Steenbrink
705019f3dc
unittests: add tests to ng_ipv6_netif_add concerning https://github.com/RIOT-OS/RIOT/issues/2965
2015-05-18 12:27:22 -07:00
Martine Lenders
5fe7b9a8d3
tests: adapt unittests
2015-05-16 15:03:17 +02:00
Lotte Steenbrink
09a67e050d
ipv6_nc: no more duplicates if empty entries are found before
2015-05-14 08:27:15 -07:00
Martine Lenders
343bec5593
ipv6_nc: Make interface optional
2015-05-14 04:21:41 +02:00
Martine Lenders
d1c2f7f72b
Merge pull request #2908 from authmillenon/ipv6_nc/enh/opt
...
ipv6_nc: prepare for NDP
2015-05-13 11:05:39 +02:00
Martine Lenders
fd48ccd5d4
unittests: add nrf51822 boards to BOARD_INSUFFICIENT_RAM
2015-05-12 20:06:09 +02:00
Martine Lenders
54c92c0424
unittests: adapt unittests for ipv6_nc API change
2015-05-12 20:06:09 +02:00
Martine Lenders
11e5fb3c9e
Merge pull request #2728 from authmillenon/ipv6_netif/enh/auto-link-local
...
ipv6_netif: auto-add corresponding link-local addresses
2015-05-12 19:08:14 +02:00
Joakim Gebart
e9c567107d
all: remove extra blank lines at the end
2015-05-09 09:10:08 +02:00
Joakim Gebart
25c2bdba84
atomic: Add unit tests for atomic counters
2015-05-07 18:52:13 +02:00
Martine Lenders
4741a01e36
Merge pull request #2721 from authmillenon/ipv6_nc/feat/iterators
...
ipv6_nc: add iterators
2015-04-30 08:59:44 +02:00
Martine Lenders
bbf57d1691
unittests: add tests for iterators
2015-04-29 21:22:28 +02:00
Martine Lenders
3e9db4371f
ipv6_addr: rename ng_ipv6_hdr_is_ipv6_hdr() to something less silly
2015-04-23 02:26:48 +02:00
Martine Lenders
9a842d0526
unittests: move netreg entries out of stack space
2015-04-21 11:35:09 +02:00
Peter Kietzmann
0d45479f02
Merge pull request #2819 from kushalsingh007/hash_string_missing
...
Tests : Add missing Makefile and Makefile.include for tests-hash_string
2015-04-21 10:25:02 +02:00
kushalsingh007
439b40c0b4
Tests : Add missing Makefile and Makefile.include for tests-hash_string
...
- Adds the missing files from #2793 .
2015-04-20 20:51:21 +05:30
Martine Lenders
8acc8c9ba3
unittests: fix and unify header guards
2015-04-20 14:16:09 +02:00
Martine Lenders
c660fdfdac
Merge pull request #2785 from authmillenon/ng_sixlowpan_ctx/feat/initial
...
ng_sixlowpan: initial import of a context buffer
2015-04-20 10:22:35 +02:00
Martine Lenders
79af989ef6
Merge pull request #2829 from authmillenon/ipv6_addr/fix/init-prefix
...
ipv6_addr: add missing mask to prefix initialization
2015-04-20 10:05:57 +02:00
kushalsingh007
2f9f67eb38
Tests: Fixing warnings in hash_string_module
...
- Fixing warnings caused due to directly using the string as argument in
the assert statement for hash_string function.
- Typecasted strings to solve the issue.
2015-04-19 19:00:58 +05:30
Martine Lenders
3a72e5346b
unittests: add tests for ng_sixlowpan_ctx
2015-04-18 15:42:42 +02:00
Martine Lenders
0670f7daea
unittests: make ipv6_addr more sensible to masking errors
2015-04-18 15:40:02 +02:00
Martine Lenders
f58eac2188
Merge pull request #2807 from authmillenon/ipv6_addr/fix/prefix-init
...
ipv6_addr: do not null remaining bits in prefix initialization
2015-04-16 18:06:21 +02:00
kushalsingh007
88349beb89
Tests: Removing extra newline from Makefile.include
...
- Removing the extra newline from tests-bloom, tests-crypto and
tests-timex.
2015-04-16 09:50:03 +05:30
Martine Lenders
ccd4b5a2bf
unittests: adapt unittests for ipv6_addr_init_prefix() change
2015-04-14 11:17:11 +02:00
kushalsingh007
b16decdec2
Tests: Creating unittests for the hash_string module
...
-Created unittests for hash_string module present in sys/hash_string
2015-04-13 09:59:06 +05:30
Martine Lenders
d47cd80945
Merge pull request #2779 from kaspar030/fix_ipv6_addr_string_max_length
...
sys: net: ipv6: fix max ipv6 address string length
2015-04-11 19:26:01 +02:00
23074c7870
unittests: tests-ipv6_addr: test for long embedded ipv4 addresses
2015-04-11 11:21:47 +02:00
Martine Lenders
c94094529d
Merge pull request #2731 from authmillenon/ipv6_hdr/feat/initial
...
ipv6_hdr: Initial import
2015-04-10 07:35:41 +02:00
Martine Lenders
687947d3db
Merge pull request #2730 from authmillenon/inet_csum/feat/initial
...
inet_csum: initial import of Internet Checksum module
2015-04-10 07:24:58 +02:00
Martine Lenders
2dd24edcf8
ipv6_netif: auto-add corresponding link-local addresses
2015-04-10 01:29:33 +02:00
Martine Lenders
7a3c373038
unittests: add tests for ipv6_hdr
2015-04-10 00:41:56 +02:00
Martine Lenders
5d1ae12e8d
unittests: add tests for inet_csum
2015-04-09 23:30:02 +02:00
Lotte Steenbrink
40acfa732b
Merge pull request #2705 from authmillenon/netif/feat/addr-str
...
netif: add functions to parse and output hardware addresses
2015-04-02 01:04:33 +02:00
Martine Lenders
882bcbe92e
netif: add functions to parse and output hardware addresses
2015-04-01 16:24:19 +02:00
BytesGalore
30c76adc43
net: added a core implementation of a FIB
2015-04-01 10:24:35 +02:00
Martine Lenders
7273d5c9ad
Merge pull request #2723 from authmillenon/ipv6_netif/feat/prefix-list
...
ipv6_netif: add prefix list to interface
2015-03-30 00:31:37 +02:00
Martine Lenders
d90842151b
unittests: adapt for prefix list in ipv6_netif
2015-03-27 20:39:58 +01:00
altairpearl
20123210d7
tests: Updated include guards to remove leading underscores
2015-03-25 20:45:17 +05:30
Hauke Petersen
5f77bbe1c8
Merge pull request #2563 from authmillenon/ng_pktbuf/fix/semantics
...
ng_pktbuf: change semantics for received packets
2015-03-24 16:49:49 +01:00
Martine Lenders
9ada601212
unittests: fix unittests for new pktbuf behavior
2015-03-23 23:17:17 +01:00
Martine Lenders
21204dc3eb
ng_pktbuf: change semantics for received packets
2015-03-23 15:08:46 +01:00
Martine Lenders
df8cadf0b3
Merge pull request #2681 from Darredevil/patch-9
...
unittests/tests-pkt: fixed header file include guard
2015-03-22 16:23:36 +01:00
Martine Lenders
cd34fb92ad
Merge pull request #2680 from Darredevil/patch-8
...
unittests/tests-netreg: fixed header file include guard
2015-03-22 16:23:18 +01:00
Martine Lenders
92edaefc77
Merge pull request #2679 from Darredevil/patch-7
...
unittests/tests-netif: fixed header file include guard
2015-03-22 16:23:01 +01:00
Martine Lenders
5551a1beee
Merge pull request #2678 from Darredevil/patch-6
...
unittests/tests-netdev_dummy: fixed header file include guard
2015-03-22 16:22:36 +01:00
Martine Lenders
1df1ecc6cb
Merge pull request #2677 from Darredevil/patch-5
...
unittests/tests-crypto: fixed header file include guard
2015-03-22 16:22:24 +01:00
Martine Lenders
a6c72e9980
Merge pull request #2676 from Darredevil/patch-3
...
unittests/tests-base64: fixed header file include guard
2015-03-22 16:22:12 +01:00
Martine Lenders
6d253ee9a0
Merge pull request #2684 from Darredevil/patch-12
...
unittests/tests-timex: fixed header file include guard
2015-03-22 16:21:48 +01:00
Martine Lenders
a9e6c0fb73
Merge pull request #2683 from Darredevil/patch-11
...
unittests/tests-pktqueue: fixed header file include guard
2015-03-22 16:21:39 +01:00
Martine Lenders
f8737c05d0
Merge pull request #2682 from Darredevil/patch-10
...
unittests/tests-pktbuf: fixed header file include guard
2015-03-22 16:21:21 +01:00
Darredevil
a8051f51bb
unittests/tests-timex: fixed header file include guard
...
fixes #2623
2015-03-22 16:42:49 +02:00
Darredevil
4ce7497cbb
unittests/tests-pktqueue: fixed header file include guard
...
fixes #2623
2015-03-22 16:41:42 +02:00
Darredevil
7c97136699
unittests/tests-pktbuf: fixed header file include guard
...
fixes #2623
2015-03-22 16:40:33 +02:00
Darredevil
febf0c1b08
unittests/tests-pkt: fixed header file include guard
...
fixes #2623
2015-03-22 16:39:10 +02:00
Darredevil
130a861fbc
unittests/tests-netreg: fixed header file include guard
...
fixes #2623
2015-03-22 16:37:04 +02:00
Darredevil
138f25811c
unittests/tests-netif: fixed header file include guard
...
fixes #2623
2015-03-22 16:33:36 +02:00
Darredevil
b976f55022
unittests/tests-netdev_dummy: fixed header file include guard
...
fixes #2623
2015-03-22 16:31:46 +02:00
Darredevil
ce46de3799
unittests/tests-crypto: fixed header file include guard
...
fixes #2623
2015-03-22 16:29:20 +02:00
Darredevil
734d251040
unittests/tests-base64: fixed header file include guard
...
fixes #2623
2015-03-22 16:25:42 +02:00
Darredevil
49c2f5c597
unittests/netdev_dummy: fixed header file include guard
...
fixed #2623
2015-03-22 16:23:06 +02:00
Philipp Rosenkranz
d5848d687c
Merge pull request #2663 from phiros/unittests_constants_fix
...
unittests: move test data to common header
2015-03-22 14:48:07 +01:00
Philipp Rosenkranz
d53c7759e9
unittests: move test data to common header
2015-03-22 13:58:36 +01:00
Darredevil
9ca393f63b
Repair header file include guards #2623
2015-03-22 04:04:36 +02:00
Martine Lenders
6a31fa80a7
Merge pull request #2568 from authmillenon/ng_netreg/feat/allow_nettype_undef
...
ng_netreg: Allow registration of NG_NETTYPE_UNDEF
2015-03-20 17:06:37 +01:00
Martine Lenders
fe5f8cc632
unittests: adapt unittests to netreg change
2015-03-20 11:00:32 +01:00
Martine Lenders
09867e3f39
unittests: add spark-core to BOARD_INSUFFICIENT_RAM
2015-03-19 15:13:19 +01:00
Martine Lenders
5d3ad83cab
unittests: add tests for ipv6_netif
2015-03-19 15:13:19 +01:00
Martine Lenders
c3e9a931ff
unittests: check return value of ng_netif_get()
2015-03-16 16:25:25 +01:00
Martine Lenders
2909c87329
unittests: add test for correct returned netif array
2015-03-16 16:25:25 +01:00
Martine Lenders
e740c6fb09
unittests: add unittests for neighbor cache
2015-03-13 20:42:54 +01:00
Oleg Hahm
0144bb589b
Merge pull request #2546 from authmillenon/ng_ipv6_addr/api/add_string_functions
...
[RFC] ng_ipv6_addr: add (optional) string conversion functions
2015-03-13 13:41:37 +01:00
Martine Lenders
b63d610451
unittests: add IPv6 string conversion function tests
2015-03-12 21:06:43 +01:00
Hauke Petersen
4bebf3b01a
net/nomac: removed legacy implementation
2015-03-12 13:55:24 +01:00
Martine Lenders
904b363b77
unittests: remove unnecessary MODULE macro definition
2015-03-04 18:07:03 +01:00
Martine Lenders
ec5f686cd0
netreg: move to pointer-based API
...
Moving to a pointer-based API simplifies a lot, since there is no need
for an internal pool of entries anymore. Therefore, a lot of
organizational overhead and some restrictions (e.g. an upper limit on
entries) are dropped.
The entries can be stored in the stack of the respective thread.
2015-03-04 13:17:00 +01:00
Martine Lenders
dad4e8d5df
Merge pull request #2433 from authmillenon/ng_ipv6_addr/feat/initial
...
ng_ipv6_addr: initial import
2015-02-20 19:27:17 +01:00
Oleg Hahm
10b96f06a3
doc: import unittest documentation from wiki
2015-02-20 17:52:26 +01:00
Martine Lenders
ff36abb2cf
ng_ipv6_addr: initial import
...
The motivation behind this module is to allow for address handling
functions where they, but not the full IPv6 functionality might be
needed. This new version of the IPv6 address data type utilizes the
byteorder.h header to enforce network byte-order on its members.
2015-02-20 17:40:26 +01:00
Ludwig Ortmann
4f29a7757e
Merge pull request #2285 from authmillenon/pktbuf/api/use-pkt
...
pktbuf: port to use pkt_t instead of void*
2015-02-19 14:46:15 +01:00
Martine Lenders
41f60aca4c
pktbuf: port to use ng_ version
2015-02-19 13:51:27 +01:00
Ludwig Ortmann
cec87139a5
core, cpu, drivers, tests: remove trailing space
2015-02-18 13:52:48 +01:00
Martine Lenders
cd711ea934
unittests: add ng_netreg tests
2015-02-12 16:13:38 +01:00
Martine Lenders
b208371163
Merge pull request #2417 from authmillenon/netif/feat/initial
...
netif: Initial import of ng_* version
2015-02-11 12:41:54 +01:00
Martine Lenders
cfc64ff4de
Merge pull request #2342 from authmillenon/pkt/api/simplify
...
pkt: simplify API
2015-02-11 12:41:43 +01:00
Martine Lenders
cb74094edd
pktqueue: adapt to change in pkt.h
2015-02-11 11:01:33 +01:00
Martine Lenders
7317097db2
pkt: simplify API
2015-02-11 11:01:33 +01:00
Martine Lenders
894cd964f9
netif: Initial import of ng_* version
2015-02-11 10:52:51 +01:00
Ludwig Ortmann
373f91c6ff
tests/unittests: remove useless doxygen stub
2015-02-10 15:43:35 +01:00
Ludwig Ortmann
dd2da2fb71
Merge pull request #2405 from cgundogan/restrict_with_leading_underscores
...
Use `__restrict` instead of `restrict`
2015-02-08 22:07:23 +01:00
Martine Lenders
498313a23f
doc: Add mail address where it is missing
2015-02-08 19:41:14 +01:00
Cenk Gündoğan
50112af413
tests: restrict => __restrict
2015-02-08 19:22:29 +01:00
Martine Lenders
0eb2d78dda
doc: use my real name
2015-02-08 18:52:16 +01:00
Cenk Gündoğan
5c77530da4
sys/bloom: changed doc from bytes -> bits
2015-01-29 15:06:01 +01:00
Thomas Eichinger
b0d1ca2d31
tests: blacklist nucleo-f334 in tests not fitting into RAM
2015-01-28 11:20:44 +01:00
Martine Lenders
c9e2f5bdce
pktqueue: adapt to pkt_t
2015-01-14 14:53:37 +01:00
Oleg Hahm
2d874af904
Merge pull request #2158 from authmillenon/pkt/feat/initial-import
...
pkt: Initial import
2015-01-14 08:20:46 +01:00
Martine Lenders
62544e6923
tests, pkt: add unittests for pkt
2015-01-14 07:04:57 +01:00
Martine Lenders
0221c27d4b
unittests: provide unittests for basic_mac
2015-01-14 06:59:59 +01:00
Martin Landsmann
a0898dbb9f
sys: add base64 encoding/decoding module
...
- suppressed cppcheck warning for `unassignedVariable` for
the encode/decode arrays in stream encode/decode tests
as these arrays are assigned by the according `base64_[en|de]code()` function.
2015-01-12 11:26:41 +01:00
René Kijewski
f684aa4b2d
tests: make embUnit a normal sys module
...
There is nothing quite special about embUnit.
This PR makes it a normal sys module, so that you can use it in any
application / test.
2014-12-21 20:04:57 +01:00
Martine Lenders
c991f3dcec
tests: remove do-while(0) blocks for netdev tests or comment on them
2014-12-19 08:19:56 +01:00
Martine Lenders
17ef92eade
Merge pull request #2181 from phiros/tests_sha256_transform_into_unittest
...
tests: transformed tests/sha256 into a unittest
2014-12-12 16:29:16 +01:00
Philipp Rosenkranz
f5d941ac22
tests: transformed tests/bloom into an unittest
2014-12-11 22:56:40 +01:00
Philipp Rosenkranz
1024e0b8be
tests: transformed tests/sha256 into an unittest
2014-12-11 21:57:01 +01:00
Philipp Rosenkranz
536c910980
Merge pull request #2157 from LudwigOrtmann/unittests-lib
...
tests/unittests: merge lib-ringbuffer into core
2014-12-08 15:36:41 +01:00
Ludwig Ortmann
0027f90be4
Merge pull request #2118 from OlegHahm/simplify_cpu_folder_structure
...
cpu: simplify folder structure
2014-12-08 13:10:13 +01:00
Ludwig Ortmann
4feec9243f
tests/unittests: merge lib-ringbuffer into core
...
Fixup for https://github.com/RIOT-OS/RIOT/pull/2017
2014-12-08 10:15:48 +01:00
René Kijewski
6b559faf88
tests: add UBJSON unittests
2014-12-03 20:42:51 +01:00
Ludwig Ortmann
e6c808d5fa
Merge pull request #1970 from Kijewski/optimize-cib
...
core: inline `cib.c`
2014-12-03 17:12:48 +01:00
Oleg Hahm
0c967c4d3f
cpu: msp430: renamed msp430x16x to msp430fxyz
2014-12-02 17:46:57 +01:00
Oleg Hahm
3cf43db63e
unittests: test full 16 bit range for bitarithm
...
Also uses a better pseudo random number.
2014-11-26 16:52:51 +01:00
Martine Lenders
21adda9370
[SQUASH ME] pktqueue: fix unittests
2014-11-25 21:52:28 +01:00
Martine Lenders
8ee3edcb13
netdev: Add protocol to header list nodes
2014-11-21 12:37:48 +01:00
9ce0b676b4
core: sys: move ringbuffer to core
2014-11-19 14:18:39 +01:00
René Kijewski
f23771c6fe
tests: extend cib unittest
2014-11-11 17:39:40 +01:00
René Kijewski
08810d605b
embunit: fix macros
2014-11-10 20:50:50 +01:00
Martine Lenders
1138360a14
unittests: make test macros save for strict aliasing
2014-11-08 19:13:23 +01:00
Martine Lenders
f6795b461c
unittests: Add missing semicolons to macro calls
2014-11-08 13:45:11 +01:00
Martine Lenders
0de78831f9
unittests: Provide unittests for net_dev_dummy
...
* tests if net_dev_dummy is correct and if driver part of net_dev is
correct
2014-10-30 20:37:21 +01:00
Martine Lenders
cf3fdaabb6
unittests: add test network device
...
The reasoning behind this commit is twofold:
1. test the "lower" part (the device part) of netdev
2. provide a well defined testing infrastructure for modules that utilise
netdev
The actual tests that represent 1. are provided in the following commit
2014-10-30 20:37:20 +01:00
BytesGalore
6dc157208a
c++: tests: add extern "C"
in header files, i.e. only present in ./unittests
2014-10-17 13:58:10 +02:00
Martine Lenders
a569f2b92c
net: Initial import of a global packet buffer
2014-10-16 11:52:30 +02:00
Martine Lenders
36f8e3c5c3
Merge pull request #1640 from authmillenon/packetqueue
...
net: Initial import of a packet wrapper for priority_queue
2014-10-10 23:12:28 +02:00
Martine Lenders
e7e62cffdb
net: Initial import of a packet wrapper for priority_queue
2014-10-10 23:11:50 +02:00
Martine Lenders
42f96b0d60
Merge pull request #1699 from Kijewski/issue-1586
...
core: Provide functions for different byte orders
2014-10-10 07:38:57 +02:00
Martine Lenders
2fc0ae28cf
Merge pull request #1645 from authmillenon/unittests-empty-dirs
...
unittests: make: Fix unittests for branch changes
2014-10-01 12:01:41 +02:00
René Kijewski
bc0f5ebf4c
tests: fix bad copy+paste in tests-core.h
2014-09-29 21:07:02 +02:00
René Kijewski
0c3bc4a58d
tests: Add unittests for byteorder.h
2014-09-29 21:07:02 +02:00
Hinnerk van Bruinehsen
bef32717bf
test:cbor: supress warnings about nan/infty
2014-09-19 23:59:49 +02:00
René Kijewski
0cc699c0ce
lint: reduce scope
...
Fix some lint warnings of kind
```
style (variableScope): The scope of the variable '…' can be reduced
```
2014-09-12 11:50:12 +02:00
Martine Lenders
4c6e17b39b
unittests: make: Fix unittests for branch changes
...
Changing between branches in git typically leaves directories empty and
does not remove them. If you have different unittests in different
branches this leads to an error in building them, since the current
configuration expects a Makefile in all `tests-*` directory. This change
configures Make to search for a Makefile in `tests-*` rather than just
assuming that there is one.
2014-09-08 12:36:15 +02:00
Ludwig Ortmann
457be31b6f
Merge pull request #1616 from krf/fix-warnings
...
Fix comment
2014-08-27 19:38:27 +02:00
Martine Lenders
67fcd0d71b
unittests: Simplify module-wise rebuild
2014-08-27 14:04:33 +02:00
Kevin Funk
554e431746
Fix comments
2014-08-27 11:36:36 +02:00
Ludwig Ortmann
3d611679ee
Merge pull request #1599 from LudwigOrtmann/issue-1597
...
sys/cbor,tests: fix cbor daylight saving time
2014-08-27 11:11:49 +02:00
Martine Lenders
5bad5a0fda
unittests: Fix coding conventions
2014-08-27 10:48:10 +02:00
Martine Lenders
2709d95e1a
unittests: Fix -Wunused-parameter warnings
2014-08-27 10:48:09 +02:00
Martine Lenders
4960c57153
unittests: Fix -Waddress warnings
2014-08-27 10:48:05 +02:00
Ludwig Ortmann
40a81e4f4c
tests: fix cbor unittest
...
Some member of `struct tm val` were not set, resulting in undefined
behavior.
2014-08-27 10:25:23 +02:00
Ludwig Ortmann
ea26ebbaa9
tests: fix lifo unittest
...
The API was violated resulting in an array overrun.
2014-08-26 18:06:31 +02:00
Ludwig Ortmann
b7992922ce
fix license headers in non-.c files
2014-08-23 16:16:26 +02:00
René Kijewski
eaed2f1b89
Merge pull request #1594 from authmillenon/unittests-no-auto-init
...
unittests: do not use auto_init
2014-08-21 23:51:48 +02:00
René Kijewski
27e393621a
core: clist is a cyclic list
2014-08-21 21:10:03 +02:00
Martine Lenders
b1035acc98
unittests: do not use auto_init
2014-08-21 20:45:36 +02:00
Oleg Hahm
1de5c2b4a0
fixed remaining variables to kernel_pid_t
2014-08-07 17:29:53 +02:00
Kevin Funk
e8141ca5d8
cbor: CBOR implementation for RIOT-OS
...
This is a malloc-free implementation of the Concise Binary Object
Representation (CBOR) data format for the RIOT-OS.
This implementation mostly stand-alone, and it should be pretty easy to
port to other platforms. We're only using the C STL and some custom
network-related functionaliy which could be easily replaced by depending
on arpa/inet.h.
The CBOR API is straight-forward to use and provides encoding/decoding
functionality for all major C types, such as:
- int
- uint64_t
- int64_t
- float
- double
- char*
- struct tm
- time_t
It is possible to conditionally compile this module via CFLAGS:
- CBOR_NO_SEMANTIC_TAGGING: All semantic-tagging features removed
- CBOR_NO_CTIME: All ctime related features removed
- CBOR_NO_FLOAT: All floating-point related features removed
- CBOR_NO_PRINT: All features depending on printf removed
2014-08-05 19:49:51 +02:00
Ludwig Ortmann
1efdf99dfe
core/priority_queue: add dynamic initializers
...
- priority_queue_init
- priority_queue_node_init
2014-08-05 17:57:45 +02:00
Ludwig Ortmann
c2b2e4554b
core/queue: queue -> priority_queue
...
Rename queue to priority queue, because that's what it is.
2014-08-05 17:57:45 +02:00
Ludwig Ortmann
d55da67fb6
Merge pull request #1329 from LudwigOrtmann/riot_license
...
RIOT default license header change
2014-07-31 23:12:47 +02:00
Ludwig Ortmann
3ca4f18479
doc: use lgplv2.1-short license header instead of lgpl-short-riot
2014-07-31 22:57:20 +02:00
Cenk Gündoğan
b8009f1be5
converting tabs to spaces in tests ( #1439 )
...
This PR converts tabs to white spaces.
The statement I used for the conversion:
```find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;```
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
2014-07-31 20:53:32 +02:00
René Kijewski
4032a22719
queue: add queue_t root type
2014-07-30 21:10:22 +02:00
Ludwig Ortmann
b6846e31fc
doc: fix most occurences of FU as an author
...
.. but only if there are other authors as well
2014-07-29 17:23:11 +02:00
René Kijewski
faf9bb5073
tests: add ringbuffer unittest
2014-07-28 20:56:12 +02:00
Ludwig Ortmann
bea563d1da
Fix a few cppcheck findings
2014-07-25 08:17:06 +02:00
René Kijewski
ac9c80f417
make: don't use export on example makefiles
2014-07-10 15:23:31 +02:00
Ludwig Ortmann
1a8967cb45
tests&examples: apply coding conventions to sizeof
2014-07-09 07:41:54 +02:00
René Kijewski
b17028bb46
tests/Travis: run unittests on x86, too
2014-06-24 21:07:20 +02:00
René Kijewski
d19fc447ed
make: make DIRS usable for applications
2014-06-23 15:50:10 +02:00
René Kijewski
14601c0c38
Merge pull request #1299 from phiros/timex_bugfix_and_improvement
...
Timex bugfix and improvement
2014-06-19 13:18:15 +02:00
Philipp Rosenkranz
0bf6ce22f3
added conv function from uint64 to timex_t and one minor bug fix
2014-06-19 12:40:24 +02:00
Martine Lenders
6d1365c5d8
Merge pull request #1324 from Kijewski/make-automatic-module-name
...
make: much less clutter for "standard layout" modules
2014-06-18 23:52:49 +02:00
René Kijewski
840c0f0a57
make: detect their module name automatically
...
For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.
This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
2014-06-17 15:49:32 +02:00
René Kijewski
f3bbec633b
unittests: core: add test_bitarithm_[ml]sb_all
2014-06-05 20:19:10 +02:00
Martin Lenders
f201ceed99
unittests: Force execution of $(UNITTEST_LIBS) build target
2014-05-27 10:41:28 +02:00
Martin Lenders
2362623490
Fix trailing whitespaces
...
Fixes #1138
2014-05-26 14:54:23 +02:00
Martine Lenders
62139bd0d2
Merge pull request #1207 from Kijewski/unittests-makefile.include
...
unittests: support Makefile.include in test suites
2014-05-26 14:51:12 +02:00
Thomas Eichinger
1e983c9670
s/PROJECT/APPLICATION/g
...
fixes #548
2014-05-26 13:21:09 +02:00
René Kijewski
4df2f4b4da
unittests: support Makefile.include in test suites
...
This change will pull in the `Makefile.include` for every test suite
that is compiled in.
Fixes #1205 .
2014-05-18 16:20:35 +02:00
Oleg Hahm
ef5ec344fd
core: prefix API functions correctly
...
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
2014-05-18 08:53:20 +02:00
René Kijewski
beb91163ab
unittests: Move tests-core into subdirectoy
2014-05-15 11:07:11 +02:00
Martin Lenders
1b042e75c4
Implement core unittests
2014-05-15 11:07:11 +02:00
René Kijewski
0246329050
unittests: separate test suites from main.c
...
This change removes the need to patch the main.c if you add or remove a
test suite. A test suite in `tests/unittests/tests-XXX` needs to export
the function `void tests_XXX(void)`, which gets called by `main()`.
The `tests-XXX/Makefile` looks like your average module:
```
MODULE = tests-XXX
include $(RIOTBASE)/Makefile.base
```
2014-05-14 12:57:52 +02:00
Martine Lenders
4359429168
Merge pull request #1164 from Kijewski/unittests-use-subfolders
...
unittests: use subfolders for different tests
2014-05-14 12:54:21 +02:00
René Kijewski
297bc52062
unittests: use subfolders for different tests
...
Unittests for e.g. different libraries can be put into
`tests/unittests/tests-XXX`, where `XXX` is your test suite.
If `unittests` is made with `make all` (or any explicit argument), then
all test suites get built. If you use `make tests-XXX tests-YYY …` then
only the test suites `XXX` and `YYY` get built.
2014-05-14 12:48:56 +02:00
René Kijewski
5e6bf869b0
unittests: exit(1) or error
2014-05-14 10:31:22 +02:00
Kevin Funk
395af2aa74
Add missing include
2014-05-13 14:43:48 +02:00
Martin Lenders
9ce8ab2275
Create unittest application
2014-04-10 15:33:10 +02:00
Martin Lenders
0c6b5ba671
Adapt embunit for RIOT
2014-04-10 15:33:09 +02:00
Martin Lenders
ca75e01105
Import embunit sources
2014-04-10 15:30:16 +02:00