Warning, /pim/akonadi/autotests/libs/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # akonadi test fake library 0002 set(akonaditestfake_xml ${Akonadi_SOURCE_DIR}/src/interfaces/org.freedesktop.Akonadi.NotificationSource.xml) 0003 set_source_files_properties(${akonaditestfake_xml} PROPERTIES INCLUDE "protocol_p.h") 0004 qt_add_dbus_interface( akonaditestfake_srcs ${akonaditestfake_xml} notificationsourceinterface ) 0005 0006 add_library(akonaditestfake SHARED 0007 ${akonaditestfake_srcs} 0008 fakeakonadiservercommand.cpp 0009 fakesession.cpp 0010 fakemonitor.cpp 0011 fakeserverdata.cpp 0012 modelspy.cpp 0013 fakeentitycache.cpp 0014 inspectablemonitor.cpp 0015 inspectablechangerecorder.cpp 0016 fakeakonadiservercommand.h 0017 fakesession.h 0018 fakemonitor.h 0019 fakeserverdata.h 0020 modelspy.h 0021 fakeentitycache.h 0022 inspectablemonitor.h 0023 inspectablechangerecorder.h 0024 ) 0025 0026 generate_export_header(akonaditestfake BASE_NAME akonaditestfake) 0027 0028 target_link_libraries(akonaditestfake 0029 Qt::DBus 0030 KPim6::AkonadiCore 0031 Qt::Test 0032 Qt::Widgets 0033 Qt::Network 0034 KPim6::AkonadiPrivate 0035 akonadi_shared 0036 ) 0037 0038 add_executable(akonadi-firstrun 0039 ../../src/core/firstrun.cpp 0040 firstrunner.cpp 0041 ${CMAKE_BINARY_DIR}/src/core/akonadicore_debug.cpp 0042 ) 0043 target_link_libraries( akonadi-firstrun Qt::Test Qt::Core KPim6::AkonadiCore KPim6::AkonadiPrivate KF6::ConfigCore Qt::Widgets) 0044 0045 add_akonadi_test(itemhydratest.cpp itemhydratest.h) 0046 add_akonadi_test(itemtest.cpp itemtest.h) 0047 add_akonadi_test(itemserializertest.cpp itemserializertest.h) 0048 add_akonadi_test(mimetypecheckertest.cpp mimetypecheckertest.h) 0049 add_akonadi_test(protocolhelpertest.cpp) 0050 add_akonadi_test(entitytreemodeltest.cpp) 0051 add_akonadi_test(monitornotificationtest.cpp) 0052 add_akonadi_test(collectionutilstest.cpp) 0053 add_akonadi_test(collectionannotationsattributetest.cpp) 0054 add_akonadi_test(collectioncolorattributetest.cpp) 0055 add_akonadi_test(entitydisplayattributetest.cpp) 0056 add_akonadi_test(proxymodelstest.cpp) 0057 add_akonadi_test_widgets(actionstatemanagertest.cpp) 0058 add_akonadi_test_widgets(conflictresolvedialogtest.cpp conflictresolvedialogtest.h) 0059 add_akonadi_test(tagmodeltest.cpp) 0060 add_akonadi_test(statisticsproxymodeltest.cpp) 0061 0062 add_akonadi_test(sharedvaluepooltest.cpp) 0063 add_akonadi_test(jobtest.cpp) 0064 add_akonadi_test(tagtest_simple.cpp) 0065 add_akonadi_test(cachepolicytest.cpp cachepolicytest.h) 0066 add_akonadi_test(itemchangelogtest.cpp) 0067 0068 # PORT FROM QJSON add_akonadi_test(searchquerytest.cpp) 0069 0070 # qtestlib tests that need non-exported stuff from 0071 #add_executable( resourceschedulertest resourceschedulertest.cpp resourceschedulertest.h ../src/agentbase/resourcescheduler.cpp ) 0072 #add_test( resourceschedulertest resourceschedulertest ) 0073 #ecm_mark_as_test(akonadi-resourceschedulertest) 0074 #target_link_libraries(resourceschedulertest Qt::Test KPim6::AkonadiAgentBase) 0075 0076 0077 # testrunner tests 0078 add_akonadi_isolated_test(SOURCE testenvironmenttest.cpp) 0079 add_akonadi_isolated_test(SOURCE autoincrementtest.cpp autoincrementtest.h) 0080 add_akonadi_isolated_test(SOURCE attributefactorytest.cpp attributefactorytest.h) 0081 add_akonadi_isolated_test(SOURCE collectionpathresolvertest.cpp collectionpathresolvertest.h) 0082 add_akonadi_isolated_test(SOURCE collectionattributetest.cpp collectionattributetest.h) 0083 add_akonadi_isolated_test(SOURCE itemfetchtest.cpp itemfetchtest.h) 0084 add_akonadi_isolated_test(SOURCE itemappendtest.cpp itemappendtest.h) 0085 add_akonadi_isolated_test(SOURCE itemstoretest.cpp itemstoretest.h) 0086 add_akonadi_isolated_test(SOURCE itemdeletetest.cpp) 0087 add_akonadi_isolated_test(SOURCE entitycachetest.cpp) 0088 add_akonadi_isolated_test(SOURCE monitortest.cpp monitortest.h) 0089 #add_akonadi_isolated_test_advanced(monitorfiltertest.cpp "" "KPim6::AkonadiPrivate") 0090 # FIXME: this is constantly failling due to broken search: re-enable once the new search code is merged 0091 #add_akonadi_isolated_test(SOURCE searchjobtest.cpp searchjobtest.h) 0092 add_akonadi_isolated_test(SOURCE changerecordertest.cpp) 0093 add_akonadi_isolated_test(SOURCE resourcetest.cpp) 0094 add_akonadi_isolated_test(SOURCE subscriptiontest.cpp) 0095 add_akonadi_isolated_test(SOURCE transactiontest.cpp transactiontest.h) 0096 add_akonadi_isolated_test(SOURCE itemcopytest.cpp) 0097 add_akonadi_isolated_test(SOURCE itemmovetest.cpp) 0098 add_akonadi_isolated_test(SOURCE invalidatecachejobtest.cpp) 0099 add_akonadi_isolated_test(SOURCE collectioncreatetest.cpp) 0100 add_akonadi_isolated_test(SOURCE collectioncopytest.cpp) 0101 add_akonadi_isolated_test(SOURCE collectionmovetest.cpp) 0102 add_akonadi_isolated_test( 0103 SOURCE collectionsynctest.cpp 0104 ADDITIONAL_SOURCES ${CMAKE_BINARY_DIR}/src/core/akonadicore_debug.cpp 0105 LINK_LIBRARIES KF6::I18n 0106 ) 0107 add_akonadi_isolated_test(SOURCE itemsynctest.cpp) 0108 add_akonadi_isolated_test(SOURCE linktest.cpp) 0109 add_akonadi_isolated_test(SOURCE cachetest.cpp) 0110 add_akonadi_isolated_test(SOURCE collectionjobtest.cpp collectionjobtest.h) 0111 add_akonadi_isolated_test(SOURCE collectionmodifytest.cpp) 0112 0113 # FIXME: This is very unstable on Jenkins 0114 #add_akonadi_isolated_test(servermanagertest.cpp) 0115 0116 # Having a benchmark is cool if you have any reference to compare against, but this 0117 # benchmark takes over 40 seconds and does not have any real value to us atm. Major 0118 # performance regressions would be spotted by devs anyway, so disabling for now. 0119 #add_akonadi_isolated_test(itembenchmark.cpp) 0120 #add_akonadi_isolated_test(collectioncreator.cpp) 0121 0122 add_akonadi_isolated_test(SOURCE gidtest.cpp gidtest.h) 0123 add_akonadi_isolated_test(SOURCE lazypopulationtest.cpp) 0124 add_akonadi_isolated_test(SOURCE favoriteproxytest.cpp LINK_LIBRARIES KF6::ConfigCore) 0125 # FIXME: this is constantly failing due to broken search: re-enable once the new search code is merged 0126 #add_akonadi_isolated_test( 0127 # SOURCE itemsearchjobtest.cpp searchjobtest.h 0128 # ADDITIONAL_SOURCES testsearchplugin/testsearchplugin.cpp) 0129 add_akonadi_isolated_test(SOURCE tagtest.cpp ADDITIONAL_SOURCES ${CMAKE_BINARY_DIR}/src/core/akonadicore_debug.cpp) 0130 add_akonadi_isolated_test(SOURCE tagsynctest.cpp) 0131 add_akonadi_isolated_test(SOURCE relationtest.cpp) 0132 add_akonadi_isolated_test(SOURCE etmpopulationtest.cpp)