mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 01:13:38 +00:00
f2a66788f8
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
32 lines
741 B
CMake
32 lines
741 B
CMake
include_directories(include)
|
|
|
|
add_library(apitest apitest.c)
|
|
|
|
add_subdirectory(advapi32)
|
|
add_subdirectory(browseui)
|
|
add_subdirectory(com)
|
|
add_subdirectory(crt)
|
|
add_subdirectory(dciman32)
|
|
add_subdirectory(gdi32)
|
|
if(NOT ARCH STREQUAL "amd64")
|
|
add_subdirectory(kernel32)
|
|
endif()
|
|
add_subdirectory(localspl)
|
|
add_subdirectory(msvcrt)
|
|
add_subdirectory(ntdll)
|
|
add_subdirectory(powrprof)
|
|
add_subdirectory(setupapi)
|
|
add_subdirectory(shell32)
|
|
add_subdirectory(psapi)
|
|
add_subdirectory(spoolss)
|
|
add_subdirectory(user32)
|
|
if(NOT ARCH STREQUAL "amd64")
|
|
add_subdirectory(w32kdll)
|
|
add_subdirectory(w32knapi)
|
|
endif()
|
|
add_subdirectory(winhttp)
|
|
add_subdirectory(wininet)
|
|
add_subdirectory(winprint)
|
|
add_subdirectory(winspool)
|
|
add_subdirectory(ws2_32)
|