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:
parent
3716457f94
commit
c39f94ba88
0
tests/kconfig_features/Kconfig
Normal file
0
tests/kconfig_features/Kconfig
Normal file
10
tests/kconfig_features/Makefile
Normal file
10
tests/kconfig_features/Makefile
Normal 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
|
||||
9
tests/kconfig_features/README.md
Normal file
9
tests/kconfig_features/README.md
Normal 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.
|
||||
25
tests/kconfig_features/main.c
Normal file
25
tests/kconfig_features/main.c
Normal 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;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user