[PATCH v1 0/4] cli: run_commandf() coverage and small fixups

Evgeny Bachinin EABachinin at sberdevices.ru
Fri Mar 10 19:54:05 CET 2023


Our company has been using custom variadic version of run_command()
since the beginning of the 2022Y. Recently, we had started upstreaming
activity and figured out, that similar functionality already exists.
Thanks, it's very helpful, because our code uses such variadic API.

Let me share test-cases for run_commandf() to improve coverage and
btw provide several fixups for run_commandf(), found during applying
this API to our custom sources.

Patchset has been tested on our set of devices and sandbox64
(appropriate unit-tests were checked: ut_cmd, ut fdt, ut exit).
Additionally, github CI loop has been passed successfully without
regression in context of github PR [1].

Links: [1] https://github.com/u-boot/u-boot/pull/277/checks

Evgeny Bachinin (4):
  cli: run_commandf(): small fixups
  unit-test: cover run_commandf() by test-cases
  test: fdt: fix run_commandf() warnings
  test: exit: fix run_commandf() warnings

 common/cli.c      | 19 ++++++++++++++-----
 include/command.h | 13 ++++++++++---
 test/cmd/exit.c   | 18 +++++++++---------
 test/cmd/fdt.c    | 12 ++++++------
 test/command_ut.c | 35 +++++++++++++++++++++++++++++++++++
 5 files changed, 74 insertions(+), 23 deletions(-)

-- 
2.17.1



More information about the U-Boot mailing list