Skip to content
Snippets Groups Projects
  • René Kijewski's avatar
    02463290
    unittests: separate test suites from main.c · 02463290
    René Kijewski authored
    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
    ```
    02463290
    History
    unittests: separate test suites from main.c
    René Kijewski authored
    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
    ```
main.c 861 B