summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-08 22:49:41 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-08 22:50:11 +0100
commite3583375d0b2a061768cdfa885ca61b03aff0696 (patch)
tree14bb101fd804b3e0a1c3f8e8a99706330b5b0259 /tests
parent979f427e2c33ae296653d784809649b86af3fc30 (diff)
Add selftests for internal object dependencies.
Diffstat (limited to 'tests')
-rw-r--r--tests/Kdep101
1 files changed, 101 insertions, 0 deletions
diff --git a/tests/Kdep b/tests/Kdep
new file mode 100644
index 0000000..fe99283
--- /dev/null
+++ b/tests/Kdep
@@ -0,0 +1,101 @@
+config D
+ bool "D"
+
+# The symbols below depend on D in different ways
+
+config D1
+ def_bool D
+
+config D2
+ int "D2" if D
+
+config D3
+ int "D3"
+ depends on D
+
+config D4
+ bool "D4"
+ default D
+
+config D5
+ bool
+ default y if D
+
+config D6
+ int
+ range 0 1 if D
+
+config D7
+ int
+ range D 1
+
+config D8
+ int
+ range 0 D
+
+if D
+
+# Has no prompt and hence does not depend on D even though it's within the
+# 'if D' block
+config NO_DEPEND
+ bool
+
+config D9
+ bool "D9"
+
+endif
+
+menu "m"
+ depends on D
+
+config D10
+ bool "D10"
+
+menu "nested"
+
+config D11
+ bool "D11"
+
+endmenu
+endmenu
+
+# Indirect dependency
+config D12
+ def_tristate D11
+
+menu "m"
+ depends on D
+if D
+# Depends on D in lots of different ways
+config D13
+ int "D13" if D
+ depends on D && D12
+ default D if D
+ range D D if D
+endif
+endmenu
+
+# Complicated expression
+config D14
+ bool "D14" if n || (y && n || (m || D))
+
+#
+# Choices
+#
+
+choice
+ tristate "choice" if S
+
+config A
+ bool "A"
+
+config B
+ bool "B"
+
+config C
+ bool "C"
+
+endchoice
+
+config S
+ bool "S"