/[gentoo-x86]/eclass/cmake-utils.eclass
Gentoo

Diff of /eclass/cmake-utils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.71 Revision 1.72
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.71 2011/08/20 21:43:25 dilfridge Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.72 2011/08/21 21:19:08 dilfridge Exp $
4 4
5# @ECLASS: cmake-utils.eclass 5# @ECLASS: cmake-utils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# 8#
437 _check_build_dir 437 _check_build_dir
438 pushd "${CMAKE_BUILD_DIR}" > /dev/null 438 pushd "${CMAKE_BUILD_DIR}" > /dev/null
439 [[ -e CTestTestfile.cmake ]] || { echo "No tests found. Skipping."; return 0 ; } 439 [[ -e CTestTestfile.cmake ]] || { echo "No tests found. Skipping."; return 0 ; }
440 440
441 [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" 441 [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
442
443 if ctest ${ctestargs} "$@" ; then
444 einfo "Tests succeeded."
445 else
446 if [[ -n "${CMAKE_YES_I_WANT_TO_SEE_THE_TEST_LOG}" ]] ; then
447 # on request from Diego
448 eerror "Tests failed. Test log ${CMAKE_BUILD_DIR}/Testing/Temporary/LastTest.log follows:"
449 eerror "--START TEST LOG--------------------------------------------------------------"
450 cat "${CMAKE_BUILD_DIR}/Testing/Temporary/LastTest.log"
451 eerror "--END TEST LOG----------------------------------------------------------------"
452 die "Tests failed."
453 else
442 ctest ${ctestargs} "$@" || die "Tests failed. When you file a bug, please attach the following file: \n\t${CMAKE_BUILD_DIR}/Testing/Temporary/LastTest.log" 454 die "Tests failed. When you file a bug, please attach the following file: \n\t${CMAKE_BUILD_DIR}/Testing/Temporary/LastTest.log"
455 fi
456 fi
443 popd > /dev/null 457 popd > /dev/null
444} 458}
445 459
446# @FUNCTION: cmake-utils_src_configure 460# @FUNCTION: cmake-utils_src_configure
447# @DESCRIPTION: 461# @DESCRIPTION:

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

  ViewVC Help
Powered by ViewVC 1.1.20