mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ktest: Add TEST_TYPE install option
In testing one of my boxes, I found that I only wanted to build and install the kernel. I wanted to manually reboot the box and test it. Adding a TEST_TYPE option "install" allows this to happen. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
976d167615
commit
cd8e368f47
2 changed files with 11 additions and 3 deletions
|
@ -2929,6 +2929,13 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
|
||||||
build $build_type or next;
|
build $build_type or next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($test_type eq "install") {
|
||||||
|
get_version;
|
||||||
|
install;
|
||||||
|
success $i;
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
if ($test_type ne "build") {
|
if ($test_type ne "build") {
|
||||||
my $failed = 0;
|
my $failed = 0;
|
||||||
start_monitor_and_boot or $failed = 1;
|
start_monitor_and_boot or $failed = 1;
|
||||||
|
|
|
@ -253,9 +253,10 @@
|
||||||
|
|
||||||
# The default test type (default test)
|
# The default test type (default test)
|
||||||
# The test types may be:
|
# The test types may be:
|
||||||
# build - only build the kernel, do nothing else
|
# build - only build the kernel, do nothing else
|
||||||
# boot - build and boot the kernel
|
# install - build and install, but do nothing else (does not reboot)
|
||||||
# test - build, boot and if TEST is set, run the test script
|
# boot - build, install, and boot the kernel
|
||||||
|
# test - build, boot and if TEST is set, run the test script
|
||||||
# (If TEST is not set, it defaults back to boot)
|
# (If TEST is not set, it defaults back to boot)
|
||||||
# bisect - Perform a bisect on the kernel (see BISECT_TYPE below)
|
# bisect - Perform a bisect on the kernel (see BISECT_TYPE below)
|
||||||
# patchcheck - Do a test on a series of commits in git (see PATCHCHECK below)
|
# patchcheck - Do a test on a series of commits in git (see PATCHCHECK below)
|
||||||
|
|
Loading…
Reference in a new issue