mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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:
parent
c6fef20f03
commit
b4ebdb1ae9
4 changed files with 13 additions and 2 deletions
|
@ -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)
|
||||
|
|
2
rostests/testdata/README.txt
vendored
Normal file
2
rostests/testdata/README.txt
vendored
Normal file
|
@ -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.
|
Loading…
Reference in a new issue