diff --git a/documentation/testing.sgml b/documentation/testing.sgml
index a81ffb40a6f..254b3e7545a 100644
--- a/documentation/testing.sgml
+++ b/documentation/testing.sgml
@@ -4,7 +4,7 @@
Introduction
- With more The Windows API follows no standard, it is itself a defacto
+ With more The Windows API follows no standard, it is itself a de facto
standard, and deviations from that standard, even small ones, often
cause applications to crash or misbehave in some way. Furthermore
a conformance test suite is the most accurate (if not necessarily
@@ -173,6 +173,80 @@ thread.c: 86 tests executed, 5 marked as todo, 0 failures.
+
+ Cross-compiling the tests with MinGW
+
+ Setup of the MinGW cross-compiling environment
+
+ The most daunting problem while trying to cross-compile the Wine
+ tests is the setup of the MinGW cross-compiling environment. Here
+ are some instructions for different Linux distributions and *BSD
+ systems to help with this problem.
+
+
+ Debian GNU/Linux
+
+ On Debian all you need to do is type apt-get install
+ mingw32>.
+
+
+
+ Red Hat Linux like rpm systems
+
+ This includes Fedora Core, Red Hat Enterprise Linux, Mandrake,
+ most probably SuSE Linux too, etc. But this list isn't exhaustive;
+ the following steps should probably work on any rpm based system.
+
+
+
+ Download the mingw-binutils and mingw-gcc srpm's from
+
+ http://ftp.redhat.com/pub/contrib/libc6/SRPMS/.
+
+
+ Download the mingw srpm from
+
+ http://ftp.redhat.com/pub/contrib/libc6/noarch/SRPMS/.
+
+
+ Build the mingw and mingw-binutils rpm's (rpmbuild
+ --rebuild $SRPM>) and install them.
+
+
+ After the above step you can build the mingw-gcc rpm too.
+ Install it.
+
+
+
+
+ *BSD
+
+ The *BSD systems have in their ports collection a port for the
+ MinGW cross-compiling environment. Please see the documentation
+ of your system about how to build and install a port.
+
+
+
+
+ Compiling the tests
+
+ Having the cross-compiling environment set up the generation of the
+ Windows executables is easy by using the Wine build system.
+
+
+ If you had already run configure>, then delete
+ config.cache> and re-run configure>.
+ You can then run make crosstest>. To sum up:
+
+$ >rm config.cache>
+$ >./configure>
+$ >make crosstest>
+
+
+
+
+
+
Building and running the tests on Windows
@@ -256,34 +330,6 @@ thread.c: 86 tests executed, 5 marked as todo, 0 failures.
result of your inquiry.
-
- Cross compiling with MinGW on Linux
-
- Here is how to generate Windows executables for the tests straight
- from the comfort of Linux.
-
-
-
- First you need to get the MinGW cross-compiler. On Debian all
- you need to do is type apt-get install mingw32>.
-
-
- If you had already run configure>, then delete
- config.cache> and re-run configure>.
- You can then run make crosstest>. To sum up:
-
-$ >rm config.cache>
-$ >./configure>
-$ >make crosstest>
-
-
-
- If you get an error when compiling winsock.h> then
- you probably need to apply the following patch:
- http://www.winehq.org/hypermail/wine-patches/2002/12/0157.html>
-
-
-