[libmath-randomorg-perl] 01/05: Add missing build-dependency on LWP::Simple and a simple use.t that would have caught this. Add back coverage testing (cf. #720268 / RT#89061)
Florian Schlichting
fsfs at moszumanska.debian.org
Thu Dec 31 13:41:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
fsfs pushed a commit to branch master
in repository libmath-randomorg-perl.
commit 474cc67a4d335096298a039eb69fe9e576bebe54
Author: Florian Schlichting <fsfs at debian.org>
Date: Thu Dec 31 14:30:08 2015 +0100
Add missing build-dependency on LWP::Simple and a simple use.t that would have caught this. Add back coverage testing (cf. #720268 / RT#89061)
---
debian/control | 4 +++-
debian/patches/series | 1 +
debian/patches/use.t | 13 +++++++++++++
debian/rules | 2 +-
4 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 13c6a57..06e4cfd 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,9 @@ Section: perl
Priority: optional
Build-Depends: debhelper (>= 8)
Build-Depends-Indep: perl,
- libtest-pod-perl
+ libtest-pod-perl,
+ libtest-pod-coverage-perl,
+ libwww-perl
Standards-Version: 3.9.4
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libmath-randomorg-perl.git
Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libmath-randomorg-perl.git
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b82e939
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use.t
diff --git a/debian/patches/use.t b/debian/patches/use.t
new file mode 100644
index 0000000..5ca9cd6
--- /dev/null
+++ b/debian/patches/use.t
@@ -0,0 +1,13 @@
+Description: add a simple use test
+ We don't run the network based tests, but should have something that actually
+ loads the package's module.
+Author: Florian Schlichting <fsfs at debian.org>
+Forwarded: not-needed
+
+--- /dev/null
++++ b/t/01use.t
+@@ -0,0 +1,4 @@
++use strict;
++use Test::More;
++require_ok('Math::RandomOrg');
++done_testing;
diff --git a/debian/rules b/debian/rules
index 922626a..7832ced 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,4 +5,4 @@
override_dh_auto_test:
# do not run network-based tests
- dh_auto_test -- TEST_FILES="t/pod*"
+ dh_auto_test -- TEST_FILES="t/01use.t t/pod*"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmath-randomorg-perl.git
More information about the Pkg-perl-cvs-commits
mailing list