mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[REACTOS]: Add a "testdata" subdirectory in %SystemRoot%\bin\ where you can put all needed extra files for the tests. In addition, all the files present in your rostests\testdata local directory of your working copy are also copied into %SystemRoot%\bin\testdata .
svn path=/trunk/; revision=67442
This commit is contained in:
@@ -171,7 +171,7 @@ macro(dir_to_num dir var)
|
||||
set(${var} 6)
|
||||
elseif(${dir} STREQUAL reactos/bin)
|
||||
set(${var} 7)
|
||||
elseif(${dir} STREQUAL reactos/bin/data)
|
||||
elseif(${dir} STREQUAL reactos/bin/testdata)
|
||||
set(${var} 8)
|
||||
elseif(${dir} STREQUAL reactos/media)
|
||||
set(${var} 9)
|
||||
|
||||
@@ -12,4 +12,13 @@ add_subdirectory(tests)
|
||||
#add_subdirectory(win32)
|
||||
add_subdirectory(winetests)
|
||||
|
||||
|
||||
## Extra files needed for the various tests can be added into the "testdata" subdirectory.
|
||||
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 regtest)
|
||||
endforeach(item)
|
||||
endif()
|
||||
|
||||
end_module_group()
|
||||
|
||||
@@ -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/data FOR all)
|
||||
add_cd_file(TARGET CmdLineUtil DESTINATION reactos/bin/testdata FOR all)
|
||||
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
This directory contains all the extra files needed for the various tests to run.
|
||||
They are copied into the subdirectory %SystemRoot%\bin\testdata.
|
||||
Reference in New Issue
Block a user