Difference between revisions of "Build winetests"

From ReactOS Wiki
Jump to: navigation, search
(some wikification)
(Building)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Introduction: Wine..what?==
+
'''Winetests''' are a set of [[Wikipedia:Windows API|API]] tests to check that the ReactOS implementations behave in the same way that Microsoft APIs do. APIs are predefined functions which Windows provides,so applications can use them directly. APIs are grouped in .DLL files.
Winetests is a set of API tests to check that our API Opensource implementation behaves in the same way that Microsoft APIs does.
 
What is an API? [http://en.wikipedia.org/wiki/Windows_API Here].
 
APIs are predefined functions which Windows provides,so Apps can use them directly.APIs are grouped in .DLL files.
 
  
==Downloading...==
+
== Downloading ==
  
First you have to checkout(download) the '''Rostest''' folder from our SVN.  
+
First you have to checkout (download) the ''rostests'' folder from the SVN. The rostests folder is not automatically downloaded when you checkout ReactOS code because it is not a branch of ReactOS trunk. Despite downloading the ReactOS trunk code, you will surely need to checkout rostests too.
The Rostest folder isnt automatically downloaded when you checkout ReactOS code because it is not a  
 
branch of ReactOS trunk. So despite that you have downloaded ReactOS trunk code, you will surely need to checkout '''Rostest''' too.
 
  
===...with RosBE===
+
=== Using RosBE ===
  
# Open RosBE.
+
# Check the prompt is pointing to your local trunk (<tt>C:\Path\to\reactos\source</tt>)
# Check the prompt is pointing to your local trunk ( C:\your\Path\to\...\reactos\)
+
# Move to the ''modules'' directory: <code>cd modules</code>
# Move to Modules directory writting the next command: <pre>cd modules</pre>
+
# Checkout the ''rostests'' folder: <pre>svn co http://svn.reactos.org/reactos/trunk/rostests/</pre>
# Now the Prompt will be pointing to C:\your\Path\to\...\reactos\modules. Write now the next line and hit enter: <pre>svn co http://svn.reactos.org/reactos/trunk/rostests/</pre>
 
# A folder called rostests has been created inside the modules folder containing (among others) the Winetests folder.
 
  
 +
A folder called ''rostests'' will be created inside the modules folder containing (among others) the winetests folder.
  
===...with a SVN client===
+
=== Using a SVN client ===
  
 
# Checkout http://svn.reactos.org/reactos/trunk/rostests/ in any folder following your SVN client instructions.
 
# Checkout http://svn.reactos.org/reactos/trunk/rostests/ in any folder following your SVN client instructions.
# Copy the new rostests folder to \reactos\modules\
+
# Copy the new rostests folder to <tt>\reactos_source\modules\</tt>
  
==Building..==
+
== Building ==
  
===...all the Winetests===
+
=== All available winetests ===
  
# Launch RosBE
+
# Start RosBE
# Write the next command and hit enter: <pre>make</pre>
+
# at least once after downloading, Enter: <code>configure</code>
# You will find the Winetests compiled in: \output-i386\modules\rostests\winetests.
+
# Enter: <code>ninja</code>
  
 +
You will find the winetests compiled in: <tt>\output-i386\modules\rostests\winetests</tt>
  
===...a certain Winetest===
+
=== Specific winetests ===
  
# Launch RosBE
+
# Start RosBE
# If you want to build only a certain winetest (for example kernel32 winetest):<pre>make kernel32_winetest</pre>
+
# at least once after downloading, Enter: <code>configure</code>
# they'll be in \output-i386\modules\rostests\winetests.
+
# Enter a specific winetest to build
  
==Adding to the ISO image.==
+
As an example, here is how to build the kernel32 winetests:
  
If you want to include them automatically in the ISO image,
+
ninja kernel32_winetest
  
# Launch RosBE
+
They will be in <tt>\output-i386\modules\rostests\winetests</tt>.
# Write: <pre>make bootcd</pre>
+
 
# Winetests will be added inside the ISO. Install ReactOS as usually, and you will find the Winetests under '''\%windir%\bin''' by default it is C:\ReactOS\bin
+
== Adding to the ISO image ==
 +
 
 +
If you want to include them automatically in the ISO image:
 +
 
 +
# Start RosBE
 +
# Enter: <code>ninja bootcd</code>
 +
 
 +
Winetests will be added inside the ISO. Install ReactOS as usually, and you will find the Winetests under <tt>\%windir%\bin</tt> (by default it is <tt>C:\ReactOS\bin</tt>).
  
 
[[Category:Tutorial]]
 
[[Category:Tutorial]]
 
[[Category:Building]]
 
[[Category:Building]]

Latest revision as of 22:50, 12 December 2015

Winetests are a set of API tests to check that the ReactOS implementations behave in the same way that Microsoft APIs do. APIs are predefined functions which Windows provides,so applications can use them directly. APIs are grouped in .DLL files.

Downloading

First you have to checkout (download) the rostests folder from the SVN. The rostests folder is not automatically downloaded when you checkout ReactOS code because it is not a branch of ReactOS trunk. Despite downloading the ReactOS trunk code, you will surely need to checkout rostests too.

Using RosBE

  1. Check the prompt is pointing to your local trunk (C:\Path\to\reactos\source)
  2. Move to the modules directory: cd modules
  3. Checkout the rostests folder:
    svn co http://svn.reactos.org/reactos/trunk/rostests/

A folder called rostests will be created inside the modules folder containing (among others) the winetests folder.

Using a SVN client

  1. Checkout http://svn.reactos.org/reactos/trunk/rostests/ in any folder following your SVN client instructions.
  2. Copy the new rostests folder to \reactos_source\modules\

Building

All available winetests

  1. Start RosBE
  2. at least once after downloading, Enter: configure
  3. Enter: ninja

You will find the winetests compiled in: \output-i386\modules\rostests\winetests

Specific winetests

  1. Start RosBE
  2. at least once after downloading, Enter: configure
  3. Enter a specific winetest to build

As an example, here is how to build the kernel32 winetests:

ninja kernel32_winetest

They will be in \output-i386\modules\rostests\winetests.

Adding to the ISO image

If you want to include them automatically in the ISO image:

  1. Start RosBE
  2. Enter: ninja bootcd

Winetests will be added inside the ISO. Install ReactOS as usually, and you will find the Winetests under \%windir%\bin (by default it is C:\ReactOS\bin).