OSDN Git Service

kconfig: tests: add basic choice tests
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 13 Mar 2018 09:12:04 +0000 (18:12 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:04:02 +0000 (02:04 +0900)
commit1903c511905984685e0a299421bc4c8b6fc1344b
tree807f25bfa59362cebbb9b7d787d30c47a9f35bc0
parent022a4bf6b59dfdb192ca8aef291c7346f984e511
kconfig: tests: add basic choice tests

The calculation of 'choice' is a bit complicated part in Kconfig.

The behavior of 'y' choice is intuitive.  If choice values are tristate,
the choice can be 'm' where each value can be enabled independently.
Also, if a choice is marked as 'optional', the whole choice can be
invisible.

Test basic functionality of choice.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
scripts/kconfig/tests/choice/Kconfig [new file with mode: 0644]
scripts/kconfig/tests/choice/__init__.py [new file with mode: 0644]
scripts/kconfig/tests/choice/alldef_expected_config [new file with mode: 0644]
scripts/kconfig/tests/choice/allmod_expected_config [new file with mode: 0644]
scripts/kconfig/tests/choice/allno_expected_config [new file with mode: 0644]
scripts/kconfig/tests/choice/allyes_expected_config [new file with mode: 0644]
scripts/kconfig/tests/choice/oldask0_expected_stdout [new file with mode: 0644]
scripts/kconfig/tests/choice/oldask1_config [new file with mode: 0644]
scripts/kconfig/tests/choice/oldask1_expected_stdout [new file with mode: 0644]