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

49 Commits

Author SHA1 Message Date
face869e3e tests/unittests/core: add byteorder_bebuftohs(), byteorder_htobebufs() tests 2018-08-23 10:34:59 +02:00
Gaëtan Harter
64bc06f2b6
tests/unittests: add empty list clist_foreach case
Add clist_foreach empty list test case which should:

* not call `func`
* return `NULL`
2018-05-15 16:49:59 +02:00
a0077f3c4b tests/unittests: test clist_foreach() return value 2018-05-12 00:13:41 +02:00
o0c
d7853ac87f unittests: fix loop in tests-core-atomic 2018-02-26 14:52:05 +01:00
Martine Lenders
8d71f250d1
tests: add #8117 test case for cib.h unittests 2017-11-22 18:23:34 +01:00
Martine Lenders
56ec27cf6f
tests: adapt cib.h unittests for variable cib size 2017-11-22 18:23:07 +01:00
615b1e60bc core/clist: add argument to clist_foreach 2017-11-06 12:49:22 +01:00
258f7b70f9 tests/unittests: add clist_sort() tests 2017-10-03 00:36:14 +02:00
Simon Brummer
68581a8fbe core: bugfix: ringbuffer_remove 2017-03-01 22:01:26 +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
Martine Lenders
b0a849c01c tests: provide unittests for core/list 2017-01-24 14:15:48 +01:00
Oleg Hahm
7ee7801c10 *: remove trailing underscores from header guards 2017-01-19 18:30:53 +01: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
1bac3f3a2f tests: unittests: adapt tests-core-clist to singly linked clist 2016-03-30 00:27:49 +02:00
9082273746 core: header cleanup 2016-02-28 22:46:28 +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
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
41ef11c215 core: Remove atomic_set_return() 2015-05-26 21:24:10 +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
Joakim Gebart
25c2bdba84 atomic: Add unit tests for atomic counters 2015-05-07 18:52:13 +02:00
altairpearl
20123210d7 tests: Updated include guards to remove leading underscores 2015-03-25 20:45:17 +05:30
Martine Lenders
498313a23f doc: Add mail address where it is missing 2015-02-08 19:41:14 +01:00
Martine Lenders
0eb2d78dda doc: use my real name 2015-02-08 18:52:16 +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
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
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
3cf43db63e unittests: test full 16 bit range for bitarithm
Also uses a better pseudo random number.
2014-11-26 16:52:51 +01:00
René Kijewski
f23771c6fe tests: extend cib unittest 2014-11-11 17:39:40 +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
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
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
27e393621a core: clist is a cyclic list 2014-08-21 21:10:03 +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
3ca4f18479 doc: use lgplv2.1-short license header instead of lgpl-short-riot 2014-07-31 22:57:20 +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
Ludwig Ortmann
1a8967cb45 tests&examples: apply coding conventions to sizeof 2014-07-09 07:41:54 +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
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