0001
0002 """
0003 Basic choice tests.
0004
0005 The handling of 'choice' is a bit complicated part in Kconfig.
0006
0007 The behavior of 'y' choice is intuitive. If choice values are tristate,
0008 the choice can be 'm' where each value can be enabled independently.
0009 Also, if a choice is marked as 'optional', the whole choice can be
0010 invisible.
0011 """
0012
0013
0014 def test_oldask0(conf):
0015 assert conf.oldaskconfig() == 0
0016 assert conf.stdout_contains('oldask0_expected_stdout')
0017
0018
0019 def test_oldask1(conf):
0020 assert conf.oldaskconfig('oldask1_config') == 0
0021 assert conf.stdout_contains('oldask1_expected_stdout')
0022
0023
0024 def test_allyes(conf):
0025 assert conf.allyesconfig() == 0
0026 assert conf.config_contains('allyes_expected_config')
0027
0028
0029 def test_allmod(conf):
0030 assert conf.allmodconfig() == 0
0031 assert conf.config_contains('allmod_expected_config')
0032
0033
0034 def test_allno(conf):
0035 assert conf.allnoconfig() == 0
0036 assert conf.config_contains('allno_expected_config')
0037
0038
0039 def test_alldef(conf):
0040 assert conf.alldefconfig() == 0
0041 assert conf.config_contains('alldef_expected_config')