[U-Boot] [PATCH V3 6/7] test/py: test the shell if command

Simon Glass sjg at chromium.org
Mon Jan 11 16:23:28 CET 2016


On 5 January 2016 at 15:58, 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>
> ---
> 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

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list