[Tools 6/7] winetest: Make a small tweak to dissect to add support for version 3 reports.
Francois Gouget
fgouget at free.fr
Fri Mar 14 14:03:04 CDT 2008
---
With this change dissect supports the old reports all the way to january
2006 and possibly even farther, although we don't care about anything
before january 2007 anyway. The upshot is that this will make it
possible to reprocess all the non-archived reports and thus benefit from
improved reports.
winetest/dissect | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/winetest/dissect b/winetest/dissect
index b3e9a56..82a6912 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -35,8 +35,8 @@ require "winetest.conf";
my $name0=$0;
$name0 =~ s+^.*/++;
-# We support reports version 4 and up
-my $minimum_report_version=4;
+# We support reports version 3 and up
+my $minimum_report_version=3;
# And we generate summary files version 4
my $summary_version=4;
@@ -180,6 +180,13 @@ while (<IN>) {
$failed += $4;
$skipped += $5;
print OUT;
+ } elsif (/^(.*$unit.*: (\d+) tests executed, (\d+) marked as todo, (\d+) failures?\.)\r?$/) {
+ # We find these lines in report version 3 files
+ $lines++;
+ $total += $2;
+ $todo += $3;
+ $failed += $4;
+ print OUT;
} elsif (/$dll:$unit done \((-?\d+)\)\r?$/) {
chomp; # current test ended
if ($lines==0) {
--
1.5.4.1
More information about the wine-patches
mailing list