]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: tests: test automatic submenu creation
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 13 Mar 2018 09:12:05 +0000 (18:12 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:04:02 +0000 (02:04 +0900)
commit49ac3c0c3aa3b7636961b72a40ddb03e6609f594
tree429d8f2f9f50fa1d065f24ace81f9597ccee1e1c
parent1903c511905984685e0a299421bc4c8b6fc1344b
kconfig: tests: test automatic submenu creation

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.

This is done by restructuring the menu tree in menu_finalize().
It is a bit complicated computation, so let's add a test case.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
scripts/kconfig/tests/auto_submenu/Kconfig [new file with mode: 0644]
scripts/kconfig/tests/auto_submenu/__init__.py [new file with mode: 0644]
scripts/kconfig/tests/auto_submenu/expected_stdout [new file with mode: 0644]