summaryrefslogtreecommitdiff
path: root/tests/test-dbus-qeventloop
diff options
context:
space:
mode:
authorMartin Wolf <ext-martin.2.wolf@nokia.com>2010-02-03 10:13:44 +0200
committerMartin Wolf <ext-martin.2.wolf@nokia.com>2010-02-03 10:13:44 +0200
commit06644af1a621f2afbd42957afc9cfda24056df54 (patch)
treedac557aab7a7bff21ad7b7c0ccc877bf42f5303e /tests/test-dbus-qeventloop
parent8bff62c335842b4c850cc09716e79c2f556247c7 (diff)
Added debian packaging info and libdbus-qeventloop library
Diffstat (limited to 'tests/test-dbus-qeventloop')
-rw-r--r--tests/test-dbus-qeventloop/test-dbus-qeventloop.cpp20
-rw-r--r--tests/test-dbus-qeventloop/test-dbus-qeventloop.pro28
2 files changed, 48 insertions, 0 deletions
diff --git a/tests/test-dbus-qeventloop/test-dbus-qeventloop.cpp b/tests/test-dbus-qeventloop/test-dbus-qeventloop.cpp
new file mode 100644
index 0000000..f0385af
--- /dev/null
+++ b/tests/test-dbus-qeventloop/test-dbus-qeventloop.cpp
@@ -0,0 +1,20 @@
+#include "dbusconnectioneventloop.h"
+#include <QtTest/QtTest>
+
+class TestDbusQEventLoop: public QObject
+{
+ Q_OBJECT
+
+private slots:
+ void basicTest()
+ {
+ DBusConnection* systemBus = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
+ QVERIFY(systemBus != NULL);
+
+ DBUSConnectionEventLoop d;
+ QVERIFY(d.initConnection(systemBus) == true);
+ }
+};
+
+QTEST_MAIN(TestDbusQEventLoop)
+#include "test-dbus-qeventloop.moc"
diff --git a/tests/test-dbus-qeventloop/test-dbus-qeventloop.pro b/tests/test-dbus-qeventloop/test-dbus-qeventloop.pro
new file mode 100644
index 0000000..80066bf
--- /dev/null
+++ b/tests/test-dbus-qeventloop/test-dbus-qeventloop.pro
@@ -0,0 +1,28 @@
+#-------------------------------------------------
+#
+# Project created by QtCreator 2010-01-18T16:28:34
+#
+#-------------------------------------------------
+
+TEMPLATE = app
+TARGET = test-dbus-qeventloop
+MOC_DIR = .moc
+OBJECTS_DIR = .obj
+DEPENDPATH += .
+QT = testlib core
+CONFIG += console link_pkgconfig
+CONFIG -= app_bundle
+PKGCONFIG += dbus-1
+
+INCLUDEPATH += ../../libdbus-qeventloop
+QMAKE_CXXFLAGS += -Wall
+LIBS += -L../../libdbus-qeventloop/build -ldbus-qeventloop
+
+# Input
+SOURCES += test-dbus-qeventloop.cpp
+
+QMAKE_DISTCLEAN += -r .moc .obj
+
+# Install options
+target.path = /usr/lib/libresourceqt-tests/
+INSTALLS = target