Francois Gouget : winetest: Make a small tweak to dissect to add support for version 3 reports.

Alexandre Julliard julliard at winehq.org
Sat Mar 15 05:58:15 CDT 2008


Module: tools
Branch: master
Commit: 62929a058a33b539340c4e842951c2445ba48f4f
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=62929a058a33b539340c4e842951c2445ba48f4f

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Mar 14 20:03:04 2008 +0100

winetest: Make a small tweak to dissect to add support for version 3 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) {




More information about the wine-cvs mailing list