xref: /linux/scripts/kconfig/tests/choice/__init__.py (revision daa2be74b1b2302004945b2a5e32424e177cc7da)
1# SPDX-License-Identifier: GPL-2.0
2"""
3Basic choice tests.
4"""
5
6
7def test_oldask0(conf):
8    assert conf.oldaskconfig() == 0
9    assert conf.stdout_contains('oldask0_expected_stdout')
10
11
12def test_allyes(conf):
13    assert conf.allyesconfig() == 0
14    assert conf.config_contains('allyes_expected_config')
15
16
17def test_allmod(conf):
18    assert conf.allmodconfig() == 0
19    assert conf.config_contains('allmod_expected_config')
20
21
22def test_allno(conf):
23    assert conf.allnoconfig() == 0
24    assert conf.config_contains('allno_expected_config')
25
26
27def test_alldef(conf):
28    assert conf.alldefconfig() == 0
29    assert conf.config_contains('alldef_expected_config')
30