Package: debhelper
Version: 7.4.3
Severity: normal
Tags: patch

Hello,

When test fails, enable verbose ctest output. This allows to
get more details on a test failure from the build logs.

This bug "inspired" #555805 patch. Fixing that one would ensure that this
verbose mode would be enabled even on a typical cmake package in build system
auto-selection mode.

1. http://bugs.debian.org/555805

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (SMP w/1 CPU core)
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debhelper depends on:
ii  binutils                      2.20-3     The GNU assembler, linker and bina
ii  dpkg-dev                      1.15.4.1   Debian package development tools
ii  file                          5.03-3     Determines file type using "magic"
ii  html2text                     1.3.2a-14  advanced HTML to text converter
ii  man-db                        2.5.6-4    on-line manual pager
ii  perl                          5.10.1-7   Larry Wall's Practical Extraction 
ii  perl-base                     5.10.1-7   minimal Perl system
ii  po-debconf                    1.0.16     tool for managing templates file t

debhelper recommends no packages.

Versions of packages debhelper suggests:
pn  dh-make                       <none>     (no description available)

-- no debconf information
--- Begin Message ---
When test fails, enable verbose ctest output. This allows to
get more details on a test failure from the build logs.

Signed-off-by: Modestas Vainius <[email protected]>

---
 Debian/Debhelper/Buildsystem/cmake.pm |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/Debian/Debhelper/Buildsystem/cmake.pm 
b/Debian/Debhelper/Buildsystem/cmake.pm
index 21a077e..645c8c0 100644
--- a/Debian/Debhelper/Buildsystem/cmake.pm
+++ b/Debian/Debhelper/Buildsystem/cmake.pm
@@ -40,4 +40,11 @@ sub configure {
        $this->doit_in_builddir("cmake", $this->get_source_rel2builddir(), 
@flags, @_);
 }
 
+sub test {
+       my $this=shift;
+
+       $ENV{CTEST_OUTPUT_ON_FAILURE} = 1;
+       return $this->test(@_);
+}
+
 1
-- 
tg: (07e276d..) patch/ctest_verbose (depends on: master)

--- End Message ---

Reply via email to