From 0aefe4297d8f1c8f5899f201ff1b8bc93ecbbab4 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 11 Dec 2012 11:09:22 +0100 Subject: Add choice/menu/comment test coverage for get_referenced_symbols(). --- tests/Kref | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3