[dpkg] 16/187: build: Specify exec argument for TAP::Harness
Reiner Herrmann
reiner at reiner-h.de
Sun Nov 6 12:46:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
deki-guest pushed a commit to branch master
in repository dpkg.
commit 4ccdc11f30a1a5a87f0172449ffce546275c6dc5
Author: Guillem Jover <guillem at debian.org>
Date: Mon Sep 12 02:03:35 2016 +0200
build: Specify exec argument for TAP::Harness
Older versions of TAP::Harness do not handle non-perl executables. So
check if the test has the executable bits, and return an arrayref to
use it, otherwise return undef to use the perl interpreter.
---
check.am | 2 ++
debian/changelog | 2 ++
2 files changed, 4 insertions(+)
diff --git a/check.am b/check.am
index c902a40..48e4a26 100644
--- a/check.am
+++ b/check.am
@@ -14,6 +14,8 @@ TEST_PARALLEL ?= 1
TEST_RUNNER = '\
my $$harness = TAP::Harness->new({ \
+ exec => sub { my (undef, $$test) = @_; \
+ return -x $$test ? [ $$test ] : undef }, \
lib => [ "$(top_srcdir)/scripts", "$(top_srcdir)/dselect/methods" ], \
color => 1, \
verbosity => $(TEST_VERBOSE), \
diff --git a/debian/changelog b/debian/changelog
index ec86816..da95cf2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,8 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
when some unrelated warning needs to be emitted.
- Bump po4a version to 0.43 (we are using --porefs wrap option).
- Add support for running the test suite in parallel.
+ - Specify exec argument for TAP::Harness to gracefully handle non-perl
+ executables with older versions of the module.
[ Updated manpages translations ]
* German (Helge Kreutzmann).
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list