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

125 Commits

Author SHA1 Message Date
Kévin Roussel
2a3033b3ca boards/z1: initial import 2014-05-16 11:02:06 +02:00
Hauke Petersen
cbd4f91656 examples/tests: blacklisted udoo board
blacklisted for:
- ccn-lite-client
- ccn-lite-relay
- rpl_udp
- test_net_if
- test_pnet
2014-05-15 11:53:14 +02:00
René Kijewski
8950ab49a5 make: Remove Makefile.unsupported
This mechanism was replaced by #535. It was only used in one project.
2014-05-14 22:58:25 +02:00
Martine Lenders
991a5dccf1 Merge pull request #1168 from Kijewski/unittests-use-subfolders-and-dark-magic
unittests: separate test suites from main.c
2014-05-14 17:56:53 +02:00
René Kijewski
ccc934856f Merge pull request #1124 from Kijewski/consolidate-crypto
sys:crypto: put ciphers into one module
2014-05-14 13:12:21 +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
Ludwig Ortmann
2314915ff2 license: fix license header grammar
insert missing "is"
2014-05-14 09:49:09 +02:00
Hauke Petersen
595ede41ea examples/tests: blacklisted arduino-due 2014-05-13 21:18:27 +02:00
Kevin Funk
395af2aa74 Add missing include 2014-05-13 14:43:48 +02:00
Ludwig Ortmann
df47bd38f6 tests/test_hwtimer_spin +wait: add success
Run 10k times, print success and return.
Remove printfs in loops.
2014-05-13 10:35:53 +02:00
René Kijewski
96fba8a19b sys:crypto: put ciphers into one module 2014-05-12 21:57:44 +02:00
Martin Landsmann
61b0331980 added pthread_cond.h to pthread.h
adjusted `test_pthread_condition_variable\main.c` includes reflecting the above change
2014-05-07 07:54:54 +02:00
Oleg Hahm
cace4b42f6 Merge pull request #1092 from BytesGalore/fix_print_format_warnings_test_thread_msg
test:test_thread_msg fixed Wformat warnings
2014-05-05 11:39:18 +02:00
--global
1bbcd268cd fix re-added removed printf formatter 2014-05-02 16:28:47 +02:00
Christian Mehlis
668800eea7 Merge pull request #1091 from BytesGalore/fix_print_format_warning
test:test_pthread_barrier fixed Wformat warning
2014-05-02 14:56:18 +02:00
Martin
2ed6e5cc42 fixed Wformat warnings 2014-05-02 14:30:49 +02:00
Christian Mehlis
c3c903f1df Merge pull request #1090 from BytesGalore/fix_use_uninitialized_variable_warning
test:test_irq initialized `j` with 0
2014-05-02 14:28:45 +02:00
Martin
8b33040885 fixed Wformat warning 2014-05-02 14:16:20 +02:00
Martin
5e2b419e9e initialized j with 0 2014-05-02 13:58:01 +02:00
Martin
48f749625d fixed warnings on Wformat 2014-05-02 13:47:07 +02:00
Martin
619039e0e2 add pthread condition variable implementation 2014-04-29 18:39:03 +02:00
René Kijewski
300c01eaec Merge pull request #1062 from mehlis/test-thread-blacklist
test: thread: blacklist boards
2014-04-28 14:17:50 +02:00
Christian Mehlis
52c2900bdd test: thread: blacklist boards 2014-04-28 14:12:47 +02:00
Christian Mehlis
97cf6f5b92 tests: added missing chronos to blacklist 2014-04-28 14:05:30 +02:00
René Kijewski
bda23cb246 Merge pull request #1059 from mehlis/test-bloom-blacklist
test: bloom: backlist platforms
2014-04-26 15:57:21 +02:00
Christian Mehlis
459599eef5 Merge pull request #1052 from Kijewski/test_nativenet-only-native
test_nativenet is only useful for native ...
2014-04-26 15:44:02 +02:00
Christian Mehlis
46c8836b0e test: bloom: backlist platforms 2014-04-26 15:35:32 +02:00
Christian Mehlis
ccfbc39dc3 test: posix: blacklist boards 2014-04-26 15:23:58 +02:00
René Kijewski
1ac03ff225 test_nativenet is only useful for native ... 2014-04-25 08:12:54 +02:00
Ludwig Ortmann
c52105f696 tests: add test_hwtimer_wait
It contains the old test functionality of test_hwtimer_spin.
2014-04-23 15:43:14 +02:00
Ludwig Ortmann
19d9d67f4e tests: fix test_hwtimer_spin
Actually test hwtimer_spin, not hwtimer_arch*

`hwtimer_wait` calls `hwtimer_spin` only for delays `<= 6`, that's why a
pure test_hwtimer_spin test should not pass values `>6`.
Also decrement delay in steps of 1.
2014-04-23 15:43:14 +02:00
Ludwig Ortmann
066d743c35 Merge pull request #943 from Kijewski/issue-943
Clean up test_irq
2014-04-19 12:26:53 +02:00
René Kijewski
9a5a8a2452 Add pthread_rwlock test 2014-04-18 16:26:12 +02:00
Martine Lenders
0e4d2909a6 Merge pull request #830 from authmillenon/fix_test_pnet
tests: Fix test_pnet
2014-04-17 01:40:27 +02:00
Martin Lenders
4e1da23817 Fix test_pnet
fixes #829
2014-04-16 17:44:46 +02:00
Oleg Hahm
3903b8add2 Merge pull request #381 from authmillenon/unittests
Unittests via embUnit
2014-04-11 10:17:02 +02:00
Oleg Hahm
f382ce8c65 tests: added README.md for test_float 2014-04-10 21:35:25 +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
Oleg Hahm
8a86f493b4 Merge pull request #821 from Kijewski/pthrad_cleanup
posix: Add pthread_cleanup handlers
2014-04-09 00:19:17 +02:00
René Kijewski
1e75986345 Clean up test_irq (fix #943) 2014-04-06 19:29:32 +02:00
René Kijewski
503e95af0b Add pthread_barrier test 2014-04-06 19:25:15 +02:00
René Kijewski
74804ab979 pthread_cleanup: fixup for #798 2014-04-04 18:03:29 +02:00
René Kijewski
b54962689a posix: Add pthread_cleanup handlers
With `pthread_cleanup_(push|pop)` you can define a function that should
be ran if the thread is exited while it is inside this scope. A thread
can be ended here through an explicit call to `pthread_exit()`, or if
cancellation was requested and a cancellation point was hit.

`pthread_cleanup_*` is mostly only useful together with cancellation
points, and cancellation points are only useful with a cleanup
functionality. Cancellation points are at least partially implemented by
means of `pthread_testcancel()`.

C.f. ["Cancellation Points"][1].

  [1]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_05_02
2014-04-04 18:03:29 +02:00
René Kijewski
2e5a2cea0a Fixup for #798 2014-04-02 14:42:11 +02:00
René Kijewski
34aec1928a Add DISABLE_MODULE += auto_init to tests 2014-04-02 14:41:17 +02:00