[PATCH 4/4] test: bdinfo: Add test for command bdinfo

Simon Glass sjg at chromium.org
Mon Apr 24 21:42:12 CEST 2023


Hi Marek,

On Sat, 22 Apr 2023 at 07:01, Marek Vasut
<marek.vasut+renesas at mailbox.org> wrote:
>
> Add test for command bdinfo .
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
> ---
> Cc: Jason Liu <jason.hui.liu at nxp.com>
> Cc: Michal Simek <michal.simek at amd.com>
> Cc: Ovidiu Panait <ovpanait at gmail.com>
> Cc: Simon Glass <sjg at chromium.org>
> ---
>  include/test/suites.h |   1 +
>  test/cmd/Makefile     |   1 +
>  test/cmd/bdinfo.c     | 179 ++++++++++++++++++++++++++++++++++++++++++
>  test/cmd_ut.c         |   6 ++
>  4 files changed, 187 insertions(+)
>  create mode 100644 test/cmd/bdinfo.c
>

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

see below

[..]

> +       /* The gd->multi_dtb_fit may not be available, hence, #if below. */
> +#if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
> +       bdinfo_test_num_l(uts, "multi_dtb_fit", (ulong)gd->multi_dtb_fit);

You can avoid it if you use gd_multi_dtb_fit()

> +#endif
> +

[..]

Regards,
Simon


More information about the U-Boot mailing list