fix libguh-core
add install path for test package
This commit is contained in:
parent
1f0348ad71
commit
3d470bc634
1
debian/guh-tests.install
vendored
1
debian/guh-tests.install
vendored
@ -1,2 +1,3 @@
|
|||||||
usr/tests/* usr/lib/guh/tests
|
usr/tests/* usr/lib/guh/tests
|
||||||
usr/lib/guh/plugins/libguh_devicepluginmock.so
|
usr/lib/guh/plugins/libguh_devicepluginmock.so
|
||||||
|
ust/lib/libguh-core.so
|
||||||
|
|||||||
@ -2,7 +2,12 @@ QT += testlib network sql
|
|||||||
CONFIG += testcase
|
CONFIG += testcase
|
||||||
|
|
||||||
DEFINES += TESTING_ENABLED
|
DEFINES += TESTING_ENABLED
|
||||||
INCLUDEPATH += $$top_srcdir/server/ $$top_srcdir/server/jsonrpc $$top_srcdir/libguh $$top_srcdir/tests/auto/
|
|
||||||
|
INCLUDEPATH += $$top_srcdir/server/ \
|
||||||
|
$$top_srcdir/server/jsonrpc \
|
||||||
|
$$top_srcdir/libguh \
|
||||||
|
$$top_srcdir/tests/auto/
|
||||||
|
|
||||||
LIBS += -L$$top_builddir/libguh/ -lguh -L$$top_builddir/plugins/deviceplugins/mock/ \
|
LIBS += -L$$top_builddir/libguh/ -lguh -L$$top_builddir/plugins/deviceplugins/mock/ \
|
||||||
-L$$top_builddir/tests/libguh-core -lguh-core
|
-L$$top_builddir/tests/libguh-core -lguh-core
|
||||||
|
|
||||||
|
|||||||
@ -31,6 +31,7 @@
|
|||||||
#include <QJsonParseError>
|
#include <QJsonParseError>
|
||||||
#include <QSignalSpy>
|
#include <QSignalSpy>
|
||||||
#include <QtTest>
|
#include <QtTest>
|
||||||
|
#include <QDebug>
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
|
|
||||||
@ -81,6 +82,11 @@ void GuhTestBase::initTestCase()
|
|||||||
QVERIFY(spy.isValid());
|
QVERIFY(spy.isValid());
|
||||||
QVERIFY(spy.wait());
|
QVERIFY(spy.wait());
|
||||||
|
|
||||||
|
if (MockTcpServer::servers().isEmpty()) {
|
||||||
|
qWarning() << "no mock tcp server found";
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
m_mockTcpServer = MockTcpServer::servers().first();
|
m_mockTcpServer = MockTcpServer::servers().first();
|
||||||
m_clientId = QUuid::createUuid();
|
m_clientId = QUuid::createUuid();
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,8 @@ include(../../server/server.pri)
|
|||||||
TARGET = guh-core
|
TARGET = guh-core
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
|
DEFINES += TESTING_ENABLED
|
||||||
|
|
||||||
INCLUDEPATH += $$top_srcdir/server/ $$top_srcdir/server/jsonrpc $$top_srcdir/libguh $$top_srcdir/tests/auto/
|
INCLUDEPATH += $$top_srcdir/server/ $$top_srcdir/server/jsonrpc $$top_srcdir/libguh $$top_srcdir/tests/auto/
|
||||||
LIBS += -L$$top_builddir/libguh/ -lguh
|
LIBS += -L$$top_builddir/libguh/ -lguh
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
SUBDIRS = auto libguh-core
|
SUBDIRS = auto libguh-core
|
||||||
|
|
||||||
auto.depends = libguh-core
|
auto.depends = libguh-core
|
||||||
|
|||||||
Reference in New Issue
Block a user