fix test runner

This commit is contained in:
Enno Rehling 2014-04-24 15:39:14 +02:00
parent 921ab4947e
commit 1588d31a7e
2 changed files with 10 additions and 3 deletions

View File

@ -1,6 +1,5 @@
[eressea] [eressea]
base = . base = .
load = setup.lua
report = reports report = reports
verbose = 0 verbose = 0
lomem = 0 lomem = 0

View File

@ -152,7 +152,15 @@ target_link_libraries(test_eressea
) )
add_test(server test_eressea) add_test(server test_eressea)
add_test(NAME E3 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/game-e3 COMMAND $<TARGET_FILE:eressea> -e run_tests) add_test(
add_test(NAME E2 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/game-e2 COMMAND $<TARGET_FILE:eressea> -e run_tests) NAME E3
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/game-e3
COMMAND $<TARGET_FILE:eressea> runtests.lua
)
add_test(
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)