aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing')
-rwxr-xr-xtools/testing/ktest/ktest.pl18
-rw-r--r--tools/testing/ktest/sample.conf6
2 files changed, 22 insertions, 2 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index dbc02de93e59..579569f57b06 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -101,6 +101,7 @@ my $sleep_time;
101my $bisect_sleep_time; 101my $bisect_sleep_time;
102my $patchcheck_sleep_time; 102my $patchcheck_sleep_time;
103my $store_failures; 103my $store_failures;
104my $test_name;
104my $timeout; 105my $timeout;
105my $booted_timeout; 106my $booted_timeout;
106my $detect_triplefault; 107my $detect_triplefault;
@@ -620,9 +621,15 @@ sub fail {
620 end_monitor; 621 end_monitor;
621 } 622 }
622 623
624 my $name = "";
625
626 if (defined($test_name)) {
627 $name = " ($test_name)";
628 }
629
623 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"; 630 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
624 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"; 631 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
625 doprint "KTEST RESULT: TEST $i Failed: ", @_, "\n"; 632 doprint "KTEST RESULT: TEST $i$name Failed: ", @_, "\n";
626 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"; 633 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
627 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"; 634 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
628 635
@@ -1130,9 +1137,15 @@ sub success {
1130 1137
1131 $successes++; 1138 $successes++;
1132 1139
1140 my $name = "";
1141
1142 if (defined($test_name)) {
1143 $name = " ($test_name)";
1144 }
1145
1133 doprint "\n\n*******************************************\n"; 1146 doprint "\n\n*******************************************\n";
1134 doprint "*******************************************\n"; 1147 doprint "*******************************************\n";
1135 doprint "KTEST RESULT: TEST $i SUCCESS!!!! **\n"; 1148 doprint "KTEST RESULT: TEST $i$name SUCCESS!!!! **\n";
1136 doprint "*******************************************\n"; 1149 doprint "*******************************************\n";
1137 doprint "*******************************************\n"; 1150 doprint "*******************************************\n";
1138 1151
@@ -2181,6 +2194,7 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
2181 $bisect_skip = set_test_option("BISECT_SKIP", $i); 2194 $bisect_skip = set_test_option("BISECT_SKIP", $i);
2182 $config_bisect_good = set_test_option("CONFIG_BISECT_GOOD", $i); 2195 $config_bisect_good = set_test_option("CONFIG_BISECT_GOOD", $i);
2183 $store_failures = set_test_option("STORE_FAILURES", $i); 2196 $store_failures = set_test_option("STORE_FAILURES", $i);
2197 $test_name = set_test_option("TEST_NAME", $i);
2184 $timeout = set_test_option("TIMEOUT", $i); 2198 $timeout = set_test_option("TIMEOUT", $i);
2185 $booted_timeout = set_test_option("BOOTED_TIMEOUT", $i); 2199 $booted_timeout = set_test_option("BOOTED_TIMEOUT", $i);
2186 $console = set_test_option("CONSOLE", $i); 2200 $console = set_test_option("CONSOLE", $i);
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf
index be531c20643d..0e5f764ac9ee 100644
--- a/tools/testing/ktest/sample.conf
+++ b/tools/testing/ktest/sample.conf
@@ -545,6 +545,12 @@
545# all preceding tests until a new CHECKOUT is set. 545# all preceding tests until a new CHECKOUT is set.
546# 546#
547# 547#
548# TEST_NAME = name
549#
550# If you want the test to have a name that is displayed in
551# the test result banner at the end of the test, then use this
552# option. This is useful to search for the RESULT keyword and
553# not have to translate a test number to a test in the config.
548# 554#
549# For TEST_TYPE = patchcheck 555# For TEST_TYPE = patchcheck
550# 556#