[riot-commits] [RIOT-OS/RIOT] 024632: unittests: separate test suites from main.c

Martine Lenders authmillenon at gmail.com
Wed May 14 17:56:53 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 0246329050bb5f8649bded74b581437d20f6b2b3
      https://github.com/RIOT-OS/RIOT/commit/0246329050bb5f8649bded74b581437d20f6b2b3
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-05-14 (Wed, 14 May 2014)

  Changed paths:
    M tests/unittests/Makefile
    M tests/unittests/main.c
    A tests/unittests/map.h

  Log Message:
  -----------
  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
```


  Commit: 991a5dccf1d71c6fe5f6ca87019129b8cc4abbe4
      https://github.com/RIOT-OS/RIOT/commit/991a5dccf1d71c6fe5f6ca87019129b8cc4abbe4
  Author: Martine Lenders <authmillenon at gmail.com>
  Date:   2014-05-14 (Wed, 14 May 2014)

  Changed paths:
    M tests/unittests/Makefile
    M tests/unittests/main.c
    A tests/unittests/map.h

  Log Message:
  -----------
  Merge pull request #1168 from Kijewski/unittests-use-subfolders-and-dark-magic

unittests: separate test suites from main.c


Compare: https://github.com/RIOT-OS/RIOT/compare/7ebd97d9868f...991a5dccf1d7


More information about the commits mailing list