1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 05:53:49 +01:00
RIOT/tests/build_system/external_unittests
Marian Buschsieweke eff6816ded
tests/unittests: allow out-of-tree tests
This adds and documents the new `EXTERNAL_UNIT_TEST_DIRS` environment
variable that allows including out-of-tree unit tests. The intention is
to allow users of `EXTERNAL_MODULE_DIRS` to also provide corresponding
unit tests and run them all with a single test app.

Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-08 17:55:58 +01:00
..
2025-11-08 17:55:58 +01:00

External Unit Tests

This test apps provides two trivial unit tests: One provided internally in the folder of this unit tests apps and one provided externally via a variable. Since the test only validates correct operation of the build system, there is little value in running it on more than one board. For this reason, the app is limited to be build only for native / native64.

Implementation Details

The two tests contain a reference to a variable of the other tests, so that the app will not link if only if both of the unit tests are available at link time (or none). In addition, the python test runner will check that two tests are executed (to rule out that none was available).