summaryrefslogtreecommitdiff
path: root/qt4/tests/dbus/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'qt4/tests/dbus/CMakeLists.txt')
-rw-r--r--qt4/tests/dbus/CMakeLists.txt67
1 files changed, 67 insertions, 0 deletions
diff --git a/qt4/tests/dbus/CMakeLists.txt b/qt4/tests/dbus/CMakeLists.txt
new file mode 100644
index 000000000..35cea92d4
--- /dev/null
+++ b/qt4/tests/dbus/CMakeLists.txt
@@ -0,0 +1,67 @@
+file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/_gen")
+
+tpqt4_setup_dbus_test_environment()
+
+if(HAVE_TEST_PYTHON)
+ tpqt4_add_dbus_unit_test(DBusProperties dbus-properties "")
+endif(HAVE_TEST_PYTHON)
+
+if(ENABLE_TP_GLIB_TESTS)
+ include_directories(${TELEPATHY_GLIB_INCLUDE_DIR}
+ ${GLIB2_INCLUDE_DIR}
+ ${DBUS_INCLUDE_DIR})
+
+ add_definitions(-DQT_NO_KEYWORDS)
+
+ if(HAVE_TEST_PYTHON)
+ tpqt4_add_dbus_unit_test(AccountBasics account-basics tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(AccountSet account-set tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(AccountChannelDispatcher account-channel-dispatcher tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(Client client tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ClientFactories client-factories tp-glib-tests)
+ endif(HAVE_TEST_PYTHON)
+
+ tpqt4_add_dbus_unit_test(AccountConnectionFactory account-connection-factory tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ChannelBasics chan-basics tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ChannelConference chan-conference tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ChannelGroup chan-group tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ConnectionManagerBasics cm-basics tp-glib-tests)
+ tpqt4_add_dbus_unit_test(ConnectionBasics conn-basics tp-glib-tests)
+ tpqt4_add_dbus_unit_test(ConnectionCapabilities conn-capabilities tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ConnectionIntrospectCornercases conn-introspect-cornercases tp-glib-tests)
+ tpqt4_add_dbus_unit_test(ConnectionRequests conn-requests tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ConnectionRosterLegacy conn-roster-legacy tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ConnectionRoster conn-roster example-cm-contactlist2 tp-qt4-tests-glib-helpers
+ ${GLIB2_LIBRARIES} ${GOBJECT_LIBRARIES} ${DBUS_GLIB_LIBRARIES} ${TELEPATHY_GLIB_LIBRARIES})
+ tpqt4_add_dbus_unit_test(ConnectionRosterGroupsLegacy conn-roster-groups-legacy tp-glib-tests)
+ tpqt4_add_dbus_unit_test(ConnectionRosterGroups conn-roster-groups example-cm-contactlist2
+ ${GLIB2_LIBRARIES} ${GOBJECT_LIBRARIES} ${DBUS_GLIB_LIBRARIES} ${TELEPATHY_GLIB_LIBRARIES})
+ tpqt4_add_dbus_unit_test(ContactFactory contact-factory tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ContactMessenger contact-messenger tp-glib-tests)
+ tpqt4_add_dbus_unit_test(ContactSearchChannel contact-search-chan tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(Contacts contacts tp-glib-tests)
+ tpqt4_add_dbus_unit_test(ContactsAvatar contacts-avatar tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ContactsCapabilities contacts-capabilities tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ContactsInfo contacts-info tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(ContactsLocation contacts-location tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(DBusProxyFactory dbus-proxy-factory tp-glib-tests)
+ tpqt4_add_dbus_unit_test(Handles handles tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(SimpleObserver simple-observer tp-glib-tests)
+ tpqt4_add_dbus_unit_test(StatefulProxy stateful-proxy tp-glib-tests)
+ tpqt4_add_dbus_unit_test(StreamedMediaChannel streamed-media-chan tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(StreamTubeHandlers stream-tube-handlers tp-glib-tests tp-qt4-tests-glib-helpers)
+ tpqt4_add_dbus_unit_test(TextChannel text-chan tp-glib-tests tp-qt4-tests-glib-helpers)
+
+ if(ENABLE_TP_GLIB_GIO_TESTS)
+ tpqt4_add_dbus_unit_test(StreamTubeChannel stream-tube-chan tp-glib-tests tp-qt4-tests-glib-helpers)
+ endif(ENABLE_TP_GLIB_GIO_TESTS)
+endif(ENABLE_TP_GLIB_TESTS)
+
+tpqt4_add_dbus_unit_test(ProfileManager profile-manager)
+tpqt4_add_dbus_unit_test(Types types)
+
+# Make check target. In case of check, output on failure and put it into a log
+# This target has to stay here for catching all of the tests
+add_custom_target(check ctest --output-on-failure -O test.log
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/tests)
+add_dependencies(check check-local ${_telepathy_qt4_test_cases})