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

18 Commits

Author SHA1 Message Date
Benjamin Valentin
b274e8a117 tests/unittests: report results to the environment on native 2024-03-04 14:43:31 +01:00
Karl Fessel
c48f53f8df test/unittest: initilize ztimer64 is required, use xtimer test-fib
test-fib has direct use of xtimer -> it needs to use the module
2022-07-25 13:54:59 +02:00
Karl Fessel
1f80bfc898 unittest/main: do not intialize xtimer if ztimer_xtimer_compat 2022-07-21 14:48:43 +02:00
Karl Fessel
d7d1f7acad test/unittest: init ztimer, work around ztimer_t uint64_t 2021-12-06 13:31:18 +01:00
Francisco Molina
416c048737 tests: add test_utils_interactive_sync when possible
- Define test_utils_interactive_sync as DEFAULT_MODULE in Makefile.tests_common
- For tests disabling autoinit, add test_utils_interactive_sync to main
- Add DISABLE_MODULE += test_utils_interactive_sync for tests requiring
  sudo,  `tests/shell`, `tests/minimal` and `tests/stdin`
- Add shell_commands to tests/periph_wdt and tests/struct_tm_utility to
  pull `r` and `s` commands
- Remove includes and usage in `tests/main.c` for tests that where
  already using test_utils_interactive_sync
2019-11-27 15:07:42 +01:00
0194091673 remove obsolete lpm code 2017-01-12 11:24:15 +01:00
Martine Lenders
55044512fb unittests: do not powerdown node at the end 2016-01-23 15:17:36 +01:00
Martine Lenders
42d387a42f unittests: initialize xtimer if present 2015-10-29 09:39:30 +01:00
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
3ca4f18479 doc: use lgplv2.1-short license header instead of lgpl-short-riot 2014-07-31 22:57:20 +02:00
René Kijewski
b17028bb46 tests/Travis: run unittests on x86, too 2014-06-24 21:07:20 +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
Martin Lenders
9ce8ab2275 Create unittest application 2014-04-10 15:33:10 +02:00