Add tests to debian packaging script

This commit is contained in:
Simon Stürz 2019-06-04 18:11:22 +02:00 committed by Simon Stürz
parent 4262e6eb9f
commit 5175052ab3
2 changed files with 6 additions and 0 deletions

3
debian/rules vendored
View File

@ -15,6 +15,9 @@ override_dh_strip:
dh_strip --dbg-package=libnymea-remoteproxy-dbg
dh_strip --dbg-package=libnymea-remoteproxyclient-dbg
override_dh_auto_test:
make test
override_dh_auto_clean:
dh_auto_clean
find . -name *.qm -exec rm {} \;

View File

@ -15,6 +15,9 @@ server.depends = libnymea-remoteproxy
client.depends = libnymea-remoteproxyclient
tests.depends = libnymea-remoteproxy libnymea-remoteproxyclient
test.commands = LD_LIBRARY_PATH=$$top_builddir/libnymea-remoteproxy:$$top_builddir/libnymea-remoteproxyclient make check
QMAKE_EXTRA_TARGETS += test
message("----------------------------------------------------------")
message("Building nymea-remoteproxy $${SERVER_VERSION}")
message("----------------------------------------------------------")