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

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

commit 6e9c85b033b3484e4ef765bf57e39989437d25e1
Author: gregor herrmann <gre...@debian.org>
Date:   Sat May 30 23:03:15 2015 +0200

    Mark package as autopkgtest-able.
---
 debian/control                   |  1 +
 debian/patches/autopkgtest.patch | 35 +++++++++++++++++++++++++++++++++++
 debian/patches/series            |  1 +
 debian/tests/pkg-perl/skip-smoke |  1 +
 4 files changed, 38 insertions(+)

diff --git a/debian/control b/debian/control
index 3b98a24..bb2aa24 100644
--- a/debian/control
+++ b/debian/control
@@ -14,6 +14,7 @@ Standards-Version: 3.9.6
 Vcs-Browser: 
https://anonscm.debian.org/cgit/pkg-perl/packages/libmodule-util-perl.git
 Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libmodule-util-perl.git
 Homepage: https://metacpan.org/release/Module-Util
+Testsuite: autopkgtest-pkg-perl
 
 Package: libmodule-util-perl
 Architecture: all
diff --git a/debian/patches/autopkgtest.patch b/debian/patches/autopkgtest.patch
new file mode 100644
index 0000000..0731302
--- /dev/null
+++ b/debian/patches/autopkgtest.patch
@@ -0,0 +1,35 @@
+Description: adjust path when run under autopkgtest
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gre...@debian.org>
+Last-Update: 2015-05-30
+
+--- a/t/01..module.t
++++ b/t/01..module.t
+@@ -10,6 +10,8 @@
+     use_ok($module, qw( :all ));
+ }
+ 
++my $moduledir = $ENV{ADTTMP} ? '/usr/share/perl5' : 'lib';
++
+ ok(is_valid_module_name($module), 'is_valid_module_name');
+ ok(find_installed($module),       "find_installed");
+ 
+@@ -52,7 +54,7 @@
+ 
+ ok(!find_installed($module, 't/lib'), "Module::Util not found in t/lib");
+ 
+-is(all_installed($module, 'lib'), 1, "Module::Util only found once in lib");
++is(all_installed($module, $moduledir), 1, "Module::Util only found once in 
lib");
+ is(all_installed("::Invalid"), 0, "::Invalid is not installed at all");
+ 
+ {
+@@ -69,7 +71,7 @@
+     }
+ }
+ 
+-$path = catfile('lib', module_fs_path($module)) || '';
++$path = catfile($moduledir, module_fs_path($module)) || '';
+ ok(-f $path, "'$path' exists");
+ 
+ # path_to_module should fail when given a module name
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/skip-smoke b/debian/tests/pkg-perl/skip-smoke
new file mode 100644
index 0000000..a4afb2e
--- /dev/null
+++ b/debian/tests/pkg-perl/skip-smoke
@@ -0,0 +1 @@
+t/99..pod.t

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