[ROSTESTS]

- Add CRT tests to build
See issue #7155 for more details.

svn path=/trunk/; revision=56822
This commit is contained in:
Thomas Faber 2012-07-04 17:04:44 +00:00
parent e7528e02d2
commit f2f1135505
7 changed files with 17 additions and 42 deletions

View file

@ -2,7 +2,7 @@
add_library(apitest apitest.c)
add_subdirectory(advapi32)
#add_subdirectory(crt)
add_subdirectory(crt)
add_subdirectory(dciman32)
add_subdirectory(gdi32)
add_subdirectory(kernel32)

View file

@ -1,6 +1,4 @@
spec2def(msvcrt_mini.dll msvcrt_mini.spec ADD_IMPORTLIB)
remove_definitions(-D_DLL -D__USE_CRTIMP)
include(ntdll_crt_apitest.cmake)
include(crtdll_crt_apitest.cmake)
include(msvcrt_crt_apitest.cmake)

View file

@ -554,8 +554,8 @@ endif()
add_executable(crtdll_crt_apitest testlist.c ${SOURCE_CRTDLL})
add_target_compile_definitions(crtdll_crt_apitest _DLL __USE_CRTIMP)
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_mini kernel32)
add_importlibs(crtdll_crt_apitest crtdll msvcrt kernel32 ntdll)
add_cd_file(TARGET crtdll_crt_apitest DESTINATION reactos/bin FOR all)

View file

@ -1370,15 +1370,17 @@ elseif (ARCH MATCHES amd64)
)
endif()
# Startup code doesn't go together well with the static CRT... too much __imp_
#add_executable(static_crt_apitest testlist.c ${SOURCE_MSVCRT})
#target_link_libraries(static_crt_apitest wine ${PSEH_LIB} crt msvcrtex wine)
#add_target_compile_definitions(static_crt_apitest TEST_STATIC_CRT)
#target_link_libraries(static_crt_apitest ${PSEH_LIB} crt wine)
#set_module_type(static_crt_apitest win32cui)
#add_importlibs(static_crt_apitest kernel32)
#add_importlibs(static_crt_apitest kernel32 ntdll)
#add_cd_file(TARGET static_crt_apitest DESTINATION reactos/bin FOR all)
add_executable(msvcrt_crt_apitest testlist.c ${SOURCE_MSVCRT})
add_target_compile_definitions(msvcrt_crt_apitest _DLL __USE_CRTIMP)
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)
add_importlibs(msvcrt_crt_apitest msvcrt kernel32 ntdll)
add_cd_file(TARGET msvcrt_crt_apitest DESTINATION reactos/bin FOR all)

View file

@ -1,30 +0,0 @@
@ cdecl fputs(str ptr) MSVCRT.fputs
@ extern _iob MSVCRT._iob
@ varargs fprintf(ptr str) MSVCRT.fprintf
@ cdecl vfprintf(ptr str ptr) MSVCRT.vfprintf
@ cdecl fflush(ptr) MSVCRT.fflush
@ cdecl setvbuf(ptr str long long) MSVCRT.setvbuf
@ cdecl _strdup(str) MSVCRT._strdup
@ cdecl __getmainargs(ptr ptr ptr long ptr) MSVCRT.__getmainargs
@ cdecl __setusermatherr(ptr) MSVCRT.__setusermatherr
@ cdecl _amsg_exit(long) MSVCRT._amsg_exit
@ cdecl __set_app_type(long) MSVCRT.__set_app_type
@ extern _fmode MSVCRT._fmode
@ cdecl _initterm(ptr ptr) MSVCRT._initterm
@ extern _acmdln MSVCRT._acmdln
@ cdecl signal(long long) MSVCRT.signal
@ cdecl _fpreset() MSVCRT._fpreset
@ cdecl _onexit(ptr) MSVCRT._onexit
@ cdecl __dllonexit(ptr ptr ptr) MSVCRT.__dllonexit
@ cdecl _unlock(long) MSVCRT._unlock
@ cdecl abort() MSVCRT.abort
@ cdecl calloc(long long) MSVCRT.calloc
@ cdecl malloc(long) MSVCRT.malloc
@ extern __initenv MSVCRT.__initenv
@ cdecl _cexit() MSVCRT._cexit
@ extern _winmajor MSVCRT._winmajor
@ cdecl __lconv_init() MSVCRT.__lconv_init
@ cdecl _lock(long) MSVCRT._lock
@ cdecl free(ptr) MSVCRT.free
@ cdecl exit(long) MSVCRT.exit

View file

@ -153,9 +153,9 @@ endif()
add_executable(ntdll_crt_apitest testlist.c ${SOURCE_NTDLL})
add_target_compile_definitions(ntdll_crt_apitest _DLL __USE_CRTIMP)
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_mini kernel32)
add_importlibs(ntdll_crt_apitest ntdll msvcrt kernel32)
add_cd_file(TARGET ntdll_crt_apitest DESTINATION reactos/bin FOR all)

View file

@ -10,8 +10,13 @@ extern void func_strcpy(void);
const struct test winetest_testlist[] =
{
{ "strcpy", func_strcpy },
#if defined(TEST_CRTDLL) || defined(TEST_MSVCRT)
#if defined(TEST_CRTDLL) || defined(TEST_MSVCRT) || defined(TEST_STATIC_CRT)
// ...
#endif
#if defined(TEST_STATIC_CRT) || defined(TEST_MSVCRT)
// ...
#endif
#if defined(TEST_STATIC_CRT)
#elif defined(TEST_MSVCRT)
#elif defined(TEST_NTDLL)
#elif defined(TEST_CRTDLL)