Skip to content

Commit cd8e368

Browse files
Steven Rostedtrostedt
authored andcommitted
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>
1 parent 976d167 commit cd8e368

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎tools/testing/ktest/ktest.pl‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2929,6 +2929,13 @@ sub set_test_option {
29292929
build $build_type or next;
29302930
}
29312931

2932+
if ($test_type eq "install") {
2933+
get_version;
2934+
install;
2935+
success $i;
2936+
next;
2937+
}
2938+
29322939
if ($test_type ne "build") {
29332940
my $failed = 0;
29342941
start_monitor_and_boot or $failed = 1;

‎tools/testing/ktest/sample.conf‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,10 @@
253253

254254
# The default test type (default test)
255255
# The test types may be:
256-
# build - only build the kernel, do nothing else
257-
# boot - build and boot the kernel
258-
# test - build, boot and if TEST is set, run the test script
256+
# build - only build the kernel, do nothing else
257+
# install - build and install, but do nothing else (does not reboot)
258+
# boot - build, install, and boot the kernel
259+
# test - build, boot and if TEST is set, run the test script
259260
# (If TEST is not set, it defaults back to boot)
260261
# bisect - Perform a bisect on the kernel (see BISECT_TYPE below)
261262
# patchcheck - Do a test on a series of commits in git (see PATCHCHECK below)

0 commit comments

Comments
 (0)