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

167 Commits

Author SHA1 Message Date
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
Martine Lenders
a569f2b92c net: Initial import of a global packet buffer 2014-10-16 11:52:30 +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
Martine Lenders
67fcd0d71b unittests: Simplify module-wise rebuild 2014-08-27 14:04:33 +02:00
Martine Lenders
b1035acc98 unittests: do not use auto_init 2014-08-21 20:45:36 +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
René Kijewski
ac9c80f417 make: don't use export on example makefiles 2014-07-10 15:23:31 +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
Martin Lenders
f201ceed99 unittests: Force execution of $(UNITTEST_LIBS) build target 2014-05-27 10:41:28 +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
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
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
Martin Lenders
9ce8ab2275 Create unittest application 2014-04-10 15:33:10 +02:00