Commit Graph

155 Commits

Author SHA1 Message Date
Francois Gouget f932fb327a winetest: Fix the path to the ntoskrnl.exe/tests source.
It's the only test with a .exe extension for which the source is not in
programs!

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-29 23:37:45 +02:00
Francois Gouget 5549ad21b3 winetest: Trace skipped dlls when in exclude (-n) mode.
When the command line specifies the list of tests to run, tracing all
the skipped dlls unnecessarily spams the test output.
But when the command line contains the list of (at most 64) excluded
dlls, tracing them ensures tools analysing the report know why the
corresponding dlls were skipped.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 10:53:11 +02:00
Francois Gouget 55f648fac9 winetest: Clarify the 'version not present' error.
Most of the time the library is actually missing (or only available in
the wrong bitness). Show the error code to help diagnose the other
cases.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-29 18:42:47 +02:00
Francois Gouget 44222dc9f2 winetest: Detect and report the missing side-by-side version errors.
This replaces the 'load error 14001' error message with a clearer 'dll
is missing' information message.

Signed-off-by: Francois Gouget <fgouget@icodeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-29 18:42:47 +02:00
Francois Gouget 12cfe68267 winetest: Remove the obsolete revision placeholder.
Back in the CVS days the start line contained the revision of the test
file. But it has been replaced by a placeholder since the switch to
Git.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-24 20:49:33 +01:00
Francois Gouget 100b81e8a8 winetest: Don't parse the test list if 'test --list' failed.
Any non-zero exit code is grounds for ignoring the 'test --list'
output.
This also causes get_subtests() to return the actual process exit code
rather than a generic internal error when it fails to parse the test
list.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-16 10:47:02 +01:00
Francois Gouget e618fb526d winetest: Fix detecting whether a test can be run or not.
Rather than second-guessing the loader, run 'test.exe --list' with the
critical-error handler message box disabled and use the resulting exit
codes.
But keep the activation context and COM code to improve the chances of
getting the dll version.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45032
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50783
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-16 10:46:56 +01:00
Francois Gouget 18c12c6dbb winetest: Show more detailed version error information.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-15 22:22:19 +01:00
Francois Gouget 21e9d51b36 winetest: Simplify the 'dll is native' error message.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-15 22:22:19 +01:00
Francois Gouget e9a0eeff41 winetest: Avoid duplicating the extract_test_proc() cleanup code.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-10 19:01:38 +01:00
André Hentschel c0e3a265b5 winetest: Remove support for PPC32.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-17 16:46:14 +02:00
Michael Stefaniuc 8576d5ad84 winetest: Remove superfluous cast to self.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-11 21:51:28 +01:00
Alexandre Julliard ed6a5e97e0 programs: Make all program entrypoints cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-17 17:05:47 +02:00
Alexandre Julliard 15c4352f4c winetest: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-02 11:08:17 +02:00
Alexandre Julliard 3a02bc2ecd winetest: Also check for builtin dll signature.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-22 19:48:26 +02:00
Francois Gouget 7f37fc1360 winetest: Tweak the wording of an error message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-11 15:54:06 +01:00
Michael Stefaniuc 0b788e9a72 winetest: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:44:12 +02:00
Francois Gouget 9b1431459d winetest: Don't show dll=skipped messages for skipped tests.
This spams the report when using WineTest to run a few tests.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-20 11:22:55 +02:00
Alexandre Julliard 8e3d381419 winetest: Don't require a tag or email address when only running a few tests.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-27 19:12:23 +02:00
Francois Gouget 873eace6e4 wine/test.h: Identify the process responsible for test summary lines.
Currently the child process summary lines are indistinguishable from the
main process one. This makes it impossible to automatically detect
when a process exits abruptly, i.e. without printing a summary line,
if it has run a subprocess.

This will let analysis tools identify which summary lines correspond to
processes they started and thus when some are missing.  Note also that
in case of a crash the 'unhandled exception' play the same role as the
test summary lines. Thus it is important to also tag them with the pid
of the source process.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-22 16:45:22 +01:00
Francois Gouget a83c650362 winetest: Allow sending the report to another server.
This makes it possible to send the reports to both the official server
and a test server.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 22:15:02 +01:00
Francois Gouget 548b650e8a winetest: Explain why the source filename is printed.
It is used by analysis tools like test.winehq.org to link to the
relevant test source file.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-10 21:32:03 +01:00
Francois Gouget 8e14f1f79a winetest: There is no special directory anymore.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-10 21:31:50 +01:00
Francois Gouget 7bc46c15ef winetest: Flush the report file to disk between each test.
Should Windows crash, this makes it easier to know which test is
responsible.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-08 17:00:04 +01:00
Akihiro Sagawa c908c9c7c9 winetest: Add SystemPreferredUILanguages to the log.
A few GDI functions are affected by System account's display
language (by GetSystemPreferredUILanguages).
2015-06-25 14:29:39 +09:00
Alistair Leslie-Hughes 8885a4a2b9 winetest: Skip over stub dll if detected. 2014-12-03 21:34:26 +01:00
André Hentschel 6d498018cc winetest: Detect real version values. 2014-10-08 20:06:00 +02:00
Frédéric Delanoy a2473d2985 winetest: Constify a character string. 2013-12-20 10:51:11 +01:00
Frédéric Delanoy 3e5fecc6a4 winetest: Use BOOL type where appropriate. 2013-10-14 10:44:52 +02:00
André Hentschel 010399a3f7 winetest: Report number of failures in more places. 2013-06-03 11:28:28 +02:00
André Hentschel e7bdde3601 winetest: Remove SPARC support. 2013-03-05 11:00:52 +01:00
Francois Gouget f704803c96 winetest: Trace the time it takes to run each test. 2013-02-15 16:48:50 +01:00
André Hentschel fcc204c989 winetest: Add ARM64 support. 2013-01-16 12:53:47 +01:00
Marcus Meissner a89f877fd3 winetest: Close filehandle on run error (Coverity). 2012-10-10 10:36:11 +02:00
André Hentschel f5375256d0 winetest: Report actual number of failures in the statusbar. 2012-10-09 18:32:26 +02:00
Michael Stefaniuc 74ab51dc3d winetest: Remove an unused struct field. 2012-08-31 09:54:51 +02:00
Alexandre Julliard 7175324992 winetest: Avoid Unicode macros. 2012-01-19 21:08:56 +01:00
Francois Gouget 49a545685c winetest: Also log the current thread and default user UI languages. 2011-09-15 15:41:41 +02:00
Jacek Caban b06358ecd4 winetest: Include language settings in OS info. 2011-07-29 15:33:46 +02:00
Alexandre Julliard 9f72d1959f winetest: Cowardly refuse to submit results that have too many failed tests. 2011-04-22 17:51:13 +02:00
André Hentschel 71af7f1ffa winetest: Remove Alpha support. 2011-04-20 13:09:33 +02:00
Greg Geldorp e26b3a21c3 winetest: Include account level info in the report. 2011-01-10 10:56:04 +01:00
Alexandre Julliard 5b202367d5 winetest: Refuse to run if the WoW64 side of the registry is missing. 2010-12-27 15:39:36 +01:00
Jacek Caban a3217c8923 winetest: Make win9x unsupported.
It's still possible to run tests with this patch, but results won't be 
submitted.
2010-12-17 13:26:01 +01:00
Alexandre Julliard 6d8a19def4 winetest: Sill output an entry for a dll when it's skipped entirely. 2010-12-10 12:13:41 +01:00
Alexandre Julliard 17e2cbd4dc winetest: Fix filtering of whole dll when individual tests are excluded. 2010-12-10 12:13:15 +01:00
Francois Gouget d9dcafab91 winetest: Allow submitting the results if not too many tests have been skipped.
Currently the limit is set at 10 tests or subtests.
2010-12-09 17:13:34 +01:00
Francois Gouget aa424f8159 winetest: Add a trace in the log when skipping a subtest. 2010-12-09 17:13:21 +01:00
Greg Geldorp 5d7cc36dd9 winetest: Add "-u" command line option so TestBot can include a URL in the report. 2010-11-23 14:16:22 +01:00
Francois Gouget 8f6f35e13b winetest: Add the '-i' option so one can specify a test environment description. 2010-09-29 10:04:28 +02:00