mirror of https://github.com/nymea/nymea.git
Merge PR #169: Move nymeatestbase into a nymea-testlib to speed up building
commit
e34a36ccfe
|
|
@ -1,2 +1,3 @@
|
|||
usr/tests/* usr/lib/@DEB_HOST_MULTIARCH@/nymea/tests
|
||||
usr/lib/@DEB_HOST_MULTIARCH@/nymea/plugins/libnymea_devicepluginmock.so
|
||||
usr/lib/@DEB_HOST_MULTIARCH@/libnymea-testlib.so*
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ INSTALLS += translations
|
|||
QMAKE_EXTRA_TARGETS += lupdate lrelease
|
||||
|
||||
test.depends = licensecheck lrelease
|
||||
test.commands = LD_LIBRARY_PATH=$$top_builddir/libnymea-core:$$top_builddir/libnymea make check
|
||||
test.commands = LD_LIBRARY_PATH=$$top_builddir/libnymea-core:$$top_builddir/libnymea:$$top_builddir/tests/testlib make check
|
||||
QMAKE_EXTRA_TARGETS += test
|
||||
|
||||
# Show doc files in project tree
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS = versioning \
|
||||
devices \
|
||||
jsonrpc \
|
||||
|
|
@ -25,3 +26,4 @@ SUBDIRS = versioning \
|
|||
usermanager \
|
||||
mqttbroker \
|
||||
tags \
|
||||
|
||||
|
|
|
|||
|
|
@ -3,16 +3,13 @@ CONFIG += testcase
|
|||
|
||||
INCLUDEPATH += $$top_srcdir/libnymea \
|
||||
$$top_srcdir/libnymea-core \
|
||||
$$top_srcdir/tests/auto/
|
||||
$$top_srcdir/tests/testlib/
|
||||
|
||||
LIBS += -L$$top_builddir/libnymea/ -lnymea \
|
||||
-L$$top_builddir/libnymea-core/ -lnymea-core \
|
||||
-L$$top_builddir/tests/testlib/ -lnymea-testlib \
|
||||
-L$$top_builddir/plugins/mock/ \
|
||||
-lssl -lcrypto -lavahi-common -lavahi-client -lnymea-remoteproxyclient
|
||||
|
||||
SOURCES += ../nymeatestbase.cpp \
|
||||
|
||||
HEADERS += ../nymeatestbase.h \
|
||||
|
||||
target.path = /usr/tests
|
||||
INSTALLS += target
|
||||
|
|
|
|||
|
|
@ -0,0 +1,19 @@
|
|||
TEMPLATE = lib
|
||||
TARGET = nymea-testlib
|
||||
|
||||
include(../../nymea.pri)
|
||||
|
||||
QT += testlib network sql
|
||||
|
||||
INCLUDEPATH += $$top_srcdir/libnymea \
|
||||
$$top_srcdir/libnymea-core
|
||||
|
||||
LIBS += -L$$top_builddir/libnymea/ -lnymea \
|
||||
-L$$top_builddir/libnymea-core/ -lnymea-core \
|
||||
-lssl -lcrypto -lnymea-remoteproxyclient
|
||||
|
||||
HEADERS += nymeatestbase.h
|
||||
SOURCES += nymeatestbase.cpp
|
||||
|
||||
target.path = $$[QT_INSTALL_LIBS]
|
||||
INSTALLS += target
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS = auto tools/simplepushbuttonhandler
|
||||
SUBDIRS = testlib auto tools/simplepushbuttonhandler
|
||||
|
||||
auto.depends += testlib
|
||||
|
|
|
|||
Loading…
Reference in New Issue