diff options
Diffstat (limited to 'tools/testing/ktest/ktest.pl')
-rwxr-xr-x | tools/testing/ktest/ktest.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index e91702eee580..8ce58d715aef 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl | |||
@@ -173,6 +173,7 @@ my $bisect_check; | |||
173 | 173 | ||
174 | my $config_bisect; | 174 | my $config_bisect; |
175 | my $config_bisect_type; | 175 | my $config_bisect_type; |
176 | my $config_bisect_check; | ||
176 | 177 | ||
177 | my $patchcheck_type; | 178 | my $patchcheck_type; |
178 | my $patchcheck_start; | 179 | my $patchcheck_start; |
@@ -283,6 +284,7 @@ my %option_map = ( | |||
283 | 284 | ||
284 | "CONFIG_BISECT" => \$config_bisect, | 285 | "CONFIG_BISECT" => \$config_bisect, |
285 | "CONFIG_BISECT_TYPE" => \$config_bisect_type, | 286 | "CONFIG_BISECT_TYPE" => \$config_bisect_type, |
287 | "CONFIG_BISECT_CHECK" => \$config_bisect_check, | ||
286 | 288 | ||
287 | "PATCHCHECK_TYPE" => \$patchcheck_type, | 289 | "PATCHCHECK_TYPE" => \$patchcheck_type, |
288 | "PATCHCHECK_START" => \$patchcheck_start, | 290 | "PATCHCHECK_START" => \$patchcheck_start, |
@@ -2743,6 +2745,18 @@ sub config_bisect { | |||
2743 | } | 2745 | } |
2744 | } | 2746 | } |
2745 | my $ret; | 2747 | my $ret; |
2748 | |||
2749 | if (defined($config_bisect_check) && $config_bisect_check) { | ||
2750 | doprint " Checking to make sure bad config with min config fails\n"; | ||
2751 | create_config keys %config_list; | ||
2752 | $ret = run_config_bisect_test $config_bisect_type; | ||
2753 | if ($ret) { | ||
2754 | doprint " FAILED! Bad config with min config boots fine\n"; | ||
2755 | return -1; | ||
2756 | } | ||
2757 | doprint " Bad config with min config fails as expected\n"; | ||
2758 | } | ||
2759 | |||
2746 | do { | 2760 | do { |
2747 | $ret = run_config_bisect; | 2761 | $ret = run_config_bisect; |
2748 | } while (!$ret); | 2762 | } while (!$ret); |