summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Buildsystem/cmake.pm
diff options
context:
space:
mode:
authorModestas Vainius <modestas@vainius.eu>2009-11-12 13:37:50 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-11-12 13:37:50 -0500
commit9c484fa4be79b09214a573fdfc8a7ab25d7c7ab1 (patch)
treea5274b76730789e712c54a9360b2b4d18006f085 /Debian/Debhelper/Buildsystem/cmake.pm
parent1679f2ed0172f707480a9cc44e0d045d3f53a1c9 (diff)
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 <modestas@vainius.eu>
Diffstat (limited to 'Debian/Debhelper/Buildsystem/cmake.pm')
-rw-r--r--Debian/Debhelper/Buildsystem/cmake.pm7
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