[Pkg-samba-maint] [samba] 03/06: Run quicktest during build

Mathieu Parent sathieu at moszumanska.debian.org
Tue May 3 13:14:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

sathieu pushed a commit to branch master
in repository samba.

commit 51d49f10880b61605ed12db0956a5f73fbc9459e
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Mon Apr 4 15:40:50 2016 +0200

    Run quicktest during build
---
 debian/control |  8 +++++++-
 debian/rules   | 10 +++++++---
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index c1d198c..7cbad10 100644
--- a/debian/control
+++ b/debian/control
@@ -49,7 +49,13 @@ Build-Depends: bison,
                python-testtools,
                python3,
                xsltproc,
-               zlib1g-dev (>= 1:1.2.3)
+               zlib1g-dev (>= 1:1.2.3),
+               ldb-tools,
+               libnss-wrapper,
+               libresolv-wrapper,
+               libsocket-wrapper,
+               libuid-wrapper,
+               python-crypto
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-samba/samba.git
 Vcs-Git: git://anonscm.debian.org/pkg-samba/samba.git -b master
 XS-Testsuite: autopkgtest
diff --git a/debian/rules b/debian/rules
index 2d5d9bb..b9e5d70 100755
--- a/debian/rules
+++ b/debian/rules
@@ -65,7 +65,8 @@ conf_args = \
 		--minimum-library-version="$(shell ./debian/autodeps.py --minimum-library-version)" \
 		--with-cluster-support \
 		--with-socketpath=/var/run/ctdb/ctdbd.socket \
-		--with-logdir=/var/log/ctdb
+		--with-logdir=/var/log/ctdb \
+		--enable-selftest
 
 %:
 	dh $* --with python2 --with systemd
@@ -90,8 +91,11 @@ override_dh_auto_build:
 	DESTDIR="$(DESTDIR)" $(WAF)
 
 override_dh_auto_test:
-	# Running make test requires configuration with --enable-selftest, which
-	# we don't want to do for production systems.
+ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
+	make quicktest
+else
+    @echo "** tests disabled"
+endif
 
 override_dh_systemd_start:
 	dh_systemd_start -pctdb --no-start --no-restart-on-upgrade

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git




More information about the Pkg-samba-maint mailing list