Commit 02c94fbb authored by Christoph Cullmann's avatar Christoph Cullmann

split unit tests

parent 7bbc7320
......@@ -77,6 +77,3 @@ ecm_optional_add_subdirectory (addons)
# docs
ecm_optional_add_subdirectory (doc)
# automatic unit tests
ecm_optional_add_subdirectory (autotests)
......@@ -7,21 +7,6 @@ include_directories(
${CMAKE_SOURCE_DIR}/addons/kate/filetree
)
macro(kate_executable_tests)
foreach(_testname ${ARGN})
add_executable(${_testname} ${_testname}.cpp)
add_test(kateapp-${_testname} ${_testname})
target_link_libraries(${_testname} kdeinit_kate Qt5::Test)
ecm_mark_as_test(${_testname})
endforeach(_testname)
endmacro(kate_executable_tests)
kate_executable_tests(
session_test
session_manager_test
sessions_action_test
)
macro(filetree_executable_tests)
foreach(_testname ${ARGN})
add_executable(${_testname} ${_testname}.cpp document_dummy.cpp)
......
......@@ -65,3 +65,6 @@ generate_export_header(kdeinit_kate
# install executable + kdeinit lib
install(TARGETS kate ${INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS kdeinit_kate ${INSTALL_TARGETS_DEFAULT_ARGS})
# automatic unit tests
ecm_optional_add_subdirectory (autotests)
include(ECMMarkAsTest)
include_directories(
${CMAKE_SOURCE_DIR}/kate/app
${CMAKE_SOURCE_DIR}/kate/session
${CMAKE_SOURCE_DIR}/addons/kate/filetree
)
macro(kate_executable_tests)
foreach(_testname ${ARGN})
add_executable(${_testname} ${_testname}.cpp)
add_test(kateapp-${_testname} ${_testname})
target_link_libraries(${_testname} kdeinit_kate Qt5::Test)
ecm_mark_as_test(${_testname})
endforeach(_testname)
endmacro(kate_executable_tests)
kate_executable_tests(
session_test
session_manager_test
sessions_action_test
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment