efi_selftest: allow to select a single test for execution
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> Signed-off-by:
Alexander Graf <agraf@suse.de>
Showing
- cmd/bootefi.c 36 additions, 1 deletioncmd/bootefi.c
- include/efi_selftest.h 12 additions, 0 deletionsinclude/efi_selftest.h
- lib/efi_selftest/efi_selftest.c 80 additions, 8 deletionslib/efi_selftest/efi_selftest.c
- lib/efi_selftest/efi_selftest_console.c 10 additions, 0 deletionslib/efi_selftest/efi_selftest_console.c
- lib/efi_selftest/efi_selftest_util.c 9 additions, 0 deletionslib/efi_selftest/efi_selftest_util.c
Loading
Please register or sign in to comment