]> git.donarmstrong.com Git - debhelper.git/commitdiff
Enable verbose ctest output on test failure
authorModestas Vainius <modestas@vainius.eu>
Thu, 12 Nov 2009 18:37:50 +0000 (13:37 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 12 Nov 2009 18:37:50 +0000 (13:37 -0500)
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>
Debian/Debhelper/Buildsystem/cmake.pm

index 21a077ec284eb43e9c0364d8f86f88b53a7b5f1b..645c8c03faf6b16e7c6e1f7b7431a7b6cc6afe88 100644 (file)
@@ -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