Skip to content

Commit

Permalink
ktest: Add TEST_TYPE install option
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Oct 17, 2011
1 parent 976d167 commit cd8e368
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2929,6 +2929,13 @@ sub set_test_option {
build $build_type or next;
}

if ($test_type eq "install") {
get_version;
install;
success $i;
next;
}

if ($test_type ne "build") {
my $failed = 0;
start_monitor_and_boot or $failed = 1;
Expand Down
7 changes: 4 additions & 3 deletions tools/testing/ktest/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,10 @@

# The default test type (default test)
# The test types may be:
# build - only build the kernel, do nothing else
# boot - build and boot the kernel
# test - build, boot and if TEST is set, run the test script
# build - only build the kernel, do nothing else
# install - build and install, but do nothing else (does not reboot)
# 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)
# 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)
Expand Down

0 comments on commit cd8e368

Please sign in to comment.