about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeremy Bicha <jbicha@ubuntu.com>2017-06-14 15:01:22 -0400
committerJeremy Bicha <jbicha@ubuntu.com>2017-11-12 14:37:41 -0500
commit28dd0e97dc155283c2ccf2afae5787d62e43a192 (patch)
treeaea34ce75d1b1ee1714045d4c772f250cb747700
parent47b8b51b2706215c4fb5b80e56b64eae57652470 (diff)
Enable build tests
-rwxr-xr-xdebian/rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index a224a16a..18da9eaa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,6 +35,7 @@ override_dh_auto_configure:
 		--with-nmtui \
 		--with-nmcli \
 		--with-selinux \
+		--with-tests \
 		--with-libaudit \
 		--without-dhcpcanon \
 		--enable-polkit \
@@ -75,3 +76,8 @@ override_dh_systemd_start:
 
 override_dh_ppp:
 	dh_ppp --breaks
+
+override_dh_auto_test:
+ifeq (, $(filter nocheck, $(DEB_BUILD_OPTIONS)))
+	make check || ( find . -name test-suite.log -exec cat {} \;; exit 1; )
+endif