xref: /linux/scripts/kconfig/tests/warn_changed_input/Kconfig (revision 645323a7f4e55bb3abb0cb003b6b9dc715c8dc21)
1*645323a7SPengpeng Hou# SPDX-License-Identifier: GPL-2.0
2*645323a7SPengpeng Hou
3*645323a7SPengpeng Houconfig DEP
4*645323a7SPengpeng Hou	bool "DEP"
5*645323a7SPengpeng Hou	help
6*645323a7SPengpeng Hou	  Test dependency symbol for Kconfig warning coverage.
7*645323a7SPengpeng Hou	  This is used by the warn_changed_input selftest.
8*645323a7SPengpeng Hou	  It intentionally stays unset in the input fragment.
9*645323a7SPengpeng Hou	  The test checks how dependent user input is adjusted.
10*645323a7SPengpeng Hou
11*645323a7SPengpeng Houconfig A
12*645323a7SPengpeng Hou	bool "A"
13*645323a7SPengpeng Hou	depends on DEP
14*645323a7SPengpeng Hou	help
15*645323a7SPengpeng Hou	  Test bool symbol for changed-input diagnostics.
16*645323a7SPengpeng Hou	  The input fragment requests this symbol as built-in.
17*645323a7SPengpeng Hou	  The unmet dependency on DEP forces the final value to n.
18*645323a7SPengpeng Hou	  The warning should report that downgrade.
19*645323a7SPengpeng Hou
20*645323a7SPengpeng Houconfig NUM
21*645323a7SPengpeng Hou	int "NUM"
22*645323a7SPengpeng Hou	range 10 20
23*645323a7SPengpeng Hou	help
24*645323a7SPengpeng Hou	  Test integer symbol for changed-input diagnostics.
25*645323a7SPengpeng Hou	  The input fragment requests a value outside the allowed range.
26*645323a7SPengpeng Hou	  Kconfig resolves it to the constrained in-range value.
27*645323a7SPengpeng Hou	  The warning should report that adjustment.
28*645323a7SPengpeng Hou
29*645323a7SPengpeng Houconfig DUP
30*645323a7SPengpeng Hou	bool "DUP"
31*645323a7SPengpeng Hou	depends on DEP
32*645323a7SPengpeng Hou	help
33*645323a7SPengpeng Hou	  Test duplicate-definition handling for changed-input diagnostics.
34*645323a7SPengpeng Hou	  The input fragment requests this symbol as built-in.
35*645323a7SPengpeng Hou	  The duplicate definition below must not produce a duplicate warning.
36*645323a7SPengpeng Hou	  This keeps the warning output stable for repeated menu entries.
37*645323a7SPengpeng Hou
38*645323a7SPengpeng Houconfig DUP
39*645323a7SPengpeng Hou	bool
40*645323a7SPengpeng Hou	depends on DEP
41