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

gregoa pushed a commit to branch master
in repository libtk-pod-perl.

commit 2e5d1e2dfebb165edbfd009cfa6aac2b270550c7
Author: gregor herrmann <gre...@debian.org>
Date:   Sun Feb 14 17:10:50 2016 +0100

    Mark package as autopkgtest-able.
---
 debian/control                   |  1 +
 debian/patches/autopkgtest.patch | 20 ++++++++++++++++++++
 debian/patches/series            |  1 +
 debian/tests/pkg-perl/smoke-env  |  2 ++
 4 files changed, 24 insertions(+)

diff --git a/debian/control b/debian/control
index 6496ae1..42fc35e 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Uploaders: Carlo Segre <se...@debian.org>,
            Rene Mayorga <rmayo...@debian.org>,
            Dominique Dumont <d...@debian.org>
 Section: perl
+Testsuite: autopkgtest-pkg-perl
 Priority: optional
 Build-Depends: debhelper (>= 9)
 Build-Depends-Indep: perl,
diff --git a/debian/patches/autopkgtest.patch b/debian/patches/autopkgtest.patch
new file mode 100644
index 0000000..3d8b46c
--- /dev/null
+++ b/debian/patches/autopkgtest.patch
@@ -0,0 +1,20 @@
+Description: adjust script path when run under autopkgtest
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gre...@debian.org>
+Last-Update: 2016-02-14
+
+--- a/t/cmdline.t
++++ b/t/cmdline.t
+@@ -37,8 +37,9 @@
+ my $DEBUG = 0;
+ 
+ my $blib   = File::Spec->rel2abs("$FindBin::RealBin/../blib");
+-my $script = "$blib/script/tkpod";
+-my $tkmore_script = "$blib/script/tkmore";
++my $dir    = $ENV{ADTTMP} ? '/usr/bin' : "$blib/script";
++my $script = "$dir/tkpod";
++my $tkmore_script = "$dir/tkmore";
+ 
+ my $batch_mode = defined $ENV{BATCH} ? $ENV{BATCH} : 1;
+ 
diff --git a/debian/patches/series b/debian/patches/series
index af2358e..1f85856 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix-pod
+autopkgtest.patch
diff --git a/debian/tests/pkg-perl/smoke-env b/debian/tests/pkg-perl/smoke-env
new file mode 100644
index 0000000..9f634b9
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-env
@@ -0,0 +1,2 @@
+# needed for server mode in t/cmdline.t
+HOME=${ADTTMP}

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libtk-pod-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