]> git.donarmstrong.com Git - debhelper.git/commitdiff
Enable verbose ctest output on test failure
authorModestas Vainius <modestas@vainius.eu>
Tue, 17 Nov 2009 01:40:26 +0000 (20:40 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Tue, 17 Nov 2009 01:40:26 +0000 (20:40 -0500)
When test fails, enable verbose ctest output. This allows to
get more details on a test failure from the build logs.

Auto-select cmake in further steps only if cmake was run in configure step.
CMake writes CMakeCache.txt to build directory when it is run. Depend on the
presence of this file for auto-selection in build, test, install and clean
steps.

Signed-off-by: Modestas Vainius <modestas@vainius.eu>
Debian/Debhelper/Buildsystem/cmake.pm

index 645c8c03faf6b16e7c6e1f7b7431a7b6cc6afe88..03e6ade591017f02df80807df0f2f9737b92d076 100644 (file)
@@ -17,7 +17,10 @@ sub check_auto_buildable {
        my $this=shift;
        my ($step)=@_;
        my $ret = -e $this->get_sourcepath("CMakeLists.txt");
-       $ret &&= $this->SUPER::check_auto_buildable(@_) if $step ne "configure";
+       if ($step ne "configure") {
+               $ret &&= -e $this->get_buildpath("CMakeCache.txt") &&
+                        $this->SUPER::check_auto_buildable(@_);
+       }
        return $ret;
 }