summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-04-04 16:20:58 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-04-04 16:44:58 +0200
commit2259d353426f12d5fa807075fb4727e64331ac8a (patch)
tree4d1cfdee3afc652562a06f02ac28a58984082ef4 /tests
parent7245bad9ebb58fc8ce5a322081fc6c39d2dc59c6 (diff)
Generalize is_menuconfig to non-symbol items
Extending the scope of is_menuconfig so that it's True for all items whose children should be displayed in a separate menu turns out to be handy when implementing menuconfig-like functionality. Keep the old name for backwards compatibility. It's good enough.
Diffstat (limited to 'tests')
-rw-r--r--tests/Kmenuconfig37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/Kmenuconfig b/tests/Kmenuconfig
new file mode 100644
index 0000000..9a4cc11
--- /dev/null
+++ b/tests/Kmenuconfig
@@ -0,0 +1,37 @@
+# Menu nodes with is_menuconfig False
+
+config NOT_MENUCONFIG_1
+ bool
+
+config NOT_MENUCONFIG_2
+ bool "not menuconfig 2"
+
+config MENUCONFIG_MULTI_DEF
+ bool "menuconfig multi def 1"
+
+config COMMENT_HOOK
+ bool
+
+comment "not menuconfig 3"
+
+
+# Menu nodes with is_menuconfig True
+
+menuconfig MENUCONFIG_1
+ bool "menuconfig 1"
+
+menuconfig MENUCONFIG_MULTI_DEF
+ bool "menuconfig multi def 2"
+
+config MENU_HOOK
+ bool
+
+menu "menuconfig 2"
+endmenu
+
+config CHOICE_HOOK
+ bool
+
+choice
+ bool "menuconfig 3"
+endchoice