tools/winetest gather
Jeremy Newman
jnewman at wine.codeweavers.com
Thu Aug 23 10:08:35 CDT 2007
ChangeSet ID: 31337
CVSROOT: /opt/cvs-commit
Module name: tools
Changes by: jnewman at winehq.org 2007/08/23 10:08:35
Modified files:
winetest : gather
Log message:
Paul Vriens <paul.vriens.wine at gmail.com>
Show the dll information on the results page
Patch: http://cvs.winehq.org/patch.py?id=31337
Old revision New revision Changes Path
1.29 1.30 +21 -2 tools/winetest/gather
Index: tools/winetest/gather
diff -u -p tools/winetest/gather:1.29 tools/winetest/gather:1.30
--- tools/winetest/gather:1.29 23 Aug 2007 15: 8:35 -0000
+++ tools/winetest/gather 23 Aug 2007 15: 8:35 -0000
@@ -182,12 +182,22 @@ foreach (@groups) {
$header .= " <th><a href=\"#$_->{name}\">$_->{name}<br><small>$testnum reports</small></a></th>\n";
} else {
my $test = $_->{tests}->[0];
- $header .= <<"EOF";
+ # If dllinfo.txt exist we use a different layout (new style report)
+ if (-r "$datadir/$build/$test->{dir}/dllinfo.txt") {
+ $header .= <<"EOF";
+ <th>$_->{name}<br><small>
+ <a href=\"$test->{dir}/version.txt\">$test->{tag}</a><br>
+ <a href=\"$test->{dir}/dllinfo.txt\">[info]</a>
+ <a href=\"$test->{dir}/report\">[file]</a></small></th>
+EOF
+ } else {
+ $header .= <<"EOF";
<th>$_->{name}<br><small>
<a href=\"$test->{dir}/build.txt\">$test->{tag}</a><br>
<a href=\"$test->{dir}/version.txt\">[info]</a>
<a href=\"$test->{dir}/report\">[file]</a></small></th>
EOF
+ }
}
}
}
@@ -339,11 +349,20 @@ foreach my $group (@groups) {
$header = "";
foreach (@{$group->{tests}}) {
- $header .= <<"EOF";
+ # If dllinfo.txt exist we use a different layout (new style report)
+ if (-r "$datadir/$build/$_->{dir}/dllinfo.txt") {
+ $header .= <<"EOF";
+ <th><small><a href=\"$_->{dir}/version.txt\">$_->{tag}</a><br>
+ <a href=\"$_->{dir}/dllinfo.txt\">[info]</a>
+ <a href=\"$_->{dir}/report\">[file]</a></small></th>
+EOF
+ } else {
+ $header .= <<"EOF";
<th><small><a href=\"$_->{dir}/build.txt\">$_->{tag}</a><br>
<a href=\"$_->{dir}/version.txt\">[info]</a>
<a href=\"$_->{dir}/report\">[file]</a></small></th>
EOF
+ }
}
chop $header;
More information about the wine-cvs
mailing list