mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
![]() Write an API-Test for localspl.dll. As the original localspl.dll from Windows Server 2003 relies on proper initialization inside spoolsv.exe, we cannot test it standalone as usual. To make testing possible anyway, this program basically does four things: - Injecting our testing code into spoolsv.exe. - Registering and running us as a service in the SYSTEM security context like spoolsv.exe, so that injection is possible at all. - Sending the test name and receiving the console output over named pipes. - Redirecting the received console output to stdout again, so it looks and feels like a standard API-Test. Nevertheless, the testing code in fpEnumPrinters.c is still written like a usual test. The known ok(), skip(), etc. macros can be used as usual, their output is just redirected through the named pipes. Thanks to Thomas for giving me the tip about injecting code into spoolsv! :) svn path=/branches/colins-printing-for-freedom/; revision=68080 |
||
---|---|---|
.. | ||
apitests | ||
dibtests | ||
drivers | ||
dxtest | ||
kmtests | ||
regtests | ||
rosautotest | ||
testdata | ||
tests | ||
win32 | ||
winetests | ||
.gitignore | ||
CMakeLists.txt | ||
COPYING | ||
readme.txt |
==================== ReactOS Tests ==================== This directory contains various tests for ReactOS. Make sure you also have a copy of the rest of the ReactOS source before you attempt to build anything in this module. It is to be placed under "modules" subdirectory of a trunk checkout. No additional changes to build files are necessary, it'll be picked up automatically. To include "rostests" in your build folder: 1. Copy the rostests folder into the reactos\modules folder, or 2. Link reactos/modules/rostests to rostests # For Windows users cd %%_ROSSOURCEDIR%%\reactos\modules mklink /j rostests %%_ROSSOURCEDIR%%\rostests # For UNIX users cd \$$_ROSSOURCEDIR/reactos/modules ln -s \$$_ROSSOURCEDIR/rostests rostests