efi_selftest: add a test for ResetSystem()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 20 Aug 2020 10:16:54 +0000 (12:16 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 24 Aug 2020 14:37:53 +0000 (16:37 +0200)
commitc06867d7f8f64606a16ce45e8ac07fdc3ace4f13
tree47d64914d4ea65b87b50a4154bbe9c4040b7427e
parentf03a879d67261b587a88e8e475596c1bbe7e6111
efi_selftest: add a test for ResetSystem()

The unit test will reset the system by calling the ResetSystem() runtime
service before or after ExitBootServices() according to the users choice
by setting environment variable efi_selftest to:

* 'reset system' or
* 'reset system runtime'.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/Makefile
lib/efi_selftest/efi_selftest_reset.c [new file with mode: 0644]