From 5175052ab339fa8dd73f7657d4c73e580a49382d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 4 Jun 2019 18:11:22 +0200 Subject: [PATCH] Add tests to debian packaging script --- debian/rules | 3 +++ nymea-remoteproxy.pro | 3 +++ 2 files changed, 6 insertions(+) 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("----------------------------------------------------------")