All files in lxdialog/ are licensed under GPL-2.0+, and the rest are under GPL-2.0. I added GPL-2.0 tags to test scripts in tests/. Documentation/process/license-rules.rst does not suggest anything about the flex/bison files. Because flex does not accept the C++ comment style at the very top of a file, I used the C style for zconf.l, and so for zconf.y for consistency. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
17 lines
542 B
Python
17 lines
542 B
Python
# SPDX-License-Identifier: GPL-2.0
|
|
"""
|
|
Set random values recursively in nested choices.
|
|
|
|
Kconfig can create a choice-in-choice structure by using 'if' statement.
|
|
randconfig should correctly set random choice values.
|
|
|
|
Related Linux commit: 3b9a19e08960e5cdad5253998637653e592a3c29
|
|
"""
|
|
|
|
|
|
def test(conf):
|
|
for i in range(20):
|
|
assert conf.randconfig() == 0
|
|
assert (conf.config_contains('expected_stdout0') or
|
|
conf.config_contains('expected_stdout1') or
|
|
conf.config_contains('expected_stdout2'))
|