[PATCH v3 0/3] test: test UEFI boot manager

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Tue Mar 22 21:58:04 CET 2022

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"
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


More information about the U-Boot mailing list