[libterm-ui-perl] 03/03: Mark package as autopkgtestable.
Axel Beckert
abe at deuxchevaux.org
Thu Jul 2 22:26:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository libterm-ui-perl.
commit 8a6f5d8e3901a81e2f451ffadcab1d4b446e6d02
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Fri Jul 3 00:24:54 2015 +0200
Mark package as autopkgtestable.
Patch test suite to remove the usage of "use lib 'lib'". Otherwise
as-installed testing won't work and the packaging already cares about
passing -Ilib and friends to prove.
---
debian/changelog | 2 ++
debian/control | 1 +
debian/patches/no-use-lib-lib.patch | 41 +++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
4 files changed, 45 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 2a772fc..54e8fa9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ libterm-ui-perl (0.46-1) UNRELEASED; urgency=medium
* Import upstream version 0.46
* Declare compliance with Debian Policy 3.9.6.
* Apply wrap-and-sort.
+ * Mark package as autopkgtestable.
+ + Remove usage of "use lib 'lib'" in the test suite.
-- Axel Beckert <abe at debian.org> Fri, 03 Jul 2015 00:01:01 +0200
diff --git a/debian/control b/debian/control
index e99f234..8896396 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Standards-Version: 3.9.6
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libterm-ui-perl.git
Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libterm-ui-perl.git
Homepage: https://metacpan.org/release/Term-UI
+Testsuite: autopkgtest-pkg-perl
Package: libterm-ui-perl
Architecture: all
diff --git a/debian/patches/no-use-lib-lib.patch b/debian/patches/no-use-lib-lib.patch
new file mode 100644
index 0000000..1b09a0b
--- /dev/null
+++ b/debian/patches/no-use-lib-lib.patch
@@ -0,0 +1,41 @@
+Description: Don't hardcode "use lib 'lib'" in the test suite
+ Otherwise as-installed testing won't work and the packaging already
+ cares about passing -Ilib and friends to prove.
+Author: Axel Beckert <abe at debian.org>
+
+Index: libterm-ui-perl/t/00_load.t
+===================================================================
+--- libterm-ui-perl.orig/t/00_load.t 2015-07-02 23:59:55.242702229 +0200
++++ libterm-ui-perl/t/00_load.t 2015-07-03 00:13:57.661388153 +0200
+@@ -4,7 +4,6 @@
+ BEGIN {
+ chdir 't' if -d 't';
+ use File::Spec;
+- use lib File::Spec->catdir( qw[.. lib] );
+ }
+
+ my $Class = 'Term::UI';
+Index: libterm-ui-perl/t/01_history.t
+===================================================================
+--- libterm-ui-perl.orig/t/01_history.t 2015-07-02 23:59:55.242702229 +0200
++++ libterm-ui-perl/t/01_history.t 2015-07-03 00:14:08.881294883 +0200
+@@ -4,7 +4,6 @@
+ BEGIN {
+ chdir 't' if -d 't';
+ use File::Spec;
+- use lib File::Spec->catdir( qw[.. lib] );
+ }
+
+ my $Class = 'Term::UI::History';
+Index: libterm-ui-perl/t/02_ui.t
+===================================================================
+--- libterm-ui-perl.orig/t/02_ui.t 2015-07-03 00:01:00.770563170 +0200
++++ libterm-ui-perl/t/02_ui.t 2015-07-03 00:11:28.686666149 +0200
+@@ -1,7 +1,6 @@
+ ### Term::UI test suite ###
+
+ use strict;
+-use lib qw[../lib lib];
+ use Test::More tests => 22;
+ use Term::ReadLine;
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..dfba758
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no-use-lib-lib.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libterm-ui-perl.git
More information about the Pkg-perl-cvs-commits
mailing list