[PATCH 2/2] test: cmd: exit: Add unit test for exit and partly run commands

Simon Glass sjg at chromium.org
Mon Dec 19 20:20:52 CET 2022


On Sun, 18 Dec 2022 at 13:47, Marek Vasut <marex at denx.de> wrote:
>
> Add a test which validates that exit from environment script works as
> expected, including return value propagation and clipping to positive
> integers.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> ---
> Cc: Adrian Vovk <avovk at cc-sw.com>
> Cc: Hector Palacios <hector.palacios at digi.com>
> Cc: Pantelis Antoniou <pantelis.antoniou at konsulko.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>
> ---
>  include/test/suites.h |   1 +
>  test/cmd/Makefile     |   2 +-
>  test/cmd/exit.c       | 135 ++++++++++++++++++++++++++++++++++++++++++
>  test/cmd_ut.c         |   1 +
>  4 files changed, 138 insertions(+), 1 deletion(-)
>  create mode 100644 test/cmd/exit.c

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


More information about the U-Boot mailing list