[libdevel-cover-perl] 01/01: Add support for autopkgtest

Axel Beckert abe at deuxchevaux.org
Thu Apr 21 21:56:49 UTC 2016


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

abe pushed a commit to branch master
in repository libdevel-cover-perl.

commit e9e37362db3b1f3af7136aacd4724e6b92387b3f
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Thu Apr 21 23:55:09 2016 +0200

    Add support for autopkgtest
    
    Requires pkg-perl-autopkgtest ≥ 0.29.
---
 debian/changelog                  |  1 +
 debian/control                    |  1 +
 debian/tests/pkg-perl/SKIP        |  1 +
 debian/tests/pkg-perl/smoke-files |  4 ++++
 debian/tests/pkg-perl/smoke-setup | 24 ++++++++++++++++++++++++
 debian/tests/pkg-perl/smoke-skip  |  7 +++++++
 debian/tests/pkg-perl/smoke-tests |  2 ++
 7 files changed, 40 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9839e57..11b8f01 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ libdevel-cover-perl (1.22-1) UNRELEASED; urgency=medium
   [ Axel Beckert ]
   * Imported upstream version 1.22. Happy 15th Birthday, Devel::Cover!
   * Declare compliance with Debian Policy 3.9.8. (No changes needed.)
+  * Add support for autopkgtest. Requires pkg-perl-autopkgtest ≥ 0.29.
 
  -- Axel Beckert <abe at debian.org>  Thu, 21 Apr 2016 09:40:01 +0200
 
diff --git a/debian/control b/debian/control
index 3fee8a0..2f9568b 100644
--- a/debian/control
+++ b/debian/control
@@ -18,6 +18,7 @@ Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libdevel-cover-perl.git
 Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libdevel-cover-perl.git
 Homepage: https://metacpan.org/release/Devel-Cover
+Testsuite: autopkgtest-pkg-perl
 
 Package: libdevel-cover-perl
 Architecture: any
diff --git a/debian/tests/pkg-perl/SKIP b/debian/tests/pkg-perl/SKIP
new file mode 100644
index 0000000..e0d7ab6
--- /dev/null
+++ b/debian/tests/pkg-perl/SKIP
@@ -0,0 +1 @@
+/usr/share/pkg-perl-autopkgtest/runtime-deps.d/use.t
diff --git a/debian/tests/pkg-perl/smoke-files b/debian/tests/pkg-perl/smoke-files
new file mode 100644
index 0000000..a768edd
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-files
@@ -0,0 +1,4 @@
+test_output
+tests
+t
+Makefile.PL
diff --git a/debian/tests/pkg-perl/smoke-setup b/debian/tests/pkg-perl/smoke-setup
new file mode 100755
index 0000000..d69f77b
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-setup
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+### Devel::Cover autopkgtest setup -- Axel Beckert, 2016-Apr-21
+
+# Create an empty directory where Makefile.PL can dump Inc.pm into.
+mkdir -pv $TDIR/lib/Devel/Cover/
+
+# Copy lib/Devel/Cover.pm for Makefile.PL's ABSTRACT_FROM.
+cp -pv lib/Devel/Cover.pm $TDIR/lib/Devel/;
+
+# Switch to the temporary directory and call Makefile.PL there to get
+# all the paths in the generated files right.
+cd $TDIR;
+perl Makefile.PL
+
+# Remove copied lib/Devel/Cover.pm again so this local copy from the
+# source code can't be used and the installed version is used instead.
+rm -vf lib/Devel/Cover.pm
+
+# Symlink /usr/bin to $TDIR/bin so that bin/cover is the installed
+# version at /usr/bin/cover. Same for the directory with the Report
+# modules.
+ln -vs /usr/bin ./
+ln -vs /usr/lib/*/perl5/5*/Devel/Cover/Report lib/Devel/Cover/Report
diff --git a/debian/tests/pkg-perl/smoke-skip b/debian/tests/pkg-perl/smoke-skip
new file mode 100644
index 0000000..952caa7
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-skip
@@ -0,0 +1,7 @@
+# https://lists.alioth.debian.org/pipermail/reproducible-builds/Week-of-Mon-20160418/005305.html
+t/e2e/change.t
+t/e2e/eval_merge.t
+t/e2e/eval_merge_sep.t
+t/e2e/eval_sub.t
+t/e2e/eval_use.t
+t/e2e/md5.t
diff --git a/debian/tests/pkg-perl/smoke-tests b/debian/tests/pkg-perl/smoke-tests
new file mode 100644
index 0000000..5bd84a5
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-tests
@@ -0,0 +1,2 @@
+# Devel::Cover has all tests one level deeper than usual
+t/*/*.t

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdevel-cover-perl.git



More information about the Pkg-perl-cvs-commits mailing list