[libconfig-identity-perl] 01/03: Run tests with gpg1.
gregor herrmann
gregoa at debian.org
Sun Aug 28 15:31:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libconfig-identity-perl.
commit 1b1f4eb77f3304ea7627a11e8afd887c94a1e4c1
Author: gregor herrmann <gregoa at debian.org>
Date: Sun Aug 28 17:11:43 2016 +0200
Run tests with gpg1.
Add build dependency on gnupg1 and set CI_GPG in debian/rules and
debian/tests/pkg-perl/smoke-env.
The tests are skipped if no gpg is found but if gnupg2 is installed they
fail because of the key material in t/assets/gpg.
CPAN RT#112569 provides a different solution: to convert the key material to
gnupg2 before running the tests. This works as well but leaves more changed
files behind.
Thanks: Lucas Nussbaum for the bug report.
Closes: #835711
---
debian/control | 3 ++-
debian/rules | 3 +++
debian/tests/pkg-perl/smoke-env | 1 +
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index bd78978..e62e4d5 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,8 @@ Section: perl
Testsuite: autopkgtest-pkg-perl
Priority: optional
Build-Depends: debhelper (>= 9)
-Build-Depends-Indep: libfile-homedir-perl,
+Build-Depends-Indep: gnupg1,
+ libfile-homedir-perl,
libfile-which-perl,
libipc-run-perl,
libtest-most-perl,
diff --git a/debian/rules b/debian/rules
index 2d33f6a..463e2d2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,6 @@
%:
dh $@
+
+override_dh_auto_test:
+ CI_GPG=/usr/bin/gpg1 dh_auto_test
diff --git a/debian/tests/pkg-perl/smoke-env b/debian/tests/pkg-perl/smoke-env
new file mode 100644
index 0000000..63fc4bc
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-env
@@ -0,0 +1 @@
+CI_GPG=/usr/bin/gpg1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-identity-perl.git
More information about the Pkg-perl-cvs-commits
mailing list