From: Modestas Vainius Date: Thu, 12 Nov 2009 18:37:50 +0000 (-0500) Subject: Enable verbose ctest output on test failure X-Git-Tag: 7.4.4~11 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9c484fa4be79b09214a573fdfc8a7ab25d7c7ab1;hp=1679f2ed0172f707480a9cc44e0d045d3f53a1c9;p=debhelper.git Enable verbose ctest output on test failure 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 --- 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