[Pkg-samba-maint] [samba] 01/08: Add a "selftest" build profile
Mathieu Parent
sathieu at moszumanska.debian.org
Thu Apr 28 07:52:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
sathieu pushed a commit to branch selftest
in repository samba.
commit 739bb0aa0247ebb9358a1b85bbe5ab58048c76b4
Author: Mathieu Parent <math.parent at gmail.com>
Date: Mon Apr 4 15:40:50 2016 +0200
Add a "selftest" build profile
---
debian/README.source | 9 ++++++++-
debian/rules | 8 ++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/debian/README.source b/debian/README.source
index 1d181b6..b01f5ae 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -1,4 +1,3 @@
-
The packaging is kept in git://git.debian.org/git/pkg-samba/samba.git (web
interface: http://git.debian.org/?p=pkg-samba/samba.git).
@@ -29,6 +28,14 @@ git-import-orig --upstream-version=4.0.6+dfsg --upstream-vcs-tag=samba-4.0.6 \
Please note that there are some files that are not dfsg-free and they need to
be filtered. The settings in the gpb.conf should take care of that.
+'selftest' build profile
+========================
+Selftest is not enabled by default because it affects performance, but a
+'selftest' build profile is available for this purpose.
+You'll need the additional build-dependencies: ldb-tools, libnss-wrapper,
+libresolv-wrapper, libsocket-wrapper, libuid-wrapper, python-crypto,
+python-subunit, python-testscenarios and rsync.
+See also: https://wiki.debian.org/BuildProfileSpec
diff --git a/debian/rules b/debian/rules
index b93e210..9b613d7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -67,6 +67,11 @@ conf_args = \
--with-socketpath=/var/run/ctdb/ctdbd.socket \
--with-logdir=/var/log/ctdb
+# selftest build profile
+ifneq ($(filter selftest,$(DEB_BUILD_PROFILES)),)
+ conf_args += \
+ --enable-selftest
+endif
%:
dh $* --with python2 --with systemd
@@ -90,6 +95,9 @@ override_dh_auto_build:
override_dh_auto_test:
# Running make test requires configuration with --enable-selftest, which
# we don't want to do for production systems.
+ifneq ($(filter selftest,$(DEB_BUILD_PROFILES)),)
+ dh_auto_test
+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