[libtext-csv-perl] 09/10: Mark package as autopkgtest-able.

gregor herrmann gregoa at debian.org
Thu May 21 18:42:19 UTC 2015


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

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

commit 34bcc7a49e20fdb9d6c4371b226090daa9cffc2e
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu May 21 20:40:19 2015 +0200

    Mark package as autopkgtest-able.
---
 debian/control                   |  1 +
 debian/patches/autopkgtest.patch | 18 ++++++++++++++++++
 debian/patches/series            |  1 +
 debian/tests/pkg-perl/test-files |  2 ++
 4 files changed, 22 insertions(+)

diff --git a/debian/control b/debian/control
index 361348f..ae17db6 100644
--- a/debian/control
+++ b/debian/control
@@ -16,6 +16,7 @@ Standards-Version: 3.9.6
 Homepage: https://metacpan.org/release/Text-CSV
 Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libtext-csv-perl.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libtext-csv-perl.git
+Testsuite: autopkgtest-pkg-perl
 
 Package: libtext-csv-perl
 Architecture: all
diff --git a/debian/patches/autopkgtest.patch b/debian/patches/autopkgtest.patch
new file mode 100644
index 0000000..6f163ed
--- /dev/null
+++ b/debian/patches/autopkgtest.patch
@@ -0,0 +1,18 @@
+Description: adjust path in test if we run under autopkgtest
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2015-05-21
+
+--- a/t/80_diag.t
++++ b/t/80_diag.t
+@@ -14,7 +14,8 @@
+     plan skip_all => "Cannot load Text::CSV" if $@;
+     require "t/util.pl";
+ 
+-    open PP, "< lib/Text/CSV_PP.pm" or die "Cannot read error messages from PP\n";
++    my $dir = $ENV{ADTTMP} ? '/usr/share/perl5' : 'lib';
++    open PP, "< $dir/Text/CSV_PP.pm" or die "Cannot read error messages from PP\n";
+     while (<PP>) {
+         m/^        ([0-9]{4}) => "([^"]+)"/ and $err{$1} = $2;
+     }
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
diff --git a/debian/tests/pkg-perl/test-files b/debian/tests/pkg-perl/test-files
new file mode 100644
index 0000000..cdff7ab
--- /dev/null
+++ b/debian/tests/pkg-perl/test-files
@@ -0,0 +1,2 @@
+t/
+files/

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



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