1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/makefiles/tests/feature_resolution
Marian Buschsieweke 47414f8e3b
makefiles/tests: add unit tests for fixed bug
Make sure that optional features that would cause conflicts don't end up being
used again.
2021-02-22 12:06:27 +01:00
..
Makefile tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
Makefile.test tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
README.md tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-blacklist-failure.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-blacklist-optional.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-blacklist-success.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-complex-failure.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-complex-success.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-conflict-failure.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-conflict-optional.mk makefiles/tests: add unit tests for fixed bug 2021-02-22 12:06:27 +01:00
test-conflict-success.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-empty.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-required-any-corner-case.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-required-any-fail.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-required-any-order.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-required-any-reuse-optional.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-required-any-reuse-required.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-trivial-failure.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00
test-trivial-success.mk tests/feature_resolution: add build system unit tests 2021-02-10 21:05:38 +01:00

Simple Unit Tests for Feature Resolution

This folder contains a Makefile that runs a set of unit tests for the feature resolution logic. Each unit test is defined in a file named tests-<NAME_OF_TEST>.mk in which the inputs and the expected outputs are defined. Finally, the include Makefile.test, which will perform the tests.

The tests can be run simply by typing make. Also, make static-test at the root of the repo will run these tests and, hence, these tests are also executed on each CI run.

Adding new Test Cases

Just create a new tests-<NAME_OF_NEW_TEST>.mk file and start with the contests of an existing test case and change the inputs and expected outputs accordingly.