
On 18 October 2017 at 10:13, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
Environment variable efi_selftest is passed as load options to the selftest application. It is used to select a single test to be executed.
The load options are an UTF8 string. Yet I decided to keep the name propertiy of the tests as char[] to reduce code size.
Special value 'list' displays a list of all available tests.
Tests get an on_request property. If this property is set the tests are only executed if explicitly requested.
The invocation of efi_selftest is changed to reflect that bootefi selftest with efi_selftest = 'list' will call the Exit bootservice.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
v4 remove superfluous definitions v3 split off unrelated changes to separate patches v2 use an environment variable to choose a test
cmd/bootefi.c | 37 +++++++++++++- include/efi_selftest.h | 12 +++++ lib/efi_selftest/efi_selftest.c | 88 ++++++++++++++++++++++++++++++--- lib/efi_selftest/efi_selftest_console.c | 10 ++++ lib/efi_selftest/efi_selftest_util.c | 9 ++++ 5 files changed, 149 insertions(+), 9 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org
Can you update some docs somewhere about how to run this?