[libapache-session-memcached-perl] 01/03: Update override_dh_auto_test target.

gregor herrmann gregoa at debian.org
Thu Jan 29 17:25:41 UTC 2015


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

gregoa pushed a commit to branch master
in repository libapache-session-memcached-perl.

commit ae4e95d8fc837b9a6ca8cde7f043e0544877d4f0
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Jan 29 18:22:06 2015 +0100

    Update override_dh_auto_test target.
    
    - guard for DEB_BUILD_OPTIONS
    - make more make-y
    - borrowed from libmongodb-perl
    - also build-depend on procps for kill
    - remove tmpdir
    
    Git-Dch: Ignore
---
 debian/control |  3 ++-
 debian/rules   | 16 +++++++++++++---
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index 5185299..7e7987f 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,8 @@ Uploaders: Christopher Hoskin <christopher.hoskin at gmail.com>
 Build-Depends: debhelper (>= 9), memcached
 Build-Depends-Indep: perl,
  libapache-session-perl (>= 1.54),
- libcache-memcached-perl (>= 1.14)
+ libcache-memcached-perl (>= 1.14),
+ procps
 Standards-Version: 3.9.6
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libapache-session-memcached-perl.git
 Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libapache-session-memcached-perl.git
diff --git a/debian/rules b/debian/rules
index 07d4474..baa776b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,20 @@
 #!/usr/bin/make -f
 
+BUILDHOME = $(CURDIR)/debian/build
+PIDFILE   = $(BUILDHOME)/mongod.pid
+WHOAMI    = $(shell whoami)
+
 %:
 	dh $@
 
 override_dh_auto_test:
-	TEMPDIR=`mktemp -d`     
-	/usr/bin/memcached -u `whoami` -p 20000 -P${TEMPDIR}/m.pid -d
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	mkdir -p $(BUILDHOME)
+	memcached -u $(WHOAMI) -p 20000 -P $(PIDFILE) -d
 	dh_auto_test
-	[ ! -s m.pid ] || /bin/kill `cat ${TEMPDIR}/m.pid`
+	[ ! -s $(PIDFILE) ] || /bin/kill `cat $(PIDFILE)`
+endif
+
+override_dh_clean:
+	dh_clean
+	rm -rf $(BUILDHOME)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libapache-session-memcached-perl.git



More information about the Pkg-perl-cvs-commits mailing list