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

gregoa pushed a commit to branch master
in repository libmodule-info-perl.

commit f0c73ac34ecad06532520f2d5e5b2a0dc63160be
Author: gregor herrmann <gre...@debian.org>
Date:   Sat May 30 23:32:52 2015 +0200

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

diff --git a/debian/control b/debian/control
index 0833e84..4a838e2 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,7 @@ Standards-Version: 3.9.6
 Homepage: https://metacpan.org/release/Module-Info
 Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libmodule-info-perl.git
 Vcs-Browser: 
https://anonscm.debian.org/cgit/pkg-perl/packages/libmodule-info-perl.git
+Testsuite: autopkgtest-pkg-perl
 
 Package: libmodule-info-perl
 Architecture: all
diff --git a/debian/patches/autopkgtest.patch b/debian/patches/autopkgtest.patch
new file mode 100644
index 0000000..34fdc24
--- /dev/null
+++ b/debian/patches/autopkgtest.patch
@@ -0,0 +1,60 @@
+Description: adjust paths when run under autopkgtest
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gre...@debian.org>
+Last-Update: 2015-05-30
+
+--- a/t/Module-Info.t
++++ b/t/Module-Info.t
+@@ -4,6 +4,9 @@
+ use Test::More tests => 59;
+ use Config;
+ 
++my $libdir = $ENV{ADTTMP} ? '/usr/share/perl5' : 'lib';
++my $blibdir = $ENV{ADTTMP} ? '/usr/share/perl5' : 'blib/lib';
++
+ my $has_version_pm = eval 'use version; 1';
+ my $version_pm_VERSION = $has_version_pm ? 'version'->VERSION : 0;
+ my $Mod_Info_VERSION = '0.35';
+@@ -59,7 +62,7 @@
+ 
+ can_ok('Module::Info', @expected_subs);
+ 
+-my $mod_info = Module::Info->new_from_file('lib/Module/Info.pm');
++my $mod_info = Module::Info->new_from_file("$libdir/Module/Info.pm");
+ isa_ok($mod_info, 'Module::Info', 'new_from_file');
+ 
+ ok( !$mod_info->name,                       '    has no name' );
+@@ -67,7 +70,7 @@
+ ok( $mod_info->name,                        '    name set' );
+ is( $mod_info->version, $Mod_Info_VERSION,  '    version()' );
+ ok( !$mod_info->inc_dir,                    '    has no inc_dir' );
+-is( $mod_info->file, File::Spec->rel2abs('lib/Module/Info.pm'),
++is( $mod_info->file, File::Spec->rel2abs("$libdir/Module/Info.pm"),
+                                             '    file()');
+ ok( !$mod_info->is_core,                    '    not a core module' );
+ 
+@@ -109,9 +112,9 @@
+ 
+ is( $mod_info->name, 'Module::Info',        '    name()' );
+ is( $mod_info->version, $Mod_Info_VERSION,  '    version()' );
+-is( $mod_info->inc_dir, File::Spec->rel2abs('blib/lib'),
++is( $mod_info->inc_dir, File::Spec->rel2abs("$blibdir"),
+                                             '    inc_dir' );
+-is( $mod_info->file, File::Spec->rel2abs('blib/lib/Module/Info.pm'),
++is( $mod_info->file, File::Spec->rel2abs("$blibdir/Module/Info.pm"),
+                                             '    file()');
+ ok( !$mod_info->is_core,                    '    not a core module' );
+ 
+@@ -144,9 +147,9 @@
+ 
+ is( $mod_info->name, 'Module::Info',        '    name()' );
+ is( $mod_info->version, $Mod_Info_VERSION,  '    version()' );
+-is( $mod_info->inc_dir, File::Spec->rel2abs('blib/lib'),
++is( $mod_info->inc_dir, File::Spec->rel2abs("$blibdir"),
+                                             '    inc_dir' );
+-is( $mod_info->file, File::Spec->rel2abs('blib/lib/Module/Info.pm'),
++is( $mod_info->file, File::Spec->rel2abs("$blibdir/Module/Info.pm"),
+                                             '    file()');
+ ok( !$mod_info->is_core,                    '    not a core module' );
+ 
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-info-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