[libpod-markdown-perl] 02/07: Add debian/patches/autopkgtest.patch
gregor herrmann
gregoa at debian.org
Fri Sep 4 20:04:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libpod-markdown-perl.
commit 0ab1fae74140407e34df4887f26e2856a25e090b
Author: gregor herrmann <gregoa at debian.org>
Date: Fri Sep 4 21:55:57 2015 +0200
Add debian/patches/autopkgtest.patch
to test installed script when run under autopkgtest.
Closes: #798046
---
debian/patches/autopkgtest.patch | 31 +++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 32 insertions(+)
diff --git a/debian/patches/autopkgtest.patch b/debian/patches/autopkgtest.patch
new file mode 100644
index 0000000..c97c1c2
--- /dev/null
+++ b/debian/patches/autopkgtest.patch
@@ -0,0 +1,31 @@
+Description: test installed script when run under autopkgtest
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2015-09-04
+
+--- a/t/00-compile.t
++++ b/t/00-compile.t
+@@ -13,8 +13,10 @@
+ 'Pod/Perldoc/ToMarkdown.pm'
+ );
+
++my $bindir = $ENV{ADTTMP} ? '/usr/bin' : 'bin';
++
+ my @scripts = (
+- 'bin/pod2markdown'
++ "$bindir/pod2markdown"
+ );
+
+ # fake home for cpan-testers
+--- a/t/pod2markdown.t
++++ b/t/pod2markdown.t
+@@ -11,6 +11,8 @@
+ ? ('blib/lib', 'blib/script')
+ : ('lib', 'bin');
+
++$bin = '/usr/bin' if $ENV{ADTTMP};
++
+ my $script = catfile($bin, qw(pod2markdown));
+
+ my ($tmp_in, $infile) = tempfile( 'pod2markdown-in.XXXXXX', TMPDIR => 1, UNLINK => 1 );
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..aba7ccb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+autopkgtest.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libpod-markdown-perl.git
More information about the Pkg-perl-cvs-commits
mailing list