diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/kconfig/base.cfg | 4 | ||||
-rw-r--r-- | test/py/test_bselftests.py | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/kconfig/base.cfg b/test/kconfig/base.cfg index e69de29bb2..6a9f683498 100644 --- a/test/kconfig/base.cfg +++ b/test/kconfig/base.cfg @@ -0,0 +1,4 @@ +CONFIG_TEST=y +CONFIG_SELFTEST=y +CONFIG_CMD_SELFTEST=y +CONFIG_SELFTEST_ENABLE_ALL=y diff --git a/test/py/test_bselftests.py b/test/py/test_bselftests.py new file mode 100644 index 0000000000..7417e74349 --- /dev/null +++ b/test/py/test_bselftests.py @@ -0,0 +1,8 @@ +import pytest +from .helper import * + +def test_bselftest(barebox, barebox_config): + skip_disabled(barebox_config, "CONFIG_CMD_SELFTEST") + + stdout, _, returncode = barebox.run('selftest', timeout=30) + assert returncode == 0, "selftest failed:\n{}\n".format("\n".join(stdout)) |