Resguardo inicial

This commit is contained in:
lastdragon
2026-09-06 12:53:21 -06:00
parent 662efe3c2a
commit ad2088d178
94853 changed files with 43200404 additions and 0 deletions
@@ -0,0 +1,40 @@
# SPDX-License-Identifier: GPL-2.0
config DEP
bool "DEP"
help
Test dependency symbol for Kconfig warning coverage.
This is used by the warn_changed_input selftest.
It intentionally stays unset in the input fragment.
The test checks how dependent user input is adjusted.
config A
bool "A"
depends on DEP
help
Test bool symbol for changed-input diagnostics.
The input fragment requests this symbol as built-in.
The unmet dependency on DEP forces the final value to n.
The warning should report that downgrade.
config NUM
int "NUM"
range 10 20
help
Test integer symbol for changed-input diagnostics.
The input fragment requests a value outside the allowed range.
Kconfig resolves it to the constrained in-range value.
The warning should report that adjustment.
config DUP
bool "DUP"
depends on DEP
help
Test duplicate-definition handling for changed-input diagnostics.
The input fragment requests this symbol as built-in.
The duplicate definition below must not produce a duplicate warning.
This keeps the warning output stable for repeated menu entries.
config DUP
bool
depends on DEP
@@ -0,0 +1,33 @@
# SPDX-License-Identifier: GPL-2.0
"""
Test optional warnings for user-provided values changed by Kconfig.
Warnings should stay disabled by default, and should only appear when
KCONFIG_WARN_CHANGED_INPUT is enabled.
"""
def test(conf):
assert conf.olddefconfig('config') == 0
assert 'user-provided values changed by Kconfig' not in conf.stderr
assert conf._run_conf('--olddefconfig', dot_config='config',
extra_env={
'KCONFIG_WARN_CHANGED_INPUT': '1',
}) == 0
assert conf.stderr_contains('expected_stderr')
assert conf.config_matches('expected_config')
assert conf._run_conf('--olddefconfig', dot_config='config',
extra_env={
'KCONFIG_WARN_CHANGED_INPUT': '1',
}, silent=True) == 0
assert conf.stderr_contains('expected_stderr')
assert conf._run_conf('--savedefconfig=defconfig', dot_config='config',
out_file='defconfig',
extra_env={
'KCONFIG_WARN_CHANGED_INPUT': '1',
}) == 0
assert conf.stderr_contains('expected_stderr')
assert conf.config_matches('expected_defconfig')
@@ -0,0 +1,3 @@
CONFIG_A=y
CONFIG_NUM=30
CONFIG_DUP=y
@@ -0,0 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
# Main menu
#
# CONFIG_DEP is not set
CONFIG_NUM=20
@@ -0,0 +1 @@
CONFIG_NUM=20
@@ -0,0 +1,4 @@
warning: user-provided values changed by Kconfig:
CONFIG_A: y -> n
CONFIG_NUM: 30 -> 20
CONFIG_DUP: y -> n