summaryrefslogtreecommitdiff
path: root/kimap/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-25 23:43:13 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-25 23:43:13 (GMT)
commite21e62c14f5aae99d46643065fcb86e2e3abe230 (patch)
tree71d79d2de0b0f82f8b0a6ca3b8b09308d198ed33 /kimap/tests/CMakeLists.txt
parent172803b38237e38a494aca62fffda918e5799d20 (diff)
downloadlibcalendaring-e21e62c14f5aae99d46643065fcb86e2e3abe230.tar.gz
initial import of kimap from
commit b54a325116b194da090f900c9a538710759eb303 Author: Stephen Kelly <steveire@gmail.com> Date: Sun May 6 20:44:53 2012 +0200 Revert "Port to const QRegExp API." This reverts commit 0ca0dfc7e0ca8095efd0b060d1d5e26ac9ceb379. The qtbase commit requiring this was reverted.
Diffstat (limited to 'kimap/tests/CMakeLists.txt')
-rw-r--r--kimap/tests/CMakeLists.txt52
1 files changed, 52 insertions, 0 deletions
diff --git a/kimap/tests/CMakeLists.txt b/kimap/tests/CMakeLists.txt
new file mode 100644
index 0000000..8aa657a
--- /dev/null
+++ b/kimap/tests/CMakeLists.txt
@@ -0,0 +1,52 @@
+add_subdirectory(kimaptest)
+
+include_directories( ${CMAKE_SOURCE_DIR}/kimap ${Boost_INCLUDE_DIR})
+set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
+
+MACRO(KIMAP_UNIT_TESTS)
+ FOREACH(_testname ${ARGN})
+ kde4_add_unit_test(${_testname} TESTNAME kimap-${_testname} NOGUI ${_testname}.cpp)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
+ target_link_libraries(${_testname} ${KDE4_KDECORE_LIBS} ${QT_QTTEST_LIBRARY}
+ kimap kimaptest kmime)
+ add_definitions(-DTEST_DATA="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"")
+ ENDFOREACH(_testname)
+ENDMACRO(KIMAP_UNIT_TESTS)
+
+MACRO(KIMAP_EXECUTABLE_TESTS)
+ FOREACH(_testname ${ARGN})
+ kde4_add_executable(${_testname} NOGUI TEST ${_testname}.cpp)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
+ target_link_libraries(${_testname} ${KDE4_KDECORE_LIBS} kimap kmime)
+ ENDFOREACH(_testname)
+ENDMACRO(KIMAP_EXECUTABLE_TESTS)
+
+########### automated tests ###############
+
+KIMAP_UNIT_TESTS(
+ fakeservertest
+ testrfccodecs
+ testsession
+ loginjobtest
+ logoutjobtest
+ capabilitiesjobtest
+ selectjobtest
+ createjobtest
+ deletejobtest
+ fetchjobtest
+ renamejobtest
+ subscribejobtest
+ unsubscribejobtest
+ listjobtest
+ storejobtest
+ imapsettest
+ idlejobtest
+ quotarootjobtest
+)
+
+########### manual tests ###############
+
+KIMAP_EXECUTABLE_TESTS(
+ testimapidle
+ testimapserver
+)