[liblatex-decode-perl] 02/05: Mark package as autopkgtest-able.

gregor herrmann gregoa at debian.org
Tue Jun 9 17:47:05 UTC 2015


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

gregoa pushed a commit to branch master
in repository liblatex-decode-perl.

commit 9ebc3a812ddc2bf0e3dd66751cc33d9b1d7a2b66
Author: gregor herrmann <gregoa at debian.org>
Date:   Tue Jun 9 19:40:33 2015 +0200

    Mark package as autopkgtest-able.
---
 debian/control                   |  1 +
 debian/patches/autopkgtest.patch | 17 +++++++++++++++++
 debian/patches/series            |  1 +
 3 files changed, 19 insertions(+)

diff --git a/debian/control b/debian/control
index b8cd2be..d0e8868 100644
--- a/debian/control
+++ b/debian/control
@@ -2,6 +2,7 @@ Source: liblatex-decode-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Danai SAE-HAN (韓達耐) <danai at debian.org>
 Section: perl
+Testsuite: autopkgtest-pkg-perl
 Priority: optional
 Build-Depends: debhelper (>= 8)
 Build-Depends-Indep: perl,
diff --git a/debian/patches/autopkgtest.patch b/debian/patches/autopkgtest.patch
new file mode 100644
index 0000000..ebc95e3
--- /dev/null
+++ b/debian/patches/autopkgtest.patch
@@ -0,0 +1,17 @@
+Description: use installed script in test when run under autopkgtest
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2015-06-09
+
+--- a/t/latex2utf8.t
++++ b/t/latex2utf8.t
+@@ -4,7 +4,7 @@
+ use Test::More tests => 3;
+ use Encode;
+ use File::Spec;
+-my $script = File::Spec->catfile(qw(bin latex2utf8));
++my $script = $ENV{ADTTMP} ? '/usr/bin/latex2utf8' : File::Spec->catfile(qw(bin latex2utf8));
+ my $file   = File::Spec->catfile(qw(t file.txt));
+ my $outputA = decode_utf8( `$^X -Mblib $script -b $file` );
+ my $expectedA = <<END
diff --git a/debian/patches/series b/debian/patches/series
index fef1ff7..2f89407 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01_Data.pm.patch
+autopkgtest.patch

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



More information about the Pkg-perl-cvs-commits mailing list