/[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.82 Revision 1.83
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.82 2012/09/27 16:35:41 axs Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.83 2012/10/02 08:14:36 kensington 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# @AUTHOR: 8# @AUTHOR:
470 470
471 [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" 471 [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
472 472
473 if ctest ${ctestargs} "$@" ; then 473 if ctest ${ctestargs} "$@" ; then
474 einfo "Tests succeeded." 474 einfo "Tests succeeded."
475 popd > /dev/null
476 return 0
475 else 477 else
476 if [[ -n "${CMAKE_YES_I_WANT_TO_SEE_THE_TEST_LOG}" ]] ; then 478 if [[ -n "${CMAKE_YES_I_WANT_TO_SEE_THE_TEST_LOG}" ]] ; then
477 # on request from Diego 479 # on request from Diego
478 eerror "Tests failed. Test log ${CMAKE_BUILD_DIR}/Testing/Temporary/LastTest.log follows:" 480 eerror "Tests failed. Test log ${CMAKE_BUILD_DIR}/Testing/Temporary/LastTest.log follows:"
479 eerror "--START TEST LOG--------------------------------------------------------------" 481 eerror "--START TEST LOG--------------------------------------------------------------"
481 eerror "--END TEST LOG----------------------------------------------------------------" 483 eerror "--END TEST LOG----------------------------------------------------------------"
482 die "Tests failed." 484 die "Tests failed."
483 else 485 else
484 die "Tests failed. When you file a bug, please attach the following file: \n\t${CMAKE_BUILD_DIR}/Testing/Temporary/LastTest.log" 486 die "Tests failed. When you file a bug, please attach the following file: \n\t${CMAKE_BUILD_DIR}/Testing/Temporary/LastTest.log"
485 fi 487 fi
486 fi 488
489 # die might not die due to nonfatal
487 popd > /dev/null 490 popd > /dev/null
491 return 1
492 fi
488} 493}
489 494
490# @FUNCTION: cmake-utils_src_configure 495# @FUNCTION: cmake-utils_src_configure
491# @DESCRIPTION: 496# @DESCRIPTION:
492# General function for configuring with cmake. Default behaviour is to start an 497# General function for configuring with cmake. Default behaviour is to start an

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83

  ViewVC Help
Powered by ViewVC 1.1.20