1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

tests/kconfig: add features check

This commit is contained in:
Jose Alamos 2020-05-26 20:50:25 +02:00 committed by Leandro Lanzieri
parent 3716457f94
commit c39f94ba88
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
4 changed files with 44 additions and 0 deletions

View File

View File

@ -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

View File

@ -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.

View File

@ -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 <leandro.lanzieri@haw-hamburg.de>
* @author José I. Alamos <jose.alamos@haw-hamburg.de>
*
* @}
*/
int main(void)
{
return 0;
}