selftests/kexec: define a set of common functions
authorMimi Zohar <zohar@linux.ibm.com>
Thu, 24 Jan 2019 13:57:20 +0000 (08:57 -0500)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 17 Apr 2019 21:32:02 +0000 (15:32 -0600)
commit5025b0f0fa25a0b71ae7ada96b18b6b63c24302f
treedbce97c120395501cab762e242bbab18f818caa2
parent89eba7db8ebf25f654b853776c09eb34129f2d19
selftests/kexec: define a set of common functions

Define, update and move get_secureboot_mode() to a common file for use
by other tests.

Updated to check both the efivar SecureBoot-$(UUID) and
SetupMode-$(UUID), based on Dave Young's review.

Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kexec/Makefile
tools/testing/selftests/kexec/kexec_common_lib.sh [new file with mode: 0755]
tools/testing/selftests/kexec/test_kexec_load.sh