diff --git a/tests/kconfig_features/Kconfig b/tests/kconfig_features/Kconfig new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/kconfig_features/Makefile b/tests/kconfig_features/Makefile new file mode 100644 index 0000000000..669ebad67a --- /dev/null +++ b/tests/kconfig_features/Makefile @@ -0,0 +1,10 @@ +include ../Makefile.tests_common + +kconfig-features: + @bash -c 'diff <($(MAKE) info-features-provided) \ + <($(MAKE) dependency-debug-features-provided-kconfig) || \ + (echo "ERROR: Kconfig features mismatch" && exit 1)' + +all: kconfig-features + +include $(RIOTBASE)/Makefile.include diff --git a/tests/kconfig_features/README.md b/tests/kconfig_features/README.md new file mode 100644 index 0000000000..bfccc2ab7a --- /dev/null +++ b/tests/kconfig_features/README.md @@ -0,0 +1,9 @@ +## Kconfig features test + +The objective of this test is to control the synchronization of features +provided by boards via `Makefile.features` and `Kconfig` files during the +migration process. + +The test checks during compilation that both lists of features provided by +the board match. The `BOARD_WHITELIST` is used to test only the boards that have +their features modelled in Kconfig. diff --git a/tests/kconfig_features/main.c b/tests/kconfig_features/main.c new file mode 100644 index 0000000000..2a15483f39 --- /dev/null +++ b/tests/kconfig_features/main.c @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2019 HAW Hamburg + * + * This file is subject to the terms and conditions of the GNU Lesser General + * Public License v2.1. See the file LICENSE in the top level directory for more + * details. + */ + +/** + * @ingroup tests + * @{ + * + * @file + * @brief Test for Kconfig Features + * + * @author Leandro Lanzieri + * @author José I. Alamos + * + * @} + */ + +int main(void) +{ + return 0; +}