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

grinorcole-guest pushed a commit to branch master
in repository libmemcached-libmemcached-perl.

commit c616b91ca3a908a758e57c866fa27d1ca672c264
Author: Christopher Hoskin <christopher.hos...@gmail.com>
Date:   Wed Oct 7 21:57:35 2015 +0100

    Added autopkgtests
---
 debian/changelog           |  2 +-
 debian/tests/control       | 15 +++++++++++++++
 debian/tests/custom-smoke  | 14 ++++++++++++++
 debian/tests/pkg-perl/SKIP |  2 ++
 4 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7f6ab62..032c411 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
 libmemcached-libmemcached-perl (1.001801-1) UNRELEASED; urgency=low
 
-  * Initial Release.
+  * Initial Release. Closes: #801254
 
  -- Christopher Hoskin <christopher.hos...@gmail.com>  Mon, 5 Oct 2015 
06:44:16 +0100
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..56657cf
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,15 @@
+Test-Command: /usr/share/pkg-perl-autopkgtest/runner build-deps
+Depends: @, @builddeps@, pkg-perl-autopkgtest
+
+Test-Command: /usr/share/pkg-perl-autopkgtest/runner runtime-deps
+Depends: @, pkg-perl-autopkgtest
+
+Test-Command: /usr/share/pkg-perl-autopkgtest/runner 
runtime-deps-and-recommends
+Depends: @, pkg-perl-autopkgtest
+Restrictions: needs-recommends
+
+Test-Command: /usr/share/pkg-perl-autopkgtest/runner heavy-deps
+Depends: @, pkg-perl-autopkgtest, pkg-perl-autopkgtest-heavy
+
+Tests: custom-smoke
+Depends: @, memcached, procps, pkg-perl-autopkgtest, net-tools, netbase
diff --git a/debian/tests/custom-smoke b/debian/tests/custom-smoke
new file mode 100644
index 0000000..4ac7401
--- /dev/null
+++ b/debian/tests/custom-smoke
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+PIDFILE=${ADTTMP}/m.pid
+PORT=$(/bin/netstat -want | perl -w -e 'while (<>) { $used{$1}=1 if 
/127\.0\.0\.1:(\d+)/;}; $port = 20000; while ($used{$port}) { $port++ }; print 
"$port\n";')
+export PERL_LIBMEMCACHED_TEST_SERVERS=127.0.0.1:${PORT}
+
+echo $MEMCACHED_SERVERS
+
+/usr/bin/memcached -u `whoami` -p$PORT -P$PIDFILE -d
+/usr/share/pkg-perl-autopkgtest/build-deps.d/smoke
+RET=$?
+[ ! -s $PIDFILE ] || /bin/kill `cat ${PIDFILE}`
+exit $RET
+
diff --git a/debian/tests/pkg-perl/SKIP b/debian/tests/pkg-perl/SKIP
new file mode 100644
index 0000000..a0b2493
--- /dev/null
+++ b/debian/tests/pkg-perl/SKIP
@@ -0,0 +1,2 @@
+# needs a running memcached
+smoke

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to