1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/build_system/kconfig_features: drop test

We are removing Kconfig dependency modeling, so the test is obsolete.
This commit is contained in:
Benjamin Valentin 2024-01-04 15:21:23 +01:00
parent 519f8251a4
commit bca6d2721b
4 changed files with 0 additions and 62 deletions

View File

@ -1,25 +0,0 @@
include ../Makefile.build_system_common
all: checks
include $(RIOTBASE)/Makefile.include
# List of variables to compare between Makefile and Kconfig
_VARS_TO_CHECK = BOARD CPU CPU_MODEL CPU_FAM CPU_CORE CPU_ARCH
# Commands to diff in 'check-values'
_CMDS = $(foreach v,$(_VARS_TO_CHECK), $(if $($(v)),info-debug-variable-$(v)))
_CMDS_CONFIG = $(foreach v,$(_VARS_TO_CHECK), $(if $($(v)),info-debug-variable-CONFIG_$(v)))
# Only compare variables that have a value in Makefile
checks: kconfig-features check-values
kconfig-features: $(KCONFIG_OUT_CONFIG)
@bash -c 'diff <($(MAKE) info-features-provided) \
<($(MAKE) dependency-debug-features-provided-kconfig) || \
(echo "ERROR: Kconfig features mismatch" && exit 1)'
check-values: $(KCONFIG_OUT_CONFIG)
@bash -c '(diff <($(MAKE) $(_CMDS) | sort) \
<($(MAKE) $(_CMDS_CONFIG) | sort) && echo "SUCCESS: $(_CMDS:info-debug-variable-%=%) values match") || \
(echo "ERROR: The value for $(_CMDS:info-debug-variable-%=%) in Kconfig does not match the one in the Makefile" && exit 1)'

View File

@ -1,12 +0,0 @@
## 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.
It also checks that multiple common variables (e.g. CPU_MODEL) have the same
value in the Makefiles and in Kconfig.
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

@ -1,25 +0,0 @@
/*
* 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;
}