public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v3 0/3] test: test UEFI boot manager
@ 2022-03-22 20:58 Heinrich Schuchardt
  2022-03-22 20:58 ` [PATCH v3 1/3] efi_loader: nocolor command line attr for initrddump.efi Heinrich Schuchardt
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Heinrich Schuchardt @ 2022-03-22 20:58 UTC (permalink / raw)
  To: u-boot; +Cc: AKASHI Takahiro, Ilias Apalodimas, Heinrich Schuchardt

A unit test for the boot manager is provided.

In the test a disk images is prepared and bound as device in the sandbox.
intrddump.efi is run as boot binary. The CRC32 of the initrd image
presented via the EFI_LOAD_FILE2_PROTOCOL is checked.

The initrddump.efi application is adjusted to better fit into the Python
test framework.

The unit test patch was dropped when merging the series
"[PATCH v2 0/9] efi_loader: booting via short-form device-path"
https://lists.denx.de/pipermail/u-boot/2022-March/478410.html
due to test failures caused by initrddump.efi.

Heinrich Schuchardt (3):
  efi_loader: nocolor command line attr for initrddump.efi
  efi_loader: initrddump: drain input before prompt
  test: test UEFI boot manager

 lib/efi_loader/initrddump.c                   | 91 ++++++++++++++++---
 test/py/tests/test_efi_bootmgr/conftest.py    | 42 +++++++++
 .../test_efi_bootmgr/test_efi_bootmgr.py      | 31 +++++++
 3 files changed, 151 insertions(+), 13 deletions(-)
 create mode 100644 test/py/tests/test_efi_bootmgr/conftest.py
 create mode 100644 test/py/tests/test_efi_bootmgr/test_efi_bootmgr.py

-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-03-26  6:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-22 20:58 [PATCH v3 0/3] test: test UEFI boot manager Heinrich Schuchardt
2022-03-22 20:58 ` [PATCH v3 1/3] efi_loader: nocolor command line attr for initrddump.efi Heinrich Schuchardt
2022-03-25 14:58   ` Ilias Apalodimas
2022-03-26  6:36     ` Heinrich Schuchardt
2022-03-22 20:58 ` [PATCH v3 2/3] efi_loader: initrddump: drain input before prompt Heinrich Schuchardt
2022-03-25 14:59   ` Ilias Apalodimas
2022-03-22 20:58 ` [PATCH v3 3/3] test: test UEFI boot manager Heinrich Schuchardt
2022-03-23  6:32   ` AKASHI Takahiro
2022-03-26  6:40     ` Heinrich Schuchardt
2022-03-26  6:53     ` Heinrich Schuchardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox