[ROSTESTS]

- Add a function "add_rostests_file" that calls both add_cd_file() and install() accordingly for regression tests.
  Use this function everywhere in rostests where add_cd_file() was used previously. This puts tests always in the right place on CD and also generates proper installation rules for them.
- Add a custom target "rostests_install" that performs an "install" on all rostests components.

This finally gives us a convenient and reliable way to copy all regression tests and their dependencies into a single directory (specified by the ROSTESTS_INSTALL environment variable).
Will be used on the WHS-Testbot to let it finally run each and every test.

CORE-12401
ONLINE-441

svn path=/trunk/; revision=73533
This commit is contained in:
Colin Finck 2017-01-13 09:24:15 +00:00
parent 6d7fcc4bab
commit da200b3a2c
181 changed files with 208 additions and 190 deletions

View file

@ -40,7 +40,6 @@ set(CMAKE_SKIP_PREPROCESSED_SOURCE_RULES TRUE)
set(CMAKE_SKIP_ASSEMBLY_SOURCE_RULES TRUE)
set(CMAKE_COLOR_MAKEFILE OFF)
#set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
set(CMAKE_SKIP_INSTALL_RULES ON)
if(NOT DEFINED NEW_STYLE_BUILD)
set(NEW_STYLE_BUILD TRUE)

View file

@ -817,3 +817,22 @@ endif()
function(add_rc_deps _target_rc)
set_source_files_properties(${_target_rc} PROPERTIES OBJECT_DEPENDS "${ARGN}")
endfunction()
add_custom_target(rostests_install COMMAND ${CMAKE_COMMAND} -DCOMPONENT=rostests -P ${CMAKE_BINARY_DIR}/cmake_install.cmake)
function(add_rostests_file)
cmake_parse_arguments(_ROSTESTS "" "SUBDIR;TARGET" "FILE" ${ARGN})
if(NOT (_ROSTESTS_TARGET OR _ROSTESTS_FILE))
message(FATAL_ERROR "You must provide a target or a file to install!")
endif()
if(NOT _ROSTESTS_FILE)
get_target_property(_ROSTESTS_FILE ${_ROSTESTS_TARGET} LOCATION_${CMAKE_BUILD_TYPE})
endif()
if(_ROSTESTS_SUBDIR)
set(_ROSTESTS_SUBDIR "/${_ROSTESTS_SUBDIR}")
endif()
add_cd_file(FILE ${_ROSTESTS_FILE} DESTINATION "reactos/bin${_ROSTESTS_SUBDIR}" FOR all)
install(FILES ${_ROSTESTS_FILE} DESTINATION "$ENV{ROSTESTS_INSTALL}${_ROSTESTS_SUBDIR}" COMPONENT rostests)
endfunction()

View file

@ -21,7 +21,7 @@ add_subdirectory(winetests)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/testdata/)
file(GLOB_RECURSE TESTDATA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/testdata/ ${CMAKE_CURRENT_SOURCE_DIR}/testdata/*)
foreach(item ${TESTDATA_FILES})
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/testdata/${item} DESTINATION reactos/bin/testdata NAME_ON_CD ${item} FOR all)
add_rostests_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/testdata/${item} SUBDIR testdata)
endforeach(item)
endif()

View file

@ -22,4 +22,4 @@ add_executable(advapi32_apitest ${SOURCE})
target_link_libraries(advapi32_apitest wine ${PSEH_LIB})
set_module_type(advapi32_apitest win32cui)
add_importlibs(advapi32_apitest advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET advapi32_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET advapi32_apitest)

View file

@ -11,4 +11,4 @@ list(APPEND SOURCE
add_executable(apphelp_apitest ${SOURCE})
set_module_type(apphelp_apitest win32cui)
add_importlibs(apphelp_apitest advapi32 userenv version shlwapi msvcrt kernel32 ntdll)
add_cd_file(TARGET apphelp_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET apphelp_apitest)

View file

@ -9,4 +9,4 @@ list(APPEND SOURCE
add_executable(appshim_apitest ${SOURCE})
set_module_type(appshim_apitest win32cui)
add_importlibs(appshim_apitest version msvcrt kernel32 ntdll)
add_cd_file(TARGET appshim_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET appshim_apitest)

View file

@ -20,4 +20,4 @@ add_executable(atl_apitest
target_link_libraries(atl_apitest wine uuid)
set_module_type(atl_apitest win32cui)
add_importlibs(atl_apitest rpcrt4 ole32 oleaut32 msimg32 gdi32 advapi32 user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET atl_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET atl_apitest)

View file

@ -18,4 +18,4 @@ add_executable(browseui_apitest ${SOURCE})
target_link_libraries(browseui_apitest uuid wine)
set_module_type(browseui_apitest win32cui)
add_importlibs(browseui_apitest shell32 ole32 shlwapi msvcrt kernel32 ntdll)
add_cd_file(TARGET browseui_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET browseui_apitest)

View file

@ -16,4 +16,4 @@ add_executable(com_apitest ${SOURCE})
target_link_libraries(com_apitest wine uuid)
set_module_type(com_apitest win32cui)
add_importlibs(com_apitest advapi32 ole32 shlwapi shell32 msvcrt kernel32 ntdll)
add_cd_file(TARGET com_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET com_apitest)

View file

@ -557,4 +557,4 @@ add_target_compile_definitions(crtdll_crt_apitest TEST_CRTDLL)
target_link_libraries(crtdll_crt_apitest wine ${PSEH_LIB})
set_module_type(crtdll_crt_apitest win32cui)
add_importlibs(crtdll_crt_apitest crtdll msvcrt kernel32 ntdll)
add_cd_file(TARGET crtdll_crt_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET crtdll_crt_apitest)

View file

@ -1378,7 +1378,7 @@ endif()
#target_link_libraries(static_crt_apitest ${PSEH_LIB} crt wine)
#set_module_type(static_crt_apitest win32cui)
#add_importlibs(static_crt_apitest kernel32 ntdll)
#add_cd_file(TARGET static_crt_apitest DESTINATION reactos/bin FOR all)
#add_rostests_file(TARGET static_crt_apitest)
#spec2def(static_crt_dll_startup.dll dll_startup.spec)
#add_library(static_crt_dll_startup SHARED
@ -1387,14 +1387,14 @@ endif()
#target_link_libraries(static_crt_dll_startup crt)
#set_module_type(static_crt_dll_startup win32dll)
#add_importlibs(static_crt_dll_startup kernel32 ntdll)
#add_cd_file(TARGET static_crt_dll_startup DESTINATION reactos/bin FOR all)
#add_rostests_file(TARGET static_crt_dll_startup)
add_executable(msvcrt_crt_apitest testlist.c ${SOURCE_MSVCRT})
add_target_compile_definitions(msvcrt_crt_apitest TEST_MSVCRT)
target_link_libraries(msvcrt_crt_apitest wine ${PSEH_LIB})
set_module_type(msvcrt_crt_apitest win32cui)
add_importlibs(msvcrt_crt_apitest msvcrt kernel32 ntdll)
add_cd_file(TARGET msvcrt_crt_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET msvcrt_crt_apitest)
spec2def(msvcrt_crt_dll_startup.dll dll_startup.spec)
add_library(msvcrt_crt_dll_startup SHARED
@ -1402,4 +1402,4 @@ add_library(msvcrt_crt_dll_startup SHARED
${CMAKE_CURRENT_BINARY_DIR}/msvcrt_crt_dll_startup.def)
set_module_type(msvcrt_crt_dll_startup win32dll)
add_importlibs(msvcrt_crt_dll_startup msvcrt kernel32 ntdll)
add_cd_file(TARGET msvcrt_crt_dll_startup DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET msvcrt_crt_dll_startup)

View file

@ -156,4 +156,4 @@ add_target_compile_definitions(ntdll_crt_apitest TEST_NTDLL)
target_link_libraries(ntdll_crt_apitest wine ${PSEH_LIB})
set_module_type(ntdll_crt_apitest win32cui)
add_importlibs(ntdll_crt_apitest ntdll msvcrt kernel32)
add_cd_file(TARGET ntdll_crt_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET ntdll_crt_apitest)

View file

@ -4,4 +4,4 @@ add_executable(dciman32_apitest DCICreatePrimary.c testlist.c)
target_link_libraries(dciman32_apitest wine)
set_module_type(dciman32_apitest win32cui)
add_importlibs(dciman32_apitest msvcrt kernel32 ntdll)
add_cd_file(TARGET dciman32_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET dciman32_apitest)

View file

@ -7,4 +7,4 @@ add_executable(dnsapi_apitest ${SOURCE})
target_link_libraries(dnsapi_apitest wine)
set_module_type(dnsapi_apitest win32cui)
add_importlibs(dnsapi_apitest ws2_32 dnsapi iphlpapi msvcrt kernel32 ntdll)
add_cd_file(TARGET dnsapi_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET dnsapi_apitest)

View file

@ -13,4 +13,4 @@ list(APPEND SOURCE
add_executable(fltlib_apitest ${SOURCE})
set_module_type(fltlib_apitest win32cui)
add_importlibs(fltlib_apitest user32 msvcrt kernel32)
add_cd_file(TARGET fltlib_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET fltlib_apitest)

View file

@ -77,4 +77,4 @@ add_executable(gdi32_apitest ${SOURCE} resource.rc)
target_link_libraries(gdi32_apitest ${PSEH_LIB} win32ksys)
set_module_type(gdi32_apitest win32cui)
add_importlibs(gdi32_apitest gdi32 user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET gdi32_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET gdi32_apitest)

View file

@ -9,4 +9,4 @@ add_executable(iphlpapi_apitest ${SOURCE})
target_link_libraries(iphlpapi_apitest wine ${PSEH_LIB})
set_module_type(iphlpapi_apitest win32cui)
add_importlibs(iphlpapi_apitest iphlpapi advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET iphlpapi_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET iphlpapi_apitest)

View file

@ -25,7 +25,7 @@ target_link_libraries(kernel32_apitest wine ${PSEH_LIB})
set_module_type(kernel32_apitest win32cui)
add_delay_importlibs(kernel32_apitest advapi32 shlwapi)
add_importlibs(kernel32_apitest msvcrt kernel32 ntdll)
add_cd_file(TARGET kernel32_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET kernel32_apitest)
list(APPEND MANIFEST_FILES
classtest.manifest
@ -34,5 +34,5 @@ list(APPEND MANIFEST_FILES
deptest.manifest)
foreach(item ${MANIFEST_FILES})
add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/${item}" DESTINATION reactos/bin FOR all)
add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/${item}")
endforeach(item)

View file

@ -10,4 +10,4 @@ add_executable(localspl_apitest ${SOURCE})
target_link_libraries(localspl_apitest wine ${PSEH_LIB})
set_module_type(localspl_apitest win32cui)
add_importlibs(localspl_apitest advapi32 winspool msvcrt kernel32 ntdll)
add_cd_file(TARGET localspl_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET localspl_apitest)

View file

@ -11,4 +11,4 @@ target_link_libraries(localspl_apitest.dll wine ${PSEH_LIB})
set_module_type(localspl_apitest.dll win32dll)
add_importlibs(localspl_apitest.dll spoolss msvcrt kernel32 ntdll)
set_target_properties(localspl_apitest.dll PROPERTIES SUFFIX "")
add_cd_file(TARGET localspl_apitest.dll DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET localspl_apitest.dll)

View file

@ -10,4 +10,4 @@ add_executable(msgina_apitest
target_link_libraries(msgina_apitest wine uuid)
set_module_type(msgina_apitest win32cui)
add_importlibs(msgina_apitest msvcrt user32 kernel32)
add_cd_file(TARGET msgina_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET msgina_apitest)

View file

@ -11,4 +11,4 @@ add_executable(msvcrt_apitest ${SOURCE})
target_link_libraries(msvcrt_apitest wine)
set_module_type(msvcrt_apitest win32cui)
add_importlibs(msvcrt_apitest msvcrt kernel32)
add_cd_file(TARGET msvcrt_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET msvcrt_apitest)

View file

@ -2,4 +2,4 @@
add_executable(CmdLineUtil CmdLineUtil.c)
set_module_type(CmdLineUtil win32gui UNICODE)
add_importlibs(CmdLineUtil msvcrt kernel32 ntdll)
add_cd_file(TARGET CmdLineUtil DESTINATION reactos/bin/testdata FOR all)
add_rostests_file(TARGET CmdLineUtil SUBDIR testdata)

View file

@ -2,4 +2,4 @@
add_executable(netshell_apitest NcIsValidConnectionName.c testlist.c)
set_module_type(netshell_apitest win32cui)
add_importlibs(netshell_apitest msvcrt kernel32)
add_cd_file(TARGET netshell_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET netshell_apitest)

View file

@ -63,4 +63,4 @@ if(NOT MSVC)
set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format")
endif()
add_cd_file(TARGET ntdll_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET ntdll_apitest)

View file

@ -4,4 +4,4 @@ add_executable(ole32_apitest initializespy.cpp testlist.c)
target_link_libraries(ole32_apitest wine uuid)
set_module_type(ole32_apitest win32cui)
add_importlibs(ole32_apitest user32 gdi32 shell32 ole32 shlwapi msvcrt kernel32)
add_cd_file(TARGET ole32_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET ole32_apitest)

View file

@ -2,4 +2,4 @@
add_executable(pefile_apitest ntoskrnl.c testlist.c)
set_module_type(pefile_apitest win32cui)
add_importlibs(pefile_apitest msvcrt kernel32)
add_cd_file(TARGET pefile_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET pefile_apitest)

View file

@ -2,4 +2,4 @@
add_executable(powrprof_apitest power.c testlist.c)
set_module_type(powrprof_apitest win32cui)
add_importlibs(powrprof_apitest advapi32 powrprof msvcrt kernel32)
add_cd_file(TARGET powrprof_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET powrprof_apitest)

View file

@ -2,4 +2,4 @@
add_executable(psapi_apitest psapi.c testlist.c)
set_module_type(psapi_apitest win32cui)
add_importlibs(psapi_apitest psapi msvcrt kernel32)
add_cd_file(TARGET psapi_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET psapi_apitest)

View file

@ -4,4 +4,4 @@ set_module_type(sdk_apitest win32cui)
target_link_libraries(sdk_apitest ${PSEH_LIB})
add_importlibs(sdk_apitest msvcrt kernel32 ntdll)
add_delay_importlibs(sdk_apitest winmm version dbghelp shlwapi sfc_os imagehlp)
add_cd_file(TARGET sdk_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET sdk_apitest)

View file

@ -8,4 +8,4 @@ list(APPEND SOURCE
add_executable(setupapi_apitest ${SOURCE})
set_module_type(setupapi_apitest win32cui)
add_importlibs(setupapi_apitest advapi32 setupapi user32 msvcrt kernel32)
add_cd_file(TARGET setupapi_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET setupapi_apitest)

View file

@ -16,4 +16,4 @@ add_executable(shell32_apitest
target_link_libraries(shell32_apitest wine uuid ${PSEH_LIB})
set_module_type(shell32_apitest win32cui)
add_importlibs(shell32_apitest user32 gdi32 shell32 ole32 oleaut32 advapi32 shlwapi msvcrt kernel32 ntdll)
add_cd_file(TARGET shell32_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET shell32_apitest)

View file

@ -11,4 +11,4 @@ add_executable(spoolss_apitest ${SOURCE})
target_link_libraries(spoolss_apitest wine ${PSEH_LIB})
set_module_type(spoolss_apitest win32cui)
add_importlibs(spoolss_apitest spoolss msvcrt kernel32 ntdll)
add_cd_file(TARGET spoolss_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET spoolss_apitest)

View file

@ -42,4 +42,4 @@ add_executable(user32_apitest ${SOURCE})
target_link_libraries(user32_apitest wine ${PSEH_LIB})
set_module_type(user32_apitest win32cui)
add_importlibs(user32_apitest advapi32 gdi32 user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET user32_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET user32_apitest)

View file

@ -2,4 +2,4 @@
add_executable(user32_dynamic_apitest load.c testlist.c)
set_module_type(user32_dynamic_apitest win32cui)
add_importlibs(user32_dynamic_apitest msvcrt kernel32)
add_cd_file(TARGET user32_dynamic_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET user32_dynamic_apitest)

View file

@ -7,4 +7,4 @@ add_executable(userenv_apitest ${SOURCE})
target_link_libraries(userenv_apitest wine ${PSEH_LIB})
set_module_type(userenv_apitest win32cui)
add_importlibs(userenv_apitest userenv advapi32 msvcrt kernel32)
add_cd_file(TARGET userenv_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET userenv_apitest)

View file

@ -11,4 +11,4 @@ add_library(win32kdll SHARED
set_module_type(win32kdll module)
add_dependencies(win32kdll psdk)
add_cd_file(TARGET win32kdll DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET win32kdll)

View file

@ -78,4 +78,4 @@ add_importlibs(win32knt_apitest
ntdll)
add_dependencies(win32knt_apitest xdk)
add_cd_file(TARGET win32knt_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET win32knt_apitest)

View file

@ -4,4 +4,4 @@ target_link_libraries(winhttp_apitest wine)
set_module_type(winhttp_apitest win32cui)
#add_delay_importlibs(winhttp_apitest winhttp)
add_importlibs(winhttp_apitest msvcrt kernel32 ntdll)
add_cd_file(TARGET winhttp_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET winhttp_apitest)

View file

@ -4,4 +4,4 @@ target_link_libraries(wininet_apitest wine)
set_module_type(wininet_apitest win32cui)
#add_delay_importlibs(wininet_apitest wininet)
add_importlibs(wininet_apitest msvcrt kernel32 ntdll)
add_cd_file(TARGET wininet_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET wininet_apitest)

View file

@ -8,4 +8,4 @@ add_executable(winprint_apitest ${SOURCE})
target_link_libraries(winprint_apitest wine ${PSEH_LIB})
set_module_type(winprint_apitest win32cui)
add_importlibs(winprint_apitest winspool msvcrt kernel32 ntdll)
add_cd_file(TARGET winprint_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET winprint_apitest)

View file

@ -13,4 +13,4 @@ add_executable(winspool_apitest ${SOURCE})
target_link_libraries(winspool_apitest wine ${PSEH_LIB})
set_module_type(winspool_apitest win32cui)
add_importlibs(winspool_apitest winspool msvcrt kernel32 ntdll)
add_cd_file(TARGET winspool_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET winspool_apitest)

View file

@ -2,4 +2,4 @@
add_executable(wlanapi_apitest wlanapi.c testlist.c)
set_module_type(wlanapi_apitest win32cui)
add_importlibs(wlanapi_apitest wlanapi msvcrt kernel32)
add_cd_file(TARGET wlanapi_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET wlanapi_apitest)

View file

@ -20,4 +20,4 @@ add_executable(ws2_32_apitest ${SOURCE})
target_link_libraries(ws2_32_apitest wine ${PSEH_LIB})
set_module_type(ws2_32_apitest win32cui)
add_importlibs(ws2_32_apitest ws2_32 msvcrt iphlpapi kernel32 ntdll)
add_cd_file(TARGET ws2_32_apitest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET ws2_32_apitest)

View file

@ -10,4 +10,4 @@ add_executable(tcpip_drvtest ${SOURCE})
target_link_libraries(tcpip_drvtest wine)
set_module_type(tcpip_drvtest win32cui)
add_importlibs(tcpip_drvtest msvcrt kernel32 ntdll)
add_cd_file(TARGET tcpip_drvtest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET tcpip_drvtest)

View file

@ -101,7 +101,7 @@ add_importlibs(kmtest_drv ntoskrnl hal)
add_dependencies(kmtest_drv bugcodes xdk)
add_target_compile_definitions(kmtest_drv KMT_KERNEL_MODE NTDDI_VERSION=NTDDI_WS03SP1)
#add_pch(kmtest_drv include/kmt_test.h)
add_cd_file(TARGET kmtest_drv DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET kmtest_drv)
add_library(kmtest_printf
kmtest_drv/printf_stubs.c
@ -141,7 +141,7 @@ add_importlibs(kmtest advapi32 ws2_32 msvcrt kernel32 ntdll)
add_target_compile_definitions(kmtest KMT_USER_MODE)
#add_pch(kmtest include/kmt_test.h)
set_target_properties(kmtest PROPERTIES OUTPUT_NAME "kmtest_")
add_cd_file(TARGET kmtest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET kmtest)
#
# Group targets

View file

@ -11,4 +11,4 @@ target_link_libraries(example_drv kmtest_printf ${PSEH_LIB})
add_importlibs(example_drv ntoskrnl hal)
add_target_compile_definitions(example_drv KMT_STANDALONE_DRIVER)
#add_pch(example_drv ../include/kmt_test.h)
add_cd_file(TARGET example_drv DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET example_drv)

View file

@ -11,4 +11,4 @@ target_link_libraries(findfile_drv kmtest_printf ${PSEH_LIB})
add_importlibs(findfile_drv ntoskrnl hal)
add_target_compile_definitions(findfile_drv KMT_STANDALONE_DRIVER)
#add_pch(findfile_drv ../include/kmt_test.h)
add_cd_file(TARGET findfile_drv DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET findfile_drv)

View file

@ -14,4 +14,4 @@ target_link_libraries(cccopyread_drv kmtest_printf ${PSEH_LIB})
add_importlibs(cccopyread_drv ntoskrnl hal)
add_target_compile_definitions(cccopyread_drv KMT_STANDALONE_DRIVER)
#add_pch(cccopyread_drv ../include/kmt_test.h)
add_cd_file(TARGET cccopyread_drv DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET cccopyread_drv)

View file

@ -14,7 +14,7 @@ target_link_libraries(iocreatefile_drv kmtest_printf ${PSEH_LIB})
add_importlibs(iocreatefile_drv ntoskrnl hal)
add_target_compile_definitions(iocreatefile_drv KMT_STANDALONE_DRIVER)
#add_pch(iocreatefile_drv ../include/kmt_test.h)
add_cd_file(TARGET iocreatefile_drv DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET iocreatefile_drv)
#
# IoDeviceObject
@ -29,7 +29,7 @@ target_link_libraries(iodeviceobject_drv kmtest_printf ${PSEH_LIB})
add_importlibs(iodeviceobject_drv ntoskrnl hal)
add_target_compile_definitions(iodeviceobject_drv KMT_STANDALONE_DRIVER)
#add_pch(iodeviceobject_drv ../include/kmt_test.h)
add_cd_file(TARGET iodeviceobject_drv DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET iodeviceobject_drv)
#
# IoHelper
@ -44,7 +44,7 @@ target_link_libraries(iohelper_drv kmtest_printf ${PSEH_LIB})
add_importlibs(iohelper_drv ntoskrnl hal)
add_target_compile_definitions(iohelper_drv KMT_STANDALONE_DRIVER)
#add_pch(iohelper_drv ../include/kmt_test.h)
add_cd_file(TARGET iohelper_drv DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET iohelper_drv)
#
# IoReadWrite
@ -59,4 +59,4 @@ target_link_libraries(ioreadwrite_drv kmtest_printf ${PSEH_LIB})
add_importlibs(ioreadwrite_drv ntoskrnl hal)
add_target_compile_definitions(ioreadwrite_drv KMT_STANDALONE_DRIVER)
#add_pch(ioreadwrite_drv ../include/kmt_test.h)
add_cd_file(TARGET ioreadwrite_drv DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET ioreadwrite_drv)

View file

@ -14,4 +14,4 @@ target_link_libraries(ntcreatesection_drv kmtest_printf ${PSEH_LIB})
add_importlibs(ntcreatesection_drv ntoskrnl hal)
add_target_compile_definitions(ntcreatesection_drv KMT_STANDALONE_DRIVER)
#add_pch(ntcreatesection_drv ../include/kmt_test.h)
add_cd_file(TARGET ntcreatesection_drv DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET ntcreatesection_drv)

View file

@ -14,4 +14,4 @@ target_link_libraries(poirp_drv kmtest_printf ${PSEH_LIB})
add_importlibs(poirp_drv ntoskrnl hal)
add_target_compile_definitions(poirp_drv KMT_STANDALONE_DRIVER)
#add_pch(poirp_drv ../include/kmt_test.h)
add_cd_file(TARGET poirp_drv DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET poirp_drv)

View file

@ -13,4 +13,4 @@ target_link_libraries(tcpip_drv kmtest_printf ${PSEH_LIB})
add_importlibs(tcpip_drv ntoskrnl hal)
add_target_compile_definitions(tcpip_drv KMT_STANDALONE_DRIVER)
#add_pch(example_drv ../include/kmt_test.h)
add_cd_file(TARGET tcpip_drv DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET tcpip_drv)

View file

@ -1,4 +1,4 @@
add_executable(np_enum np_enum.c)
set_module_type(np_enum win32cui UNICODE)
add_importlibs(np_enum msvcrt kernel32 mpr)
add_cd_file(TARGET np_enum DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET np_enum)

View file

@ -1,4 +1,4 @@
add_executable(parttest parttest.c)
set_module_type(parttest win32cui)
add_importlibs(parttest ntdll msvcrt kernel32)
add_cd_file(TARGET parttest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET parttest)

View file

@ -3,7 +3,7 @@ add_executable(pseh2_test psehtest.c psehtest2.c)
target_link_libraries(pseh2_test wine ${PSEH_LIB})
set_module_type(pseh2_test win32cui)
add_importlibs(pseh2_test msvcrt kernel32 ntdll)
add_cd_file(TARGET pseh2_test DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET pseh2_test)
if(NOT MSVC)
add_target_compile_flags(pseh2_test "-Wno-format")
@ -14,7 +14,7 @@ add_executable(pseh2_test_cpp psehtest_cpp.cpp psehtest2.c)
target_link_libraries(pseh2_test_cpp wine ${PSEH_LIB})
set_module_type(pseh2_test_cpp win32cui)
add_importlibs(pseh2_test_cpp msvcrt kernel32 ntdll)
add_cd_file(TARGET pseh2_test_cpp DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET pseh2_test_cpp)
if(NOT MSVC)
add_target_compile_flags(pseh2_test_cpp "-Wno-format")

View file

@ -8,10 +8,10 @@ add_library(MyEventProvider_dll SHARED ${CMAKE_CURRENT_BINARY_DIR}/MyEventProvid
add_dependencies(MyEventProvider_dll MyEventProvider)
set_module_type(MyEventProvider_dll module UNICODE)
set_target_properties(MyEventProvider_dll PROPERTIES OUTPUT_NAME "MyEventProvider")
add_cd_file(TARGET MyEventProvider_dll DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET MyEventProvider_dll)
add_executable(evtlogtest EvtLogTest.c)
set_module_type(evtlogtest win32cui UNICODE)
add_dependencies(evtlogtest MyEventProvider MyEventProvider_dll)
add_importlibs(evtlogtest advapi32 msvcrt kernel32)
add_cd_file(TARGET evtlogtest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET evtlogtest)

View file

@ -5,4 +5,4 @@ list(APPEND SOURCE
add_executable(tunneltest ${SOURCE})
set_module_type(tunneltest win32cui UNICODE)
add_importlibs(tunneltest msvcrt kernel32 ntdll)
add_cd_file(TARGET tunneltest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET tunneltest)

View file

@ -6,4 +6,4 @@ add_executable(notificationtest ${SOURCE})
target_link_libraries(notificationtest wine ${PSEH_LIB})
set_module_type(notificationtest win32cui)
add_importlibs(notificationtest gdi32 user32 shlwapi msvcrt kernel32 ntdll)
add_cd_file(TARGET notificationtest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET notificationtest)

View file

@ -2,4 +2,4 @@
add_executable(paintdesktop PaintDesktop.c)
set_module_type(paintdesktop win32gui UNICODE)
add_importlibs(paintdesktop user32 msvcrt kernel32)
add_cd_file(TARGET paintdesktop DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET paintdesktop)

View file

@ -7,4 +7,4 @@ add_executable(sysicon ${SOURCE})
target_link_libraries(sysicon ${PSEH_LIB})
set_module_type(sysicon win32gui UNICODE)
add_importlibs(sysicon gdi32 user32 msvcrt kernel32)
add_cd_file(TARGET sysicon DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET sysicon)

View file

@ -23,4 +23,4 @@ endif()
set_module_type(advapi32_winetest win32cui)
add_importlibs(advapi32_winetest advapi32 ole32 msvcrt kernel32 ntdll)
add_cd_file(TARGET advapi32_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET advapi32_winetest)

View file

@ -11,4 +11,4 @@ add_executable(advpack_winetest ${SOURCE})
target_link_libraries(advpack_winetest)
set_module_type(advpack_winetest win32cui)
add_importlibs(advpack_winetest advpack cabinet advapi32 msvcrt kernel32)
add_cd_file(TARGET advpack_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET advpack_winetest)

View file

@ -3,4 +3,4 @@ add_executable(amstream_winetest amstream.c testlist.c)
target_link_libraries(amstream_winetest uuid)
set_module_type(amstream_winetest win32cui)
add_importlibs(amstream_winetest ole32 user32 ddraw msvcrt kernel32)
add_cd_file(TARGET amstream_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET amstream_winetest)

View file

@ -11,4 +11,4 @@ add_executable(atl_winetest ${SOURCE})
target_link_libraries(atl_winetest wine uuid)
set_module_type(atl_winetest win32cui)
add_importlibs(atl_winetest ole32 user32 atl advapi32 msvcrt kernel32)
add_cd_file(TARGET atl_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET atl_winetest)

View file

@ -6,4 +6,4 @@ add_executable(atl100_winetest ${SOURCE})
target_link_libraries(atl100_winetest uuid)
set_module_type(atl100_winetest win32cui)
add_importlibs(atl100_winetest atl100 oleaut32 ole32 advapi32 user32 msvcrt kernel32)
add_cd_file(TARGET atl100_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET atl100_winetest)

View file

@ -5,4 +5,4 @@ add_executable(atl80_winetest ${SOURCE} atl80.rc)
target_link_libraries(atl80_winetest uuid)
set_module_type(atl80_winetest win32cui)
add_importlibs(atl80_winetest atl80 oleaut32 ole32 advapi32 user32 msvcrt kernel32)
add_cd_file(TARGET atl80_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET atl80_winetest)

View file

@ -2,4 +2,4 @@
add_executable(avifil32_winetest api.c testlist.c)
set_module_type(avifil32_winetest win32cui)
add_importlibs(avifil32_winetest avifil32 ole32 msvcrt kernel32)
add_cd_file(TARGET avifil32_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET avifil32_winetest)

View file

@ -3,4 +3,4 @@ remove_definitions(-D_WIN32_WINNT=0x502)
add_executable(bcrypt_winetest bcrypt.c testlist.c)
set_module_type(bcrypt_winetest win32cui)
add_importlibs(bcrypt_winetest bcrypt advapi32 user32 msvcrt kernel32)
add_cd_file(TARGET bcrypt_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET bcrypt_winetest)

View file

@ -3,4 +3,4 @@ add_executable(browseui_winetest autocomplete.c progressdlg.c testlist.c)
target_link_libraries(browseui_winetest uuid)
set_module_type(browseui_winetest win32cui)
add_importlibs(browseui_winetest ole32 msvcrt kernel32)
add_cd_file(TARGET browseui_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET browseui_winetest)

View file

@ -3,4 +3,4 @@ add_definitions(-DUSE_WINE_TODOS)
add_executable(cabinet_winetest extract.c fdi.c testlist.c)
set_module_type(cabinet_winetest win32cui)
add_importlibs(cabinet_winetest cabinet msvcrt kernel32)
add_cd_file(TARGET cabinet_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET cabinet_winetest)

View file

@ -2,4 +2,4 @@
add_executable(cmd_winetest batch.c testlist.c rsrc.rc)
set_module_type(cmd_winetest win32cui)
add_importlibs(cmd_winetest msvcrt kernel32)
add_cd_file(TARGET cmd_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET cmd_winetest)

View file

@ -3,4 +3,4 @@ add_executable(comcat_winetest comcat.c testlist.c)
target_link_libraries(comcat_winetest uuid)
set_module_type(comcat_winetest win32cui)
add_importlibs(comcat_winetest ole32 advapi32 msvcrt kernel32)
add_cd_file(TARGET comcat_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET comcat_winetest)

View file

@ -34,7 +34,7 @@ list(APPEND SOURCE
add_executable(comctl32_winetest ${SOURCE} rsrc.rc)
set_module_type(comctl32_winetest win32cui)
add_importlibs(comctl32_winetest comctl32 ole32 user32 gdi32 advapi32 msvcrt kernel32)
add_cd_file(TARGET comctl32_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET comctl32_winetest)
if(NOT MSVC)
# FIXME: http://www.cmake.org/Bug/view.php?id=12998

View file

@ -13,4 +13,4 @@ add_executable(comdlg32_winetest ${SOURCE} rsrc.rc)
target_link_libraries(comdlg32_winetest uuid)
set_module_type(comdlg32_winetest win32cui)
add_importlibs(comdlg32_winetest comdlg32 winspool user32 gdi32 ole32 shell32 msvcrt kernel32)
add_cd_file(TARGET comdlg32_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET comdlg32_winetest)

View file

@ -2,4 +2,4 @@
add_executable(credui_winetest credui.c testlist.c)
set_module_type(credui_winetest win32cui)
add_importlibs(credui_winetest credui msvcrt kernel32)
add_cd_file(TARGET credui_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET credui_winetest)

View file

@ -22,4 +22,4 @@ list(APPEND SOURCE
add_executable(crypt32_winetest ${SOURCE})
set_module_type(crypt32_winetest win32cui)
add_importlibs(crypt32_winetest crypt32 advapi32 user32 shlwapi shell32 msvcrt kernel32)
add_cd_file(TARGET crypt32_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET crypt32_winetest)

View file

@ -2,4 +2,4 @@
add_executable(cryptnet_winetest cryptnet.c testlist.c)
set_module_type(cryptnet_winetest win32cui)
add_importlibs(cryptnet_winetest cryptnet crypt32 msvcrt kernel32)
add_cd_file(TARGET cryptnet_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET cryptnet_winetest)

View file

@ -2,4 +2,4 @@
add_executable(cryptui_winetest cryptui.c testlist.c)
set_module_type(cryptui_winetest win32cui)
add_importlibs(cryptui_winetest cryptui crypt32 user32 msvcrt kernel32)
add_cd_file(TARGET cryptui_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET cryptui_winetest)

View file

@ -4,4 +4,4 @@ add_executable(d3drm_winetest d3drm.c vector.c testlist.c)
target_link_libraries(d3drm_winetest uuid dxguid)
set_module_type(d3drm_winetest win32cui)
add_importlibs(d3drm_winetest ddraw d3drm user32 msvcrt kernel32)
add_cd_file(TARGET d3drm_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET d3drm_winetest)

View file

@ -2,4 +2,4 @@
add_executable(devenum_winetest devenum.c testlist.c)
set_module_type(devenum_winetest win32cui)
add_importlibs(devenum_winetest oleaut32 ole32 msvcrt kernel32)
add_cd_file(TARGET devenum_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET devenum_winetest)

View file

@ -12,4 +12,4 @@ add_executable(dinput_winetest
target_link_libraries(dinput_winetest dinput_data_formats)
set_module_type(dinput_winetest win32cui)
add_importlibs(dinput_winetest dinput ole32 user32 msvcrt kernel32)
add_cd_file(TARGET dinput_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET dinput_winetest)

View file

@ -2,4 +2,4 @@
add_executable(dnsapi_winetest name.c record.c testlist.c)
set_module_type(dnsapi_winetest win32cui)
add_importlibs(dnsapi_winetest dnsapi msvcrt kernel32)
add_cd_file(TARGET dnsapi_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET dnsapi_winetest)

View file

@ -2,4 +2,4 @@
add_executable(dplayx_winetest dplayx.c testlist.c)
set_module_type(dplayx_winetest win32cui)
add_importlibs(dplayx_winetest dplayx ole32 msvcrt kernel32)
add_cd_file(TARGET dplayx_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET dplayx_winetest)

View file

@ -13,4 +13,4 @@ add_executable(dsound_winetest ${SOURCE})
target_link_libraries(dsound_winetest uuid dxguid)
set_module_type(dsound_winetest win32cui)
add_importlibs(dsound_winetest ole32 user32 msvcrt kernel32)
add_cd_file(TARGET dsound_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET dsound_winetest)

View file

@ -7,4 +7,4 @@ list(APPEND SOURCE
add_executable(dxdiagn_winetest ${SOURCE})
set_module_type(dxdiagn_winetest win32cui)
add_importlibs(dxdiagn_winetest oleaut32 ole32 msvcrt kernel32)
add_cd_file(TARGET dxdiagn_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET dxdiagn_winetest)

View file

@ -2,4 +2,4 @@
add_executable(faultrep_winetest faultrep.c testlist.c)
set_module_type(faultrep_winetest win32cui)
add_importlibs(faultrep_winetest faultrep advapi32 msvcrt kernel32)
add_cd_file(TARGET faultrep_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET faultrep_winetest)

View file

@ -11,4 +11,4 @@ list(APPEND SOURCE
add_executable(fusion_winetest ${SOURCE})
set_module_type(fusion_winetest win32cui)
add_importlibs(fusion_winetest user32 msvcrt kernel32)
add_cd_file(TARGET fusion_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET fusion_winetest)

View file

@ -26,4 +26,4 @@ if(MSVC)
add_importlibs(gdi32_winetest ntdll)
endif()
add_cd_file(TARGET gdi32_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET gdi32_winetest)

View file

@ -19,4 +19,4 @@ list(APPEND SOURCE
add_executable(gdiplus_winetest ${SOURCE})
set_module_type(gdiplus_winetest win32cui)
add_importlibs(gdiplus_winetest gdiplus user32 gdi32 ole32 msvcrt kernel32)
add_cd_file(TARGET gdiplus_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET gdiplus_winetest)

View file

@ -9,4 +9,4 @@ list(APPEND SOURCE
add_executable(hlink_winetest ${SOURCE})
set_module_type(hlink_winetest win32cui)
add_importlibs(hlink_winetest hlink ole32 msvcrt kernel32)
add_cd_file(TARGET hlink_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET hlink_winetest)

View file

@ -9,4 +9,4 @@ list(APPEND SOURCE
add_executable(imagehlp_winetest ${SOURCE})
set_module_type(imagehlp_winetest win32cui)
add_importlibs(imagehlp_winetest msvcrt kernel32)
add_cd_file(TARGET imagehlp_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET imagehlp_winetest)

View file

@ -3,4 +3,4 @@ include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
add_executable(imm32_winetest imm32.c testlist.c)
set_module_type(imm32_winetest win32cui)
add_importlibs(imm32_winetest imm32 user32 msvcrt kernel32)
add_cd_file(TARGET imm32_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET imm32_winetest)

View file

@ -9,4 +9,4 @@ list(APPEND SOURCE
add_executable(inetcomm_winetest ${SOURCE})
set_module_type(inetcomm_winetest win32cui)
add_importlibs(inetcomm_winetest inetcomm oleaut32 ole32 msvcrt kernel32)
add_cd_file(TARGET inetcomm_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET inetcomm_winetest)

View file

@ -2,4 +2,4 @@
add_executable(inetmib1_winetest main.c testlist.c)
set_module_type(inetmib1_winetest win32cui)
add_importlibs(inetmib1_winetest snmpapi msvcrt kernel32)
add_cd_file(TARGET inetmib1_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET inetmib1_winetest)

View file

@ -3,4 +3,4 @@ add_executable(iphlpapi_winetest iphlpapi.c testlist.c)
target_link_libraries(iphlpapi_winetest wine)
set_module_type(iphlpapi_winetest win32cui)
add_importlibs(iphlpapi_winetest ws2_32 msvcrt kernel32 ntdll)
add_cd_file(TARGET iphlpapi_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET iphlpapi_winetest)

View file

@ -2,4 +2,4 @@
add_executable(itss_winetest protocol.c testlist.c rsrc.rc)
set_module_type(itss_winetest win32cui)
add_importlibs(itss_winetest ole32 msvcrt kernel32)
add_cd_file(TARGET itss_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET itss_winetest)

View file

@ -21,4 +21,4 @@ set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${jscript_winetes
add_executable(jscript_winetest ${SOURCE} rsrc.rc)
set_module_type(jscript_winetest win32cui)
add_importlibs(jscript_winetest ole32 oleaut32 advapi32 msvcrt kernel32)
add_cd_file(TARGET jscript_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET jscript_winetest)

View file

@ -46,4 +46,4 @@ endif()
set_module_type(kernel32_winetest win32cui)
add_importlibs(kernel32_winetest user32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET kernel32_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET kernel32_winetest)

View file

@ -3,4 +3,4 @@ include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
add_executable(localspl_winetest localmon.c testlist.c)
set_module_type(localspl_winetest win32cui)
add_importlibs(localspl_winetest advapi32 msvcrt kernel32)
add_cd_file(TARGET localspl_winetest DESTINATION reactos/bin FOR all)
add_rostests_file(TARGET localspl_winetest)

Some files were not shown because too many files have changed in this diff Show more