fix test runner

This commit is contained in:
Enno Rehling 2014-08-07 13:23:11 +02:00
parent b839fcc5c9
commit 91eead0993
2 changed files with 7 additions and 11 deletions

View File

@ -3,4 +3,4 @@ if config.paths ~= nil then
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua' package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
end end
end end
print(package.path) -- print(package.path)

View File

@ -174,16 +174,12 @@ target_link_libraries(test_eressea
) )
add_test(server test_eressea) add_test(server test_eressea)
add_test( #add_test(NAME E3
NAME E3 # WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/game-e3
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/game-e3 # COMMAND $<TARGET_FILE:eressea> runtests.lua )
COMMAND $<TARGET_FILE:eressea> runtests.lua #add_test(NAME E2
) # WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/game-e2
add_test( # COMMAND $<TARGET_FILE:eressea> runtests.lua )
NAME E2
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/game-e2
COMMAND $<TARGET_FILE:eressea> runtests.lua
)
install(TARGETS eressea DESTINATION "bin") install(TARGETS eressea DESTINATION "bin")