[U-Boot] [PATCH V3 5/7] test/py: add test of basic shell functionality

Simon Glass
2016-01-11T15:23:23Z

On 5 January 2016 at 15:58, Stephen Warren <swarren@wwwdotorg.org> wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> This tests whether the following features of the U-Boot shell:
> - Execution of a directly entered command.
> - Compound commands (; delimiter).
> - Quoting of arguments containing spaces.
> - Executing commands from environment variables.
>
> Signed-off-by: Stephen Warren <swarren@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.
> - Move relevant edits to command_ut.c into this patch from a later one.
> Suggested by Simon Glass.
> ---
> test/command_ut.c | 16 ---------------
> test/py/tests/test_shell_basics.py | 42 ++++++++++++++++++++++++++++++++++++++
> 2 files changed, 42 insertions(+), 16 deletions(-)
> create mode 100644 test/py/tests/test_shell_basics.py

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