summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Kchoice76
1 files changed, 76 insertions, 0 deletions
diff --git a/tests/Kchoice b/tests/Kchoice
new file mode 100644
index 0000000..ce103ae
--- /dev/null
+++ b/tests/Kchoice
@@ -0,0 +1,76 @@
+config MODULES
+ bool "modules"
+
+# bool/tristate and optional
+
+choice BOOL
+ bool "bool"
+config B_1
+ tristate "B_1"
+config B_2
+ tristate "B_2"
+endchoice
+
+choice BOOL_OPT
+ bool "bool optional"
+ optional
+config BO_1
+ tristate "BO_1"
+config BO_2
+ tristate "BO_2"
+endchoice
+
+choice TRISTATE
+ tristate "tristate"
+config T_1
+ tristate "T_1"
+config T_2
+ tristate "T_2"
+endchoice
+
+choice TRISTATE_OPT
+ tristate "tristate optional"
+ optional
+config TO_1
+ tristate "TO_1"
+config TO_2
+ tristate "TO_2"
+endchoice
+
+# m-visibility
+
+choice BOOL_M
+ bool "bool m" if m
+config BM_1
+ tristate "BM_1"
+config BM_2
+ tristate "BM_2"
+endchoice
+
+choice TRISTATE_M
+ tristate "tristate m" if m
+config TM_1
+ tristate "TM_1"
+config TM_2
+ tristate "TM_2"
+endchoice
+
+# Defaults
+
+config TRISTATE_SYM
+ tristate "tristate"
+
+choice DEFAULTS
+ bool "defaults"
+ default OPT_1 if n
+ default OPT_2 if TRISTATE_SYM
+ default OPT_4
+config OPT_1
+ tristate "OPT_1"
+config OPT_2
+ tristate "OPT_2"
+config OPT_3
+ tristate "OPT_3"
+config OPT_4
+ tristate "OPT_4"
+endchoice