summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/tests/auto_submenu/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/tests/auto_submenu/__init__.py')
-rw-r--r--scripts/kconfig/tests/auto_submenu/__init__.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/kconfig/tests/auto_submenu/__init__.py b/scripts/kconfig/tests/auto_submenu/__init__.py
new file mode 100644
index 000000000..25abd927f
--- /dev/null
+++ b/scripts/kconfig/tests/auto_submenu/__init__.py
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0
+"""
+Create submenu for symbols that depend on the preceding one.
+
+If a symbols has dependency on the preceding symbol, the menu entry
+should become the submenu of the preceding one, and displayed with
+deeper indentation.
+"""
+
+
+def test(conf):
+ assert conf.oldaskconfig() == 0
+ assert conf.stdout_contains('expected_stdout')