diff --git a/debian/rules b/debian/rules index 217cc12..9d63288 100755 --- a/debian/rules +++ b/debian/rules @@ -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 {} \; diff --git a/nymea-remoteproxy.pro b/nymea-remoteproxy.pro index b42f003..3d44545 100644 --- a/nymea-remoteproxy.pro +++ b/nymea-remoteproxy.pro @@ -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("----------------------------------------------------------")