summaryrefslogtreecommitdiff
path: root/tests/Kvisibility
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Kvisibility')
-rw-r--r--tests/Kvisibility161
1 files changed, 98 insertions, 63 deletions
diff --git a/tests/Kvisibility b/tests/Kvisibility
index 715d098..91def0a 100644
--- a/tests/Kvisibility
+++ b/tests/Kvisibility
@@ -1,5 +1,6 @@
config MODULES
bool "MODULES"
+ option modules
#
# Symbol visibility
@@ -12,186 +13,204 @@ config NO_PROMPT
config MOD
def_tristate m
-config BOOL_n
+config BOOL_N
bool "bool n" if n
-# Rewritten to m && MODULES
-config BOOL_m
+config BOOL_M
+ # Rewritten to m && MODULES
bool "bool m" if m
-# Not rewritten
config BOOL_MOD
bool "bool MOD"
+ # Not rewritten
depends on MOD
-# Rewritten to m && MODULES
-config BOOL_y
+config BOOL_Y
bool "bool y"
+ # Rewritten to m && MODULES
depends on y || m
-config TRISTATE_n
+config TRISTATE_N
tristate "tristate n" if n
-# Rewritten to m && MODULES
-config TRISTATE_m
+config TRISTATE_M
+ # Rewritten to m && MODULES
tristate "tristate m" if m
-# Not rewritten
config TRISTATE_MOD
tristate "tristate MOD"
+ # Not rewritten
depends on MOD
-# Rewritten to m && MODULES
-config TRISTATE_y
+config TRISTATE_Y
bool "tristate y"
+ # Rewritten to m && MODULES
depends on y || m
# Symbols nested in 'if'
if n
-config BOOL_if_n
+
+config BOOL_IF_N
bool "bool if n"
-config TRISTATE_if_n
+
+config TRISTATE_IF_N
tristate "tristate if n"
+
endif
if m
-config BOOL_if_m
+
+config BOOL_IF_M
bool "bool if m"
-config TRISTATE_if_m
+
+config TRISTATE_IF_M
tristate "tristate if n"
+
endif
if y
-config BOOL_if_y
+
+config BOOL_IF_Y
bool "bool if y"
-config TRISTATE_if_y
+
+config TRISTATE_IF_Y
tristate "tristate if y"
+
endif
# Symbols nested in 'menu'
menu "menu 1"
depends on n
-config BOOL_menu_n
+
+config BOOL_MENU_N
bool "bool menu n"
-config TRISTATE_menu_n
+
+config TRISTATE_MENU_N
tristate "tristate menu n"
+
endmenu
menu "menu 2"
depends on m
-config BOOL_menu_m
+
+config BOOL_MENU_M
bool "bool menu m"
-config TRISTATE_menu_m
+
+config TRISTATE_MENU_M
tristate "tristate menu n"
+
endmenu
menu "menu 3"
depends on y
-config BOOL_menu_y
+
+config BOOL_MENU_Y
bool "bool menu y"
-config TRISTATE_menu_y
+
+config TRISTATE_MENU_Y
tristate "tristate menu y"
+
endmenu
# Symbols nested in choices
choice C1
tristate "choice n" if n
-config BOOL_choice_n
+
+config BOOL_CHOICE_N
bool "bool choice n"
-config TRISTATE_choice_n
+
+config TRISTATE_CHOICE_N
tristate "tristate choice n"
+
endchoice
choice C2
tristate "choice m" if m
-config BOOL_choice_m
+
+config BOOL_CHOICE_M
bool "bool choice m"
-config TRISTATE_choice_m
+
+config TRISTATE_CHOICE_M
tristate "tristate choice n"
+
endchoice
choice C3
tristate "choice y" if y
-config BOOL_choice_y
+
+config BOOL_CHOICE_Y
bool "bool choice y"
-config TRISTATE_choice_y
+
+config TRISTATE_CHOICE_Y
tristate "tristate choice y"
+
endchoice
#
# Choice visibility
#
-choice BOOL_CHOICE_n
+choice BOOL_CHOICE_N
bool "bool choice n" if n
-config A
- bool "A"
-config B
- bool "B"
endchoice
-choice BOOL_CHOICE_m
+choice BOOL_CHOICE_M
bool "bool choice m" if m
-config C
- bool "C"
-config D
- bool "D"
endchoice
-choice BOOL_CHOICE_y
+choice BOOL_CHOICE_Y
bool "bool choice y" if y
-config E
- bool "E"
-config F
- bool "F"
endchoice
-choice TRISTATE_CHOICE_n
+choice TRISTATE_CHOICE_N
tristate "tristate choice n" if n
-config G
- tristate "G"
-config H
- tristate "H"
endchoice
-choice TRISTATE_CHOICE_m
+choice TRISTATE_CHOICE_M
tristate "tristate choice m" if m
-config I
- tristate "I"
-config J
- tristate "J"
endchoice
-choice TRISTATE_CHOICE_y
+choice TRISTATE_CHOICE_Y
tristate "tristate choice y" if y
+
config K
tristate "K"
+
config L
tristate "L"
+
endchoice
if m
-choice TRISTATE_CHOICE_IF_m_and_y
+choice TRISTATE_CHOICE_IF_M_AND_Y
tristate "tristate choice if m and y" if y
+
config M
bool "M"
+
config N
bool "N"
+
endchoice
endif
menu "choice-containing menu"
depends on n && y
-choice TRISTATE_CHOICE_MENU_n_and_y
+
+choice TRISTATE_CHOICE_MENU_N_AND_Y
tristate "tristate choice if n and y"
+
config O
tristate "O"
+
config P
tristate "P"
+
endchoice
+
endmenu
#
@@ -245,19 +264,25 @@ comment "comment y"
if n
comment "comment if n"
endif
+
if m
comment "comment if m"
endif
+
if y
comment "comment if y"
endif
if "y"
-menu "comment-containing menu"
+
+menu "menu with comment"
depends on m
+
comment "double-nested m comment"
depends on y
+
endmenu
+
endif
# Used to verify that string/int/hex symbols with m visibility accept a user
@@ -280,28 +305,38 @@ endif
menu "n-visible menu"
visible if n
-config VISIBLE_IF_n
+
+config VISIBLE_IF_N
tristate "visible if n"
+
endmenu
menu "m-visible menu"
visible if m
-config VISIBLE_IF_m
+
+config VISIBLE_IF_M
tristate "visible if m"
+
endmenu
menu "y-visible menu"
visible if y
-config VISIBLE_IF_y
+
+config VISIBLE_IF_Y
tristate "visible if m"
+
endmenu
menu "m-visible menu 2"
visible if y || n
visible if m && y
visible if y
+
if y
-config VISIBLE_IF_m_2
+
+config VISIBLE_IF_M_2
tristate "visible if m 2"
+
endif
+
endmenu