Test module type support
[reactos.git] / reactos / tools / rbuild / rbuild.txt
index 74ae806..1b21fea 100644 (file)
@@ -123,7 +123,7 @@ Value:
        None.\r
 \r
 Elements:\r
-       bootstrap, define, dependency, directory, file, if, importlibrary, include, invoke, library, property.\r
+       bootstrap, component, define, dependency, directory, file, if, importlibrary, include, invoke, library, property.\r
 \r
 \r
 Module types\r
@@ -137,10 +137,12 @@ The module type determines the actions that is to be carried out to process the
        kernelmodedriver - Builds a kernel-mode driver. Default extension is .sys. Default entrypoint is _DriverEntry@8.\r
        nativedll - Builds a native DLL. Default extension is .dll. Default entrypoint is _DllMainCRTStartup@12.\r
        win32dll - Builds a Win32 DLL. Default extension is .dll. Default entrypoint is _DllMain@12.\r
+       win32cui - Builds a Win32 console executable. Default extension is .exe. Default entrypoint is _mainCRTStartup. The baseaddress module attribute is not applicable for this module type.\r
        win32gui - Builds a Win32 GUI executable. Default extension is .exe. Default entrypoint is _WinMainCRTStartup. The baseaddress module attribute is not applicable for this module type.\r
        bootloader - Builds a bootloader. The entrypoint, baseaddress, and mangledsymbols module attributes are not applicable for this module type.\r
        bootsector - Builds one or more bootsector binaries. The entrypoint, baseaddress, and mangledsymbols module attributes are not applicable for this module type.\r
        iso - Builds a bootable CD. The entrypoint, baseaddress, and mangledsymbols module attributes are not applicable for this module type.\r
+       test - Builds a testsuite. Default extension is .exe. Default entrypoint is _mainCRTStartup. The baseaddress module attribute is not applicable for this module type.\r
 \r
 \r
 Bootstrap element\r
@@ -179,6 +181,42 @@ Elements:
        None.\r
 \r
 \r
+Component element\r
+-----------------\r
+A component element specifies that imports from a library are to be stubbed so tests can be run without actually calling the functions in the library. This element can only be used for modules of type test.\r
+\r
+Syntax:\r
+       <component name="ntdll.dll">\r
+               ...\r
+       </component>\r
+\r
+Attributes:\r
+       name - Name of library.\r
+\r
+Value:\r
+       None.\r
+\r
+Elements:\r
+       Symbol.\r
+\r
+\r
+Symbol element\r
+--------------\r
+A symbol element specifies an imported function from a library that is to be stubbed so tests can be run without actually calling the function in the library.\r
+\r
+Syntax:\r
+       <symbol newname="RtlAllocateHeap">HeapAlloc@12</symbol>\r
+\r
+Attributes:\r
+       newname - New name of symbol. This attribute is optional.\r
+\r
+Value:\r
+       Name of symbol.\r
+\r
+Elements:\r
+       None.\r
+\r
+\r
 Define element\r
 --------------\r
 A define element specifies the name and (optionally) value of a define for the C/C++ compiler and resource compiler.\r