summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Knauß <mail@sandroknauss.de>2014-05-29 12:04:29 (GMT)
committerSandro Knauß <mail@sandroknauss.de>2014-05-29 17:22:50 (GMT)
commit33dcb7e0cf218c500eb30e2421a26a69ef19df15 (patch)
tree61b29974c4076c5978a5b473c42cff68b81d383f
parent9c38cfc3131f63a19cdc52995a19ace144701136 (diff)
downloadkolab-utils-33dcb7e0cf218c500eb30e2421a26a69ef19df15.tar.gz
Add written tests to ctest to be able to run make test.
-rw-r--r--CMakeLists.txt2
-rw-r--r--fbdaemon/tests/CMakeLists.txt4
2 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8ad6cd..27776fa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,6 +71,8 @@ set(COMMON_DEPENDENCIES
${KDE_LIBRARIES}
)
+enable_testing()
+
add_subdirectory(lib)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
diff --git a/fbdaemon/tests/CMakeLists.txt b/fbdaemon/tests/CMakeLists.txt
index 6c90357..67d32eb 100644
--- a/fbdaemon/tests/CMakeLists.txt
+++ b/fbdaemon/tests/CMakeLists.txt
@@ -19,12 +19,16 @@ QT4_AUTOMOC("${FBTEST_SRCS}")
add_executable(fbaggregatortest fbaggregatortest.cpp cyrusfakeserver.cpp)
target_link_libraries(fbaggregatortest ${FBTEST_DEPENDENCIES})
+add_test(fbaggregatortest fbaggregatortest)
add_executable(fbgeneratortest fbgeneratortest.cpp cyrusfakeserver.cpp)
target_link_libraries(fbgeneratortest ${FBTEST_DEPENDENCIES})
+add_test(fbgeneratortest fbgeneratortest)
add_executable(fbgeneratorfoldertest fbgeneratorfoldertest.cpp cyrusfakeserver.cpp)
target_link_libraries(fbgeneratorfoldertest ${FBTEST_DEPENDENCIES})
+add_test(fbgeneratorfoldertest fbgeneratorfoldertest)
add_executable(daemonconnectiontest daemonconnectiontest.cpp cyrusfakeserver.cpp)
target_link_libraries(daemonconnectiontest ${FBTEST_DEPENDENCIES})
+add_test(daemonconnectiontest daemonconnectiontest)