Resguardo inicial

This commit is contained in:
lastdragon
2026-09-06 12:53:21 -06:00
parent 662efe3c2a
commit ad2088d178
94853 changed files with 43200404 additions and 0 deletions
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: GPL-2.0
choice
prompt "boolean choice"
default BOOL_CHOICE1
config BOOL_CHOICE0
bool "choice 0"
config BOOL_CHOICE1
bool "choice 1"
endchoice
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0
"""
Basic choice tests.
"""
def test_oldask0(conf):
assert conf.oldaskconfig() == 0
assert conf.stdout_contains('oldask0_expected_stdout')
def test_allyes(conf):
assert conf.allyesconfig() == 0
assert conf.config_contains('allyes_expected_config')
def test_allmod(conf):
assert conf.allmodconfig() == 0
assert conf.config_contains('allmod_expected_config')
def test_allno(conf):
assert conf.allnoconfig() == 0
assert conf.config_contains('allno_expected_config')
def test_alldef(conf):
assert conf.alldefconfig() == 0
assert conf.config_contains('alldef_expected_config')
@@ -0,0 +1,2 @@
# CONFIG_BOOL_CHOICE0 is not set
CONFIG_BOOL_CHOICE1=y
@@ -0,0 +1,2 @@
# CONFIG_BOOL_CHOICE0 is not set
CONFIG_BOOL_CHOICE1=y
@@ -0,0 +1,2 @@
# CONFIG_BOOL_CHOICE0 is not set
CONFIG_BOOL_CHOICE1=y
@@ -0,0 +1,2 @@
# CONFIG_BOOL_CHOICE0 is not set
CONFIG_BOOL_CHOICE1=y
@@ -0,0 +1,4 @@
boolean choice
1. choice 0 (BOOL_CHOICE0) (NEW)
> 2. choice 1 (BOOL_CHOICE1) (NEW)
choice[1-2?]: