summaryrefslogtreecommitdiffstats
path: root/tdeabc/tests
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2016-09-27 23:04:03 +0300
committerSlávek Banko <slavek.banko@axis.cz>2017-01-29 02:27:15 +0100
commit8e14cc0e4a7e0c607bef37828de96b487b07da16 (patch)
tree72fc3d0bc3070de0e47120b49bf989bc0ca77b85 /tdeabc/tests
parente0b892796d218e0ad64ed6698640e1923662d943 (diff)
downloadtdelibs-8e14cc0e4a7e0c607bef37828de96b487b07da16.tar.gz
tdelibs-8e14cc0e4a7e0c607bef37828de96b487b07da16.zip
Add tdeabc tests to cmake
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'tdeabc/tests')
-rw-r--r--tdeabc/tests/CMakeLists.txt97
1 files changed, 18 insertions, 79 deletions
diff --git a/tdeabc/tests/CMakeLists.txt b/tdeabc/tests/CMakeLists.txt
index bedc4b115..4a35d0232 100644
--- a/tdeabc/tests/CMakeLists.txt
+++ b/tdeabc/tests/CMakeLists.txt
@@ -31,86 +31,25 @@ include_directories(
)
link_directories(
- ${TDECORE_LIBRARY_DIRS}
+ ${TQT_LIBRARY_DIRS}
)
-set( TDEABC_TESTS_LINK
- ${TQT_LIBRARIES}
- DCOP-shared
- tdecore-shared
- tdeui-shared
- tdefx-shared
- tdeio-shared
- tdetexteditor-shared
- tdeabc-shared
-)
-
-
##### test programs ##############################
-tde_add_executable( testlock
- SOURCES testlock.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK}
-)
-
-tde_add_executable( testldapclient
- SOURCES testldapclient.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK}
-)
-
-tde_add_executable( testkabc
- SOURCES testkabc.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK}
-)
-
-tde_add_executable( testaddressee
- SOURCES testaddressee.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK}
-)
-
-tde_add_executable( testaddresseelist
- SOURCES testaddresseelist.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK}
-)
-
-tde_add_executable( testaddressfmt
- SOURCES testaddressfmt.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK}
-)
-
-tde_add_executable( testkabcdlg
- SOURCES testkabcdlg.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK}
-)
-
-tde_add_executable( testdistlist
- SOURCES testdistlist.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK}
-)
-
-tde_add_executable( testaddresslineedit
- SOURCES testaddresslineedit.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK}
-)
-
-tde_add_executable( bigread
- SOURCES bigread.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK} tdeabc_file-shared
-)
-
-tde_add_executable( bigwrite
- SOURCES bigwrite.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK} tdeabc_file-shared
-)
-
-# Plugin ResourceSql is not built == can not be tested
-#
-# tde_add_executable( testdb
-# SOURCES testdb.cpp AUTOMOC
-# LINK ${TDEABC_TESTS_LINK} tdeabc_file-shared
-# )
-
-tde_add_executable( kabcargl
- SOURCES kabcargl.cpp AUTOMOC
- LINK ${TDEABC_TESTS_LINK} tdeabc_file-shared
-)
+tde_add_check_executable( testlock AUTOMOC LINK tdeabc-shared )
+tde_add_check_executable( testldapclient AUTOMOC LINK tdeabc-shared )
+tde_add_check_executable( testkabc AUTOMOC LINK tdeabc-shared )
+tde_add_check_executable( testkabcdlg AUTOMOC LINK tdeabc-shared )
+tde_add_check_executable( testdistlist AUTOMOC LINK tdeabc-shared )
+tde_add_check_executable( testaddressee AUTOMOC LINK tdeabc-shared )
+tde_add_check_executable( testaddresseelist AUTOMOC LINK tdeabc-shared )
+tde_add_check_executable( testaddressfmt AUTOMOC LINK tdeabc-shared )
+tde_add_check_executable( testaddresslineedit AUTOMOC LINK tdeabc-shared )
+
+tde_add_check_executable( bigread AUTOMOC LINK tdeabc_file-shared )
+tde_add_check_executable( bigwrite AUTOMOC LINK tdeabc_file-shared )
+# FIXME Skip build due to sql plugin is turned off permanently and unmaintained
+# tde_add_check_executable( testdb AUTOMOC LINK tdeabc_file-shared )
+tde_add_check_executable( kabcargl AUTOMOC LINK tdeabc_file-shared )
+
+add_test( testldapclient testldapclient )