Module: tools
Branch: master
Commit: 3e38ebfe6bfeb32dd1db0f73dfb7964ff4ac4ae5
URL: https://source.winehq.org/git/tools.git/?a=commit;h=3e38ebfe6bfeb32dd1db0f7…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Tue Aug 20 12:08:48 2019 +0200
testbot: Remove support for TestAgent's old "skipped" lines.
TestAgent was fixed a couple of years ago so the TestBot should not have
to deal with such lines anymore.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/lib/WineTestBot/LogUtils.pm | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index b75607a..3dca2e4 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -351,16 +351,14 @@ sub ParseWineTestReport($$$)
_CheckUnit($Parser, $Cur, $1, "todo");
$Cur->{LineTodos}++;
}
- # TestLauncher's skip message is quite broken
- elsif ($Line =~ /^([_a-z0-9]+)(?:\.c)?:\d+:? Tests? skipped: / or
+ elsif ($Line =~ /^([_a-z0-9]+)\.c:\d+: Tests skipped: / or
($Cur->{Unit} ne "" and
- $Line =~ /($Cur->{Unit})(?:\.c)?:\d+:? Tests? skipped: /))
+ $Line =~ /($Cur->{Unit})\.c:\d+: Tests skipped: /))
{
my $Unit = $1;
# Don't complain and don't count misplaced skips. Only complain if they
- # are misreported (see _CloseTestUnit). Also TestLauncher uses the wrong
- # name in its skip message when skipping tests.
- if ($Unit eq $Cur->{Unit} or $Cur->{Unit} eq "" or $Unit eq $Cur->{Dll})
+ # are misreported (see _CloseTestUnit).
+ if ($Unit eq $Cur->{Unit} or $Cur->{Unit} eq "")
{
$Cur->{LineSkips}++;
}
@@ -396,9 +394,8 @@ sub ParseWineTestReport($$$)
my ($Pid, $Unit, $Todos, $Failures, $Skips) = ($1, $2, $3, $4, $5);
# Dlls that have only one test unit will run it even if there is
- # no argument. Also TestLauncher uses the wrong name in its test
- # summary line when skipping tests.
- if ($Unit eq $Cur->{Unit} or $Cur->{Unit} eq "" or $Unit eq $Cur->{Dll})
+ # no argument.
+ if ($Unit eq $Cur->{Unit} or $Cur->{Unit} eq "")
{
# There may be more than one summary line due to child processes
$Cur->{Pids}->{$Pid || 0} = 1;
Module: tools
Branch: master
Commit: 01ac22970306e3593a36c2a8b688bb9ab663d2d7
URL: https://source.winehq.org/git/tools.git/?a=commit;h=01ac22970306e3593a36c2a…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Tue Aug 20 12:08:22 2019 +0200
winetest: Add test instructions in the dissect and gather scripts.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
winetest/dissect | 6 ++++++
winetest/gather | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/winetest/dissect b/winetest/dissect
index a468812..2bd95eb 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -26,6 +26,12 @@
# where DIGIT is for resolving name clashes and data/BUILD/outdated is
# created to signal the change in the given build.
#
+# To test this script:
+# - Make sure $workdir is not set in winetest.conf
+# - Put a test report in queue/rep1/report
+# - Run ./dissect
+# - Examine the result in data/
+#
# Exit: 0 - successfully processed a report, call again
# 1 - failed to process a report, call again
# 2 - there was nothing to do
diff --git a/winetest/gather b/winetest/gather
index a894377..31ba8fa 100755
--- a/winetest/gather
+++ b/winetest/gather
@@ -25,6 +25,11 @@
# script. Races and concurrency problems must be dealt with on that higher
# level.
#
+# To test this script:
+# - Make sure $workdir is not set in winetest.conf
+# - After running dissect, run ./gather
+# - Examine the result in data/
+#
# Exit: 0 - successfully processed a build, call again
# 1 - should not happen
# 2 - there was nothing to do