[PATCH v1] test: env: add test for u-boot-initial-env creation

Simon Glass sjg at chromium.org
Fri Dec 9 20:51:34 CET 2022


On Sat, 10 Dec 2022 at 01:10, Max Krummenacher <max.oss.09 at gmail.com> wrote:
>
> From: Max Krummenacher <max.krummenacher at toradex.com>
>
> Checks that `make u-boot-initial-env` creates the text file
> u-boot-initial-env and checks that it at least contains
> `board=<something>`.
>
> Signed-off-by: Max Krummenacher <max.krummenacher at toradex.com>
>
> ---
>
> Changes in v1:
> I assume every board has a board environment variable but I don't
> test its value. I.e. the test succseeds even if a board sets it
> to some arbitrary string at build time.
> -
> Tested only with 'sandbox'.
> -
> As proposed by Simon, see
> https://lore.kernel.org/all/CAPnjgZ0V_Fdj9EvzD1hOYa7VqeptsueAuPj5ktYa7owO1qr_CQ@mail.gmail.com/
> Thanks for the pointers tn where to add and where to look
> for a host test example. This was very helpful.
>
>  test/py/tests/test_env.py | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
>

Nice

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


More information about the U-Boot mailing list