make "make test" target work properly

pull/233/head
Michael Zanetti 2019-11-16 00:52:25 +01:00
parent c7dd26d525
commit cee2ed1542
2 changed files with 6 additions and 2 deletions

View File

@ -58,8 +58,9 @@ INSTALLS += translations
QMAKE_EXTRA_TARGETS += lupdate lrelease
test.depends = licensecheck lrelease
test.commands = LD_LIBRARY_PATH=$$top_builddir/libnymea-core:$$top_builddir/libnymea:$$top_builddir/tests/testlib make check
test.depends = licensecheck
test.depends += lrelease
test.commands = LD_LIBRARY_PATH=$$top_builddir/libnymea-core:$$top_builddir/libnymea:$$top_builddir/tests/testlib make check TESTRUNNER=\"dbus-test-runner --bus-type=system --task\"
QMAKE_EXTRA_TARGETS += test
# Show doc files in project tree

View File

@ -13,3 +13,6 @@ LIBS += -L$$top_builddir/libnymea/ -lnymea \
target.path = /usr/tests
INSTALLS += target
test.commands = LD_LIBRARY_PATH=../../../libnymea:../../../libnymea-core/:../../testlib/ make check TESTRUNNER=\"dbus-test-runner --bus-type=system --task\"
QMAKE_EXTRA_TARGETS += test