[libtest-autoloader-perl] 03/04: Make the package autopkgtestable
Niko Tyni
ntyni at moszumanska.debian.org
Mon Dec 7 21:13:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
ntyni pushed a commit to branch master
in repository libtest-autoloader-perl.
commit c79c005fa4e90b36dcdff6ec3754d93ac22d4b5a
Author: Niko Tyni <ntyni at debian.org>
Date: Mon Dec 7 23:00:15 2015 +0200
Make the package autopkgtestable
---
debian/control | 1 +
...st-if-NO_TEST_POD-is-set-in-the-environme.patch | 28 ++++++++++++++++++++++
debian/patches/series | 1 +
debian/tests/pkg-perl/smoke-env | 2 ++
debian/tests/pkg-perl/smoke-files | 2 ++
5 files changed, 34 insertions(+)
diff --git a/debian/control b/debian/control
index 9a3d73b..dc61c23 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Standards-Version: 3.9.4
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libtest-autoloader-perl.git
Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libtest-autoloader-perl.git
Homepage: https://metacpan.org/release/Test-AutoLoader
+Testsuite: autopkgtest-pkg-perl
Package: libtest-autoloader-perl
Architecture: all
diff --git a/debian/patches/0001-Skip-POD-test-if-NO_TEST_POD-is-set-in-the-environme.patch b/debian/patches/0001-Skip-POD-test-if-NO_TEST_POD-is-set-in-the-environme.patch
new file mode 100644
index 0000000..da53d7e
--- /dev/null
+++ b/debian/patches/0001-Skip-POD-test-if-NO_TEST_POD-is-set-in-the-environme.patch
@@ -0,0 +1,28 @@
+From 279936ae2df010755e3aa5f1c3dc6f1fa075d447 Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Mon, 7 Dec 2015 23:03:52 +0200
+Subject: [PATCH] Skip POD test if NO_TEST_POD is set in the environment
+
+This is to accommodate Debian as-installed testing ("autopkgtest"),
+where we don't have the .pm file in the test tree.
+
+Forwarded: not-needed
+---
+ t/00basic.t | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/t/00basic.t b/t/00basic.t
+index a6b2345..b5b7b20 100644
+--- a/t/00basic.t
++++ b/t/00basic.t
+@@ -15,6 +15,7 @@ use_ok("Test::AutoLoader");
+ can_ok("Test::AutoLoader",'autoload_ok');
+ SKIP: {
+ skip "Pod test requires Test::Pod 0.95",1 if $NO_TEST_POD;
++ skip "Pod test skipped due to \$ENV{NO_TEST_POD}",1 if $ENV{NO_TEST_POD};
+ pod_file_ok("AutoLoader.pm");
+ }
+
+--
+2.6.2
+
diff --git a/debian/patches/series b/debian/patches/series
index a4b2efa..8f6969e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
notests.patch
Test-AutoLoader-0.03-Skip-POSIX-tests-with-perl-5.16.patch
0001-Set-the-locale-to-C-for-the-test-suite.patch
+0001-Skip-POD-test-if-NO_TEST_POD-is-set-in-the-environme.patch
diff --git a/debian/tests/pkg-perl/smoke-env b/debian/tests/pkg-perl/smoke-env
new file mode 100644
index 0000000..ab19a27
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-env
@@ -0,0 +1,2 @@
+# we patch the test suite to look at this
+NO_TEST_POD=1
diff --git a/debian/tests/pkg-perl/smoke-files b/debian/tests/pkg-perl/smoke-files
new file mode 100644
index 0000000..22a3e55
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-files
@@ -0,0 +1,2 @@
+t
+tlib
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtest-autoloader-perl.git
More information about the Pkg-perl-cvs-commits
mailing list