[U-Boot] [PATCH 00/10] efi_loader: event services & API test
Heinrich Schuchardt
xypron.glpk at gmx.de
Fri Sep 15 08:06:09 UTC 2017
This patch series provides:
* corrections for the EFI event services
* a test framework to check the EFI API implementation
* unit tests covering the event services
The EFI selftest is written such that it could be easily turned
into a standalone EFI application. But this would require
modifying the build procedures for EFI. Objcopy cannot generate
the necessary relocations.
The unit tests are identified by entries in a linker generated
array to make them as self sufficient as possible.
A Python test case is supplied to call run the EFI tests.
Tested with Travis CI
https://travis-ci.org/xypron2/u-boot/jobs/275733784
Of all my efi_loader patches these are the first I would like
to see merged.
Simon has commented on some other patches that he misses
comments for all EFI API functions. I will add these with
a separate patch.
Heinrich Schuchardt (10):
efi_loader: allow return value in EFI_CALL
efi_selftest: provide an EFI selftest application
test/py: add a test calling the EFI selftest
efi_loader: implement queueing of the notification function
efi_loader: efi_set_timer: reset signaled state
efi_selftest: provide unit test for event services
efi_loader: implement task priority level (TPL)
efi_selftest: test task priority levels
efi_loader: notify when ExitBootServices is invoked
efi_selftest: check notification of ExitBootServices
MAINTAINERS | 5 +-
cmd/Kconfig | 2 +
cmd/bootefi.c | 25 ++-
include/efi_loader.h | 30 +++-
include/efi_selftest.h | 91 ++++++++++
lib/Makefile | 1 +
lib/efi_loader/efi_boottime.c | 83 +++++++--
lib/efi_loader/efi_console.c | 4 +-
lib/efi_selftest/Kconfig | 7 +
lib/efi_selftest/Makefile | 26 +++
lib/efi_selftest/efi_selftest.c | 219 +++++++++++++++++++++++
lib/efi_selftest/efi_selftest_console.c | 187 +++++++++++++++++++
lib/efi_selftest/efi_selftest_events.c | 195 ++++++++++++++++++++
lib/efi_selftest/efi_selftest_exitbootservices.c | 106 +++++++++++
lib/efi_selftest/efi_selftest_tpl.c | 214 ++++++++++++++++++++++
test/py/tests/test_efi_selftest.py | 24 +++
16 files changed, 1197 insertions(+), 22 deletions(-)
create mode 100644 include/efi_selftest.h
create mode 100644 lib/efi_selftest/Kconfig
create mode 100644 lib/efi_selftest/Makefile
create mode 100644 lib/efi_selftest/efi_selftest.c
create mode 100644 lib/efi_selftest/efi_selftest_console.c
create mode 100644 lib/efi_selftest/efi_selftest_events.c
create mode 100644 lib/efi_selftest/efi_selftest_exitbootservices.c
create mode 100644 lib/efi_selftest/efi_selftest_tpl.c
create mode 100644 test/py/tests/test_efi_selftest.py
--
2.11.0
More information about the U-Boot
mailing list