Module: tools Branch: master Commit: 8ef2ef2a23be218b6f9ddd18bb201e5c4012c71a URL: https://gitlab.winehq.org/winehq/tools/-/commit/8ef2ef2a23be218b6f9ddd18bb20...
Author: Francois Gouget fgouget@codeweavers.com Date: Tue Aug 1 12:36:41 2023 +0200
winetest/build-patterns: Show a count of failure modes and test-related bugs.
---
winetest/build-patterns | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/winetest/build-patterns b/winetest/build-patterns index d541d5a2..78425ecd 100755 --- a/winetest/build-patterns +++ b/winetest/build-patterns @@ -1502,6 +1502,18 @@ EOF $tests{0}->{desc} .= "</ul>"; if (!$nolist) { + my (%failure_bugs, %all_bugs); + foreach my $test (values %tests) + { + foreach my $bug (@{$test->{bugs}}) + { + $all_bugs{$bug->{id}} = 1; + next if ($bug->{desc} =~ /(?:invalid (?:read|write)|leak|uninitialized|use after free|valgrind)/); + $failure_bugs{$bug->{id}} = 1; + } + } + $tests{0}->{desc} .= "<p>For a total of <a title='This does not count bugs for failures in the \"old\" list and potential memory issues (Valgrind)'>roughly <b>". scalar(%failure_bugs) ." failure modes</b></a> (out of ". scalar(%all_bugs) ." test related bugs).\n"; + my @table = ("<details><summary>Page customization</summary> <div class='detailsbox'><p>This section lets you select the reports to show on this page.</p><p> <label><input id='reruns' type='checkbox' checked> Hide WineTest reruns</label><br>");