1
0

SelfTests: Organized into solution folders.

This commit is contained in:
Mattes D 2016-03-13 18:22:35 +01:00
parent 3184433756
commit 3d164a77cb
5 changed files with 40 additions and 22 deletions

View File

@ -264,27 +264,6 @@ if (MSVC)
tolua
PROPERTIES FOLDER Support
)
if (${SELF_TEST})
set_target_properties(
Network
HTTP
PROPERTIES FOLDER Lib
)
set_target_properties(
arraystocoords-exe
ChunkBuffer
coordinates-exe
copies-exe
copyblocks-exe
creatable-exe
EchoServer
Google-exe
HTTPMessageParser_file-exe
LoadablePieces
NameLookup
PROPERTIES FOLDER Tests
)
endif()
if(${BUILD_TOOLS})
set_target_properties(

View File

@ -33,3 +33,20 @@ add_test(NAME arraystocoords-test COMMAND arraystocoords-exe)
add_executable(copyblocks-exe CopyBlocks.cpp)
target_link_libraries(copyblocks-exe ChunkBuffer)
add_test(NAME copyblocks-test COMMAND copyblocks-exe)
# Put all test projects into a separate folder:
set_target_properties(
arraystocoords-exe
coordinates-exe
copies-exe
copyblocks-exe
creatable-exe
PROPERTIES FOLDER Tests/ChunkData
)
set_target_properties(
ChunkBuffer
PROPERTIES FOLDER Lib
)

View File

@ -58,3 +58,16 @@ add_test(NAME HTTPMessageParser_file-test3-2 COMMAND HTTPMessageParser_file-exe
# Test parsing the request file in 512-byte chunks (should process everything in a single call):
add_test(NAME HTTPMessageParser_file-test4-512 COMMAND HTTPMessageParser_file-exe HTTPRequest1.data 512)
# Put all the tests into a solution folder (MSVC):
set_target_properties(
HTTPMessageParser_file-exe
PROPERTIES FOLDER Tests
)
set_target_properties(
HTTP
PROPERTIES FOLDER Lib
)

View File

@ -98,3 +98,8 @@ add_test(NAME LoadablePieces-test WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
# Put the projects into solution folders (MSVC):
set_target_properties(
LoadablePieces
PROPERTIES FOLDER Tests
)

View File

@ -78,7 +78,11 @@ set_target_properties(
Google-exe
NameLookup
EnumInterfaces-exe
PROPERTIES FOLDER Tests
PROPERTIES FOLDER Tests/Network
)
set_target_properties(
Network
PROPERTIES FOLDER Lib
)