[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:
Hermès Bélusca-Maïto 2015-04-26 17:47:55 +00:00
parent c6fef20f03
commit b4ebdb1ae9
4 changed files with 13 additions and 2 deletions

View file

@ -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)

View file

@ -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()

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/data FOR all)
add_cd_file(TARGET CmdLineUtil DESTINATION reactos/bin/testdata FOR all)

2
rostests/testdata/README.txt vendored Normal file
View 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.