]> git.ipfire.org Git - people/ms/u-boot.git/commit
test/py: test the shell if command
authorStephen Warren <swarren@nvidia.com>
Fri, 15 Jan 2016 18:15:29 +0000 (11:15 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2016 02:06:23 +0000 (19:06 -0700)
commitcc156f3fc0b2a8cb6dbb529ada54ba1a902e2019
treed36a81326fe6e19581872e60a1c4e56472c5d10c
parent8b86c609b8600c03c72557b7002b490a856902e0
test/py: test the shell if command

Migrate all most tests from command_ut.c into the Python test system.
This allows the tests to be run against any U-Boot binary that supports
the if command (i.e. where hush is enabled) without requiring that
binary to be permanently bloated with the code from command_ut.

Some tests in command_ut.c can only be executed from C code, since they
test internal (more unit-level) features of various U-Boot APIs. The
migrated tests can all operate directly from the U-Boot console.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
test/command_ut.c
test/py/tests/test_hush_if_test.py [new file with mode: 0644]