1# SPDX-License-Identifier: GPL-2.0 2""" 3Basic choice tests. 4 5The handling of 'choice' is a bit complicated part in Kconfig. 6 7The behavior of 'y' choice is intuitive. If choice values are tristate, 8the choice can be 'm' where each value can be enabled independently. 9""" 10 11 12def test_oldask0(conf): 13 assert conf.oldaskconfig() == 0 14 assert conf.stdout_contains('oldask0_expected_stdout') 15 16 17def test_oldask1(conf): 18 assert conf.oldaskconfig('oldask1_config') == 0 19 assert conf.stdout_contains('oldask1_expected_stdout') 20 21 22def test_allyes(conf): 23 assert conf.allyesconfig() == 0 24 assert conf.config_contains('allyes_expected_config') 25 26 27def test_allmod(conf): 28 assert conf.allmodconfig() == 0 29 assert conf.config_contains('allmod_expected_config') 30 31 32def test_allno(conf): 33 assert conf.allnoconfig() == 0 34 assert conf.config_contains('allno_expected_config') 35 36 37def test_alldef(conf): 38 assert conf.alldefconfig() == 0 39 assert conf.config_contains('alldef_expected_config') 40