kconfig: test: add Kconfig macro language tests
Here are the test cases I used for developing the text expansion feature. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
316d55d55f
commit
2bece88f89
13 changed files with 191 additions and 0 deletions
8
scripts/kconfig/tests/preprocess/variable/__init__.py
Normal file
8
scripts/kconfig/tests/preprocess/variable/__init__.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
"""
|
||||
Variable and user-defined function tests.
|
||||
"""
|
||||
|
||||
def test(conf):
|
||||
assert conf.oldaskconfig() == 0
|
||||
assert conf.stderr_matches('expected_stderr')
|
||||
Loading…
Add table
Add a link
Reference in a new issue