summaryrefslogtreecommitdiff
path: root/tests/Kstr
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-09 11:43:13 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-09 11:43:13 +0100
commit395c2db0e9761def8eb992e3e8068ba2d3ab179c (patch)
tree7b14ac791dbf9d4b9354f1c6149444e090068309 /tests/Kstr
parent8c978ee0b9c0f7f8406f58d24478a73330512056 (diff)
parent4bffd653148d6fa1c8e626872ae4f445e2b0a24c (diff)
Make Kconfiglib 2 official
Merge in the 'kconfiglib-2-backup' branch.
Diffstat (limited to 'tests/Kstr')
-rw-r--r--tests/Kstr78
1 files changed, 78 insertions, 0 deletions
diff --git a/tests/Kstr b/tests/Kstr
new file mode 100644
index 0000000..d792f08
--- /dev/null
+++ b/tests/Kstr
@@ -0,0 +1,78 @@
+if UNDEFINED
+endif
+
+config NO_TYPE
+
+config BASIC_NO_PROMPT
+ bool
+ help
+ blah blah
+
+ blah blah blah
+
+ blah
+
+config BASIC_PROMPT
+ bool "basic"
+
+config ADVANCED
+ tristate "prompt" if DEP
+ default DEFAULT_1
+ default DEFAULT_2 if DEP
+ select SELECTED_1
+ select SELECTED_2 if DEP
+ imply IMPLIED_1
+ imply IMPLIED_2 if DEP
+ help
+ first help text
+
+config ADVANCED
+ prompt "prompt 2"
+
+menuconfig ADVANCED
+ prompt "prompt 3"
+ depends on DEP2
+
+config ADVANCED
+ help
+ second help text
+
+config STRING
+ string
+ default "foo"
+ default "bar" if DEP
+ default STRING2
+ default STRING3 if DEP
+
+config INT
+ int
+ range 1 2
+ range FOO BAR
+ range BAZ QAZ if DEP
+
+config MODULES
+ bool "MODULES"
+ option modules
+
+config OPTIONS
+ option allnoconfig_y
+ option defconfig_list
+ option env="ENV"
+
+choice CHOICE
+ tristate "foo"
+ default CHOICE_1
+ default CHOICE_2 if dep
+
+config CHOICE_1
+ tristate "choice 1"
+
+config CHOICE_2
+ tristate "choice 2"
+
+endchoice
+
+choice
+ tristate "no name"
+ optional
+endchoice