From 9c484fa4be79b09214a573fdfc8a7ab25d7c7ab1 Mon Sep 17 00:00:00 2001 From: Modestas Vainius Date: Thu, 12 Nov 2009 13:37:50 -0500 Subject: [PATCH] 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 --- Debian/Debhelper/Buildsystem/cmake.pm | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.2