+2007-07-04 Adam Roben <aroben@apple.com>
+
+ Add --skipped-only option to run-webkit-tests
+
+ When this option is specified, only those tests listed in the Skipped
+ file are run.
+
+ Reviewed by Mark.
+
+ * Scripts/run-webkit-tests:
+
2007-07-04 Adam Roben <aroben@apple.com>
Clean up/alphabetize the run-webkit-tests help message
my $report10Slowest = 0;
my $resetResults = 0;
my $showHelp = 0;
+my $skippedOnly = 0;
my $testsPerDumpTool = 1000;
my $testHTTP = 1;
my $testOnlySVGs = '';
-o|--results-directory Output results directory (default: $testResultsDirectory)
--root Path to root tools build
-1|--singly Isolate each test case run (implies --verbose)
+ --skipped-only Run only those tests listed in the Skipped file
--slowest Report the 10 slowest tests
--strict Do a comparison with the output on Mac (Qt only)
--[no-]strip-editing-callbacks Remove editing callbacks from expected results
'results-directory|o=s' => \$testResultsDirectory,
'singly|1' => sub { $testsPerDumpTool = 1; },
'nthly=i' => \$testsPerDumpTool,
+ 'skipped-only' => \$skippedOnly,
'slowest' => \$report10Slowest,
'svg' => \$testOnlySVGs,
'threaded|t' => \$threaded,
exit 1;
}
+!$skippedOnly || @ARGV == 0 or die "--skipped-only cannot be used when tests are specified on the command line.";
+
setConfiguration($configuration);
my $configurationOption = "--" . lc($configuration);
}
if (open SKIPPED, "<", "$platformTestDirectory/Skipped") {
- if ($verbose) {
+ if ($verbose && !$skippedOnly) {
print "Skipped tests:\n";
}
while (<SKIPPED>) {
$skipped =~ s/^ +//;
$skipped =~ s/ +$//;
if ($skipped && $skipped !~ /^#/) {
- if($verbose) {
- print " $skipped\n";
+ if ($skippedOnly) {
+ push(@ARGV, $skipped);
+ } else {
+ if ($verbose) {
+ print " $skipped\n";
+ }
+ processIgnoreTests($skipped);
}
- processIgnoreTests($skipped);
}
}
close SKIPPED;