selftests/kexec: check kexec_load and kexec_file_load are enabled
authorMimi Zohar <zohar@linux.ibm.com>
Tue, 12 Mar 2019 18:53:54 +0000 (14:53 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 17 Apr 2019 21:32:34 +0000 (15:32 -0600)
commit7cea0b9227dcfd632fea1ee6a89f279da64fdd9d
tree978b7e274bc42d6776daaf1b57de54cfc2ac816b
parenta4df92adcacdee9c21a076cfda41194621939a59
selftests/kexec: check kexec_load and kexec_file_load are enabled

Skip the kexec_load and kexec_file_load tests, if they aren't configured
in the kernel.  This change adds a new requirement that ikconfig is
configured in the kexec_load test.

Suggested-by: Dave Young <dyoung@redhat.com>
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/test_kexec_file_load.sh
tools/testing/selftests/kexec/test_kexec_load.sh