reactos/rostests/apitests
Colin Finck f2a66788f8 [LOCALSPL_APITEST]
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
2015-06-08 17:15:44 +00:00
..
advapi32 [ADVAPI32_APITESTS] 2014-10-13 18:49:09 +00:00
browseui [BROWSEUI_APITEST] 2014-09-08 01:54:29 +00:00
com [NETSHELL][COM_APITEST] 2015-04-19 22:50:25 +00:00
crt [CRT_APITEST] 2015-04-04 13:42:41 +00:00
dciman32 [CMAKE] 2014-10-17 23:29:24 +00:00
gdi32 [GDI32_APITEST] 2015-04-25 10:41:32 +00:00
include Add extra-parenthesing. 2013-09-22 19:30:00 +00:00
kernel32 [KERNEL32_APITEST] 2015-04-21 09:30:05 +00:00
localspl [LOCALSPL_APITEST] 2015-06-08 17:15:44 +00:00
msvcrt Forgot this change too. 2015-04-26 17:50:38 +00:00
ntdll [NTDLL_APITEST] 2015-04-25 15:05:36 +00:00
powrprof [POWRPROF_APITEST] 2013-09-23 21:45:58 +00:00
psapi [CMAKE] 2014-10-17 23:29:24 +00:00
setupapi [SETUPAPI_APITEST] Add tests for SetupDiInstallClassExA and SetupInstallServicesFromInfSectionEx. Brought to you by Victor Martinez with some changes by me. ROSTESTS-157 2015-03-30 21:08:47 +00:00
shell32 [CMAKE] 2014-10-17 23:29:24 +00:00
spoolss [SPOOLSS_APITEST] 2015-06-06 12:32:30 +00:00
testdata [TESTDATA] 2014-05-17 18:36:22 +00:00
user32 [WIN32K:NTUSER] 2015-04-21 10:14:12 +00:00
w32kdll [W32KNAPI] 2015-04-26 13:17:24 +00:00
w32knapi Revert r66580 and r66579. 2015-03-06 14:31:32 +00:00
winhttp [CMAKE] 2014-10-17 23:29:24 +00:00
wininet [CMAKE] 2014-10-17 23:29:24 +00:00
winprint [PRINTING] 2015-06-05 18:16:51 +00:00
winspool [WINSPOOL_APITEST] 2015-06-04 12:19:06 +00:00
ws2_32 [WS2_32_APITEST] 2015-03-14 13:41:50 +00:00
apitest.c Add DumpMem function to apitests lib for debugging purposes 2008-12-13 16:52:49 +00:00
apitest.h * Addendum to r58214. 2013-02-05 17:54:22 +00:00
CMakeLists.txt [LOCALSPL_APITEST] 2015-06-08 17:15:44 +00:00