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

181 Commits

Author SHA1 Message Date
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