[tools] winetest/build-patterns: Show the list a test pattern is in.
Francois Gouget
fgouget at codeweavers.com
Thu Jul 1 12:25:41 CDT 2021
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
winetest/build-patterns | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/winetest/build-patterns b/winetest/build-patterns
index e3174b231..da7272e56 100755
--- a/winetest/build-patterns
+++ b/winetest/build-patterns
@@ -382,7 +382,6 @@ foreach my $build (@sortedbuilds)
$tests{$testname} = $test = {
id => $testname,
name => $testname,
- title => "<a href='tests/$testname.html'>$testname</a>",
source => $source,
};
$testsources{$source} = 1;
@@ -1236,7 +1235,13 @@ sub write_patterns_list($$$$)
my $test = $tests{$testname};
print $html "<div class='testfile' id='$test->{id}'>\n";
- print $html "<div class='updownbar'>$test->{title}";
+ my $title = $test->{title};
+ if (!$test->{title})
+ {
+ my $tooltip = $list->{title} ? " title='$list->{title}'" : "";
+ $title = "<a href='tests/$testname.html'$tooltip>$testname</a>";
+ }
+ print $html "<div class='updownbar'>$title";
print $html "<div class='ralign'>";
if ($mainpage)
{
--
2.20.1
More information about the wine-devel
mailing list