[libsys-hostname-long-perl] 01/01: Remove "use lib" usage from test suite to allow as-installed testing
Axel Beckert
abe at deuxchevaux.org
Sun May 10 16:33:02 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository libsys-hostname-long-perl.
commit 4dec8da5012c0f9a5232fcb2f58ee8ab6adafa88
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Sun May 10 18:30:57 2015 +0200
Remove "use lib" usage from test suite to allow as-installed testing
Now we can make and mark the package autopkgtestable.
---
debian/changelog | 2 ++
debian/control | 1 +
debian/patches/dont-use-use-lib-lib.patch | 17 +++++++++++++++++
debian/patches/series | 1 +
4 files changed, 21 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index d31aa4e..4032f28 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ libsys-hostname-long-perl (1.5-1) UNRELEASED; urgency=medium
* Add full module name to long description. Fixes pkg-perl specific
lintian warning no-module-name-in-description.
* Declare compliance with Debian Policy 3.9.6 (no other changes needed).
+ * Add patch to remove "use lib" usage from test suite to allow
+ as-installed testing and hence make the package autopkgtestable.
-- Axel Beckert <abe at debian.org> Sun, 10 May 2015 18:11:03 +0200
diff --git a/debian/control b/debian/control
index 047bd05..438e9a5 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Standards-Version: 3.9.6
Homepage: https://metacpan.org/release/Sys-Hostname-Long
Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libsys-hostname-long-perl.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libsys-hostname-long-perl.git
+Testsuite: autopkgtest-pkg-perl
Package: libsys-hostname-long-perl
Architecture: all
diff --git a/debian/patches/dont-use-use-lib-lib.patch b/debian/patches/dont-use-use-lib-lib.patch
new file mode 100644
index 0000000..093f70e
--- /dev/null
+++ b/debian/patches/dont-use-use-lib-lib.patch
@@ -0,0 +1,17 @@
+Description: Don't use "use lib 'lib'" to allow as-installed testing
+Author: Axel Beckert <abe at debian.org>
+
+Index: libsys-hostname-long-perl/t/local.t
+===================================================================
+--- libsys-hostname-long-perl.orig/t/local.t 2015-05-10 18:10:20.101044444 +0200
++++ libsys-hostname-long-perl/t/local.t 2015-05-10 18:24:18.026785200 +0200
+@@ -2,9 +2,6 @@
+ use strict;
+ use Test;
+
+-use lib '../lib';
+-use lib 'lib';
+-
+ BEGIN { plan tests => 1 }
+
+ use Sys::Hostname::Long;
diff --git a/debian/patches/series b/debian/patches/series
index 186fd0f..79bd1ea 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
nobody-vs-nologin.patch
+dont-use-use-lib-lib.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libsys-hostname-long-perl.git
More information about the Pkg-perl-cvs-commits
mailing list