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

gregoa pushed a commit to branch master
in repository libtext-markdown-perl.

commit c4e84e703aaa14b22b61c9ec9e3083fd4b79b88e
Author: gregor herrmann <gre...@debian.org>
Date:   Wed Aug 12 22:07:49 2015 +0200

    Add patch to test installed script during autopkgtest.
    
    Thanks: ci.debian.net.
---
 debian/patches/autopkgtest.patch | 20 ++++++++++++++++++++
 debian/patches/series            |  1 +
 2 files changed, 21 insertions(+)

diff --git a/debian/patches/autopkgtest.patch b/debian/patches/autopkgtest.patch
new file mode 100644
index 0000000..6738097
--- /dev/null
+++ b/debian/patches/autopkgtest.patch
@@ -0,0 +1,20 @@
+Description: use installed script for autopkgtest
+Origin: vendor
+Forwarded: not needed
+Author: gregor herrmann <gre...@debian.org>
+Last-Update: 2015-08-12
+
+--- a/t/34commandlinemarkdown.t
++++ b/t/34commandlinemarkdown.t
+@@ -9,8 +9,10 @@
+ open my $file, '<', "$filename.xhtml" or die "Couldn't open $filename: $!";
+ my $expected = do { local $/; <$file> };
+ 
++my $script = $ENV{ADTTMP} ? '/usr/bin/markdown' : 
"$Bin/../script/Markdown.pl";
++
+ lives_ok {
+-    require "$Bin/../script/Markdown.pl";
++    require "$script";
+ } 'require Markdown.pl works';
+ my $out = main();
+ is($out, $expected, 'Markdown.pl does the right thing with the syntax guide');
diff --git a/debian/patches/series b/debian/patches/series
index fc2cca7..1623760 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 pod_name
+autopkgtest.patch

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