[U-Boot] [PATCH V4 6/8] test/py: test the shell if command

Simon Glass sjg at chromium.org
Tue Jan 19 04:28:42 CET 2016


On 15 January 2016 at 11:15, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> 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 at nvidia.com>
> Acked-by: Simon Glass <sjg at chromium.org>
> ---
> v4:
> - No changes.
>
> v3:
> - Move test scripts into a sub-directory.
>   Suggested by Michal Simek.
> - s/uboot/u[-_]boot/g. Suggested by Simon Glass.
> - s/"/'/g. Suggested by Simon Glass.
> - Add more documentation. Suggested by Simon Glass.
> - Remove inclusion of <os.h>. Suggested by Simon Glass.
> ---
>  test/command_ut.c                  | 116 ----------------------------
>  test/py/tests/test_hush_if_test.py | 154 +++++++++++++++++++++++++++++++++++++
>  2 files changed, 154 insertions(+), 116 deletions(-)
>  create mode 100644 test/py/tests/test_hush_if_test.py

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list