diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2016-12-21 01:09:27 +0300 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-07-22 15:56:51 +0200 |
commit | 933dc8a3f8b14eff9c51c1a7ece8c29754ad378a (patch) | |
tree | 732dfb5731f4911242ca86cd43403b88ac0a07d1 /kio/tests/CMakeLists.txt | |
parent | a6435d8bbc997ce1438a537f3dae5f749c4d5e3b (diff) | |
download | tdelibs-933dc8a3f8b14eff9c51c1a7ece8c29754ad378a.tar.gz tdelibs-933dc8a3f8b14eff9c51c1a7ece8c29754ad378a.zip |
tdeio: add tests
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit ed74769bfaae171809c0bc1a10a8ba0f6ff8895f)
Diffstat (limited to 'kio/tests/CMakeLists.txt')
-rw-r--r-- | kio/tests/CMakeLists.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/kio/tests/CMakeLists.txt b/kio/tests/CMakeLists.txt index 9c4fb7427..02ffd9eb5 100644 --- a/kio/tests/CMakeLists.txt +++ b/kio/tests/CMakeLists.txt @@ -11,8 +11,14 @@ include_directories( ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/dcop ${CMAKE_BINARY_DIR}/kdecore ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kfile ${CMAKE_SOURCE_DIR}/kio/kio ) @@ -34,3 +40,37 @@ tde_add_executable( ${target} LINK kio-shared DESTINATION ${BIN_INSTALL_DIR} ) + + +##### check and test ############################## + +# Force assertions to work +add_definitions( -UNDEBUG ) + +set( CHECKS + getalltest jobtest kdcopcheck kdefaultprogresstest kdirlistertest + kdirwatchtest kfiltertest kionetrctest kiopassdlgtest kmfitest kmimefromext + kmimemagictest kpropsdlgtest kprotocolinfotest kruntest kscantest kshredtest + ktartest kurifiltertest kurlcompletiontest kziptest metatest netaccesstest + previewtest speed kioslavetest ksycocatest ksycocaupdatetest +) + +foreach( _check ${CHECKS} ) + tde_add_check_executable( ${_check} AUTOMOC LINK kio-shared ) +endforeach( ) + +# NOTE some apps here are suitable to be run as tests but not included due to +# following reasons: +# - jobtest may fail if run on an unusual system configuration +# and requires GUI +# - kprotocolinfotest tries to connect to network and requires running DCOP +# - kurifiltertest requires network access and GUI +# - ksycocatest requires installed kdebase and GUI + +set( TESTS dataprotocoltest kacltest kmimetypetest ) + +foreach( _check ${TESTS} ) + tde_add_check_executable( ${_check} AUTOMOC LINK kio-shared TEST) +endforeach( ) + +# TODO add kdirwatchunittest |