[libapache-session-memcached-perl] 01/02: Created a new Autopkgtest test custom_smoke to invoke the smoke test with memcached running

Christopher Hoskin christopher.hoskin at gmail.com
Sun Feb 8 23:46:44 UTC 2015


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

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

commit f962ec7e72d58926b7329585141686f5c5b67633
Author: Christopher Hoskin <christopher.hoskin at gmail.com>
Date:   Sun Feb 8 21:05:20 2015 +0000

    Created a new Autopkgtest test custom_smoke to invoke the smoke test with memcached running
---
 debian/tests/control      | 15 +++++++++++++++
 debian/tests/custom_smoke | 10 ++++++++++
 2 files changed, 25 insertions(+)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..dcf30bd
--- /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
diff --git a/debian/tests/custom_smoke b/debian/tests/custom_smoke
new file mode 100644
index 0000000..d880abc
--- /dev/null
+++ b/debian/tests/custom_smoke
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+PIDFILE=${ADTTMP}/m.pid
+
+/usr/bin/memcached -u `whoami` -p 20000 -P$PIDFILE -d
+/usr/share/pkg-perl-autopkgtest/build-deps.d/smoke
+RET=$?
+[ ! -s $PIDFILE ] || /bin/kill `cat ${PIDFILE}`
+exit $RET
+

-- 
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