1*e91610daSEugeniu Rosca""" 2*e91610daSEugeniu RoscaBasic choice tests. 3*e91610daSEugeniu Rosca 4*e91610daSEugeniu RoscaThe handling of 'choice' is a bit complicated part in Kconfig. 5*e91610daSEugeniu Rosca 6*e91610daSEugeniu RoscaThe behavior of 'y' choice is intuitive. If choice values are tristate, 7*e91610daSEugeniu Roscathe choice can be 'm' where each value can be enabled independently. 8*e91610daSEugeniu RoscaAlso, if a choice is marked as 'optional', the whole choice can be 9*e91610daSEugeniu Roscainvisible. 10*e91610daSEugeniu Rosca""" 11*e91610daSEugeniu Rosca 12*e91610daSEugeniu Rosca 13*e91610daSEugeniu Roscadef test_oldask0(conf): 14*e91610daSEugeniu Rosca assert conf.oldaskconfig() == 0 15*e91610daSEugeniu Rosca assert conf.stdout_contains('oldask0_expected_stdout') 16*e91610daSEugeniu Rosca 17*e91610daSEugeniu Rosca 18*e91610daSEugeniu Roscadef test_oldask1(conf): 19*e91610daSEugeniu Rosca assert conf.oldaskconfig('oldask1_config') == 0 20*e91610daSEugeniu Rosca assert conf.stdout_contains('oldask1_expected_stdout') 21*e91610daSEugeniu Rosca 22*e91610daSEugeniu Rosca 23*e91610daSEugeniu Roscadef test_allyes(conf): 24*e91610daSEugeniu Rosca assert conf.allyesconfig() == 0 25*e91610daSEugeniu Rosca assert conf.config_contains('allyes_expected_config') 26*e91610daSEugeniu Rosca 27*e91610daSEugeniu Rosca 28*e91610daSEugeniu Roscadef test_allmod(conf): 29*e91610daSEugeniu Rosca assert conf.allmodconfig() == 0 30*e91610daSEugeniu Rosca assert conf.config_contains('allmod_expected_config') 31*e91610daSEugeniu Rosca 32*e91610daSEugeniu Rosca 33*e91610daSEugeniu Roscadef test_allno(conf): 34*e91610daSEugeniu Rosca assert conf.allnoconfig() == 0 35*e91610daSEugeniu Rosca assert conf.config_contains('allno_expected_config') 36*e91610daSEugeniu Rosca 37*e91610daSEugeniu Rosca 38*e91610daSEugeniu Roscadef test_alldef(conf): 39*e91610daSEugeniu Rosca assert conf.alldefconfig() == 0 40*e91610daSEugeniu Rosca assert conf.config_contains('alldef_expected_config') 41