[libmodule-extractuse-perl] 06/08: Mark package as autopkgtest-able.
gregor herrmann
gregoa at debian.org
Fri Oct 17 19:32:27 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libmodule-extractuse-perl.
commit a5181101f42db6c772033656888cab7c55b1555e
Author: gregor herrmann <gregoa at debian.org>
Date: Fri Oct 17 21:28:41 2014 +0200
Mark package as autopkgtest-able.
Add a patch to find the installed module in the tests.
---
debian/control | 1 +
debian/patches/autopkgtest.patch | 44 ++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 46 insertions(+)
diff --git a/debian/control b/debian/control
index 325f6d6..2e89be0 100644
--- a/debian/control
+++ b/debian/control
@@ -19,6 +19,7 @@ Standards-Version: 3.9.6
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libmodule-extractuse-perl.git
Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libmodule-extractuse-perl.git
Homepage: https://metacpan.org/release/Module-ExtractUse
+Testsuite: autopkgtest-pkg-perl
Package: libmodule-extractuse-perl
Architecture: all
diff --git a/debian/patches/autopkgtest.patch b/debian/patches/autopkgtest.patch
new file mode 100644
index 0000000..8585354
--- /dev/null
+++ b/debian/patches/autopkgtest.patch
@@ -0,0 +1,44 @@
+Description: use $Config{vendorlib} when run under autopktest
+ as discovered by $ENV{ADTTMP}
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2014-10-17
+
+--- a/t/20_parse_self.t
++++ b/t/20_parse_self.t
+@@ -4,13 +4,14 @@
+ use Test::Deep;
+ use Test::NoWarnings;
+ use Module::ExtractUse;
++use Config;
+
+ # test testfile
+ {
+ my $p=Module::ExtractUse->new;
+ my @used=$p->extract_use($0)->array;
+ cmp_deeply(\@used,
+- bag(qw(strict Test::More Test::Deep Test::NoWarnings Module::ExtractUse)),
++ bag(qw(strict Test::More Test::Deep Test::NoWarnings Module::ExtractUse Config)),
+ 'modules used in this test script'
+ );
+ @used=$p->extract_use($0)->array_in_eval;
+@@ -20,7 +21,7 @@
+ );
+ @used=$p->extract_use($0)->array_out_of_eval;
+ cmp_deeply(\@used,
+- bag(qw(strict Test::More Test::Deep Test::NoWarnings Module::ExtractUse)),
++ bag(qw(strict Test::More Test::Deep Test::NoWarnings Module::ExtractUse Config)),
+ 'mandatory modules used in this test script'
+ );
+ }
+@@ -28,7 +29,8 @@
+ # test Module::ExtractUse
+ {
+ my $p=Module::ExtractUse->new;
+- $p->extract_use('lib/Module/ExtractUse.pm');
++ my $dir = $ENV{ADTTMP} ? $Config{vendorlib} : "lib";
++ $p->extract_use("$dir/Module/ExtractUse.pm");
+ cmp_deeply($p->arrayref,
+ bag(qw(strict version warnings Pod::Strip Parse::RecDescent Module::ExtractUse::Grammar Carp 5.008)),
+ 'modules used in this Module::ExtractUsed');
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/libmodule-extractuse-perl.git
More information about the Pkg-perl-cvs-commits
mailing list