kconfig: tests: add a test for randconfig with dependent choicesSince commit 3b9a19e08960 ("kconfig: loop as long as we changed somesymbols in randconfig"), conf_set_all_new_symbols() is repeated
kconfig: tests: add a test for randconfig with dependent choicesSince commit 3b9a19e08960 ("kconfig: loop as long as we changed somesymbols in randconfig"), conf_set_all_new_symbols() is repeated untilthere is no more choice left to be shuffled. The motivation was toshuffle a choice nested in another choice.Although commit 09d5873e4d1f ("kconfig: allow only 'config', 'comment',and 'if' inside 'choice'") disallowed the nested choice structure,we must still keep 3b9a19e08960 because there are still cases whereconf_set_all_new_symbols() must iterate.scripts/kconfig/tests/choice_randomize/Kconfig is the test case.The second choice depends on 'B', which is the member of the firstchoice.With 3b9a19e08960 reverted, we would never get the pattern specified byscripts/kconfig/tests/choice_randomize/expected_config2.A real example can be found in lib/Kconfig.debug. Without 3b9a19e08960,the randconfig would not shuffle the "Compressed Debug information"choice, which depends on DEBUG_INFO, which is derived from anotherchoice "Debug information".My goal is to refactor Kconfig so that randconfig will work moresimply, without using the loop.For now, let's add a test case to ensure all dependent choices areshuffled, as it is a somewhat tricky case for the current Kconfig.Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
show more ...