summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-11 11:09:22 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-11 11:09:22 +0100
commit0aefe4297d8f1c8f5899f201ff1b8bc93ecbbab4 (patch)
treecd24b034dc72b077e266150e77b55ffeab6c1e66 /tests
parentc946100421397ffc02a6613b3366443bac51d1f4 (diff)
Add choice/menu/comment test coverage for get_referenced_symbols().
Diffstat (limited to 'tests')
-rw-r--r--tests/Kref35
1 files changed, 34 insertions, 1 deletions
diff --git a/tests/Kref b/tests/Kref
index 9f7a0e2..a398c1a 100644
--- a/tests/Kref
+++ b/tests/Kref
@@ -6,7 +6,7 @@ config NO_REF
config ONE_REF
def_bool A
-menu "m"
+menu "menu 1"
depends on MENU_REF_1 && MENU_REF_2
if IF_REF_1 && IF_REF_2
@@ -22,3 +22,36 @@ config MANY_REF
endif
endmenu
+
+if MENU_REF_1
+if MENU_REF_1 = MENU_REF_2
+
+menu "menu 2"
+ depends on NO_REF || MENU_REF_3
+endmenu
+endif
+endif
+
+if CHOICE_REF_1
+if CHOICE_REF_2 = CHOICE_REF_3
+choice
+ tristate "choice" if CHOICE_REF_4 || CHOICE_REF_5
+ depends on !CHOICE_REF_6
+
+config A
+ bool "A"
+
+config B
+ bool "B"
+
+endchoice
+endif
+endif
+
+if COMMENT_REF_1
+if !COMMENT_REF_2
+comment "comment"
+ depends on COMMENT_REF_3 != COMMENT_REF_4
+ depends on COMMENT_REF_5
+endif
+endif