[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#714546: debhelper: Please make Perl tests verbose



Package: debhelper
Version: 9.20130626
Severity: wishlist
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Having verbose test outputs helps in debugging; find attached a
tested patch for both Perl build systems.

Cheers,
gregor


- -- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental'), (500, 'testing'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_AT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debhelper depends on:
ii  binutils    2.23.52.20130620-1
ii  dpkg        1.16.10
ii  dpkg-dev    1.16.10
ii  file        1:5.14-2
ii  man-db      2.6.5-2
ii  perl        5.14.2-21
ii  po-debconf  1.0.16+nmu2

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  0.62

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJR0GCKAAoJELs6aAGGSaoGWLAQAMR1hZeAfJzx4vQ7NL5NYT6h
RvGvm+ACAEE3gaB3hgOAXel1R6HZEcCfncZsEuSXHZIrjViDQSriwcO7whguYYmP
8MWrfd8kEG0PIHFVS1ANGsPgR1GklXolhvWFiEhb1PLT7SHEbaeadVWjaDX279x9
AVqlCGWkbFFhyEPHvdc2dr83pApoGQlz2g43iBHIT3wI1WIP8Woz9iRutyuEj/eV
FWQVgBxdV2GyLvmodjdhD3hpPhKWlCqdBruo40BNgiZUvvggqO4FySpSRy5SyRbc
RGmSWbiIW4mmjn3dN4gomrkC0BU0SGGEY0VelLHgufrTUYGAgj965I2EwFpfcCWT
itXVWbR8xOzH8XNpzP1sO9ehNjwx58oEPE9YqkHP0oDfjshTAyeAPj7Jgz2kO+pC
/IhHkBb3D0BmkOPtjHXEx0SQAU2fWsbNws7na85z4c4nNbQ6KiKTsYxXl5IFXgj3
W6gyItYNPWPm6ep89j9FNT3zOFD5Jdp8BSuHvcHfmRLtu5HcKQ3WmOEtUF4LWuRV
jtuTqgw6m/P9onSSIAqjwIWgh6562vx34HUWN6YuClGJ1Lo7yWIvgvJhWjHXOOyz
f+dYsgYHFaDQLyhvDgJzLb9hWwQBsWxhVlV2cmgyfphRCgCk8FAYnq9HX7/EBqSm
puh4G9R3eT3sf6M/PZ9n
=oSMf
-----END PGP SIGNATURE-----
diff --git a/Debian/Debhelper/Buildsystem/perl_build.pm b/Debian/Debhelper/Buildsystem/perl_build.pm
index 671bca5..3ccefea 100644
--- a/Debian/Debhelper/Buildsystem/perl_build.pm
+++ b/Debian/Debhelper/Buildsystem/perl_build.pm
@@ -58,7 +58,7 @@ sub build {
 
 sub test {
 	my $this=shift;
-	$this->do_perl("Build", "test", @_);
+	$this->do_perl("Build", "test", "--verbose", 1, @_);
 }
 
 sub install {
diff --git a/Debian/Debhelper/Buildsystem/perl_makemaker.pm b/Debian/Debhelper/Buildsystem/perl_makemaker.pm
index 60cda3d..cbf3061 100644
--- a/Debian/Debhelper/Buildsystem/perl_makemaker.pm
+++ b/Debian/Debhelper/Buildsystem/perl_makemaker.pm
@@ -61,6 +61,12 @@ sub configure {
 		@flags, @_);
 }
 
+sub test {
+	my $this=shift;
+	# Make tests verbose
+	$this->SUPER::test("TEST_VERBOSE=1", @_);
+}
+
 sub install {
 	my $this=shift;
 	my $destdir=shift;

Reply to: