summaryrefslogtreecommitdiff
path: root/tests/Kstr
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-06-24 08:18:06 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-06-24 08:57:38 +0200
commit0ca8e78ebaed9ded586162753e8224f8ce7ef4a2 (patch)
tree8eff8d2e6576dba8e6de109084a950ef085f59b9 /tests/Kstr
parent277c43348b65d8f6a4fb16c66fd48e9c697661e9 (diff)
Add {Symbol,Choice}.orig_*, corresponding to the MenuNode fields
Getting defaults, select, implies, and ranges without dependencies propagated to conditions can be useful for symbols and choices as well, e.g. when generating standalone documentation for properties.
Diffstat (limited to 'tests/Kstr')
-rw-r--r--tests/Kstr49
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/Kstr b/tests/Kstr
index 4243918..f55c830 100644
--- a/tests/Kstr
+++ b/tests/Kstr
@@ -242,3 +242,52 @@ endmenu
# Only prompt, no type
config PROMPT_ONLY
prompt "prompt only"
+
+# {Symbol,Choice}.orig_*
+
+if BASE_DEP
+
+config BOOL_SYM_ORIG
+ bool
+ default D1 if DEP
+ default D2
+ select S1
+ select S2 if DEP
+ imply I1
+ imply I1
+
+config BOOL_SYM_ORIG
+ default D3
+ select S3
+ imply I3 if DEP
+
+config INT_SYM_ORIG
+ int
+ range 1 2 if DEP
+ range 3 4
+
+config INT_SYM_ORIG
+ range 5 6 if DEP
+
+choice CHOICE_ORIG
+ bool "choice orig"
+ default A
+ default B if DEP
+
+config A
+ bool
+
+config B
+ bool
+
+endchoice
+
+choice CHOICE_ORIG
+ default C if DEP
+
+config C
+ bool
+
+endchoice
+
+endif