/[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.67 Revision 1.68
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.67 2011/03/18 19:45:49 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.68 2011/04/27 16:54:44 scarabeus 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#
409 fi 409 fi
410} 410}
411 411
412enable_cmake-utils_src_test() { 412enable_cmake-utils_src_test() {
413 debug-print-function ${FUNCNAME} "$@" 413 debug-print-function ${FUNCNAME} "$@"
414 local ctestargs
414 415
415 _check_build_dir 416 _check_build_dir
416 pushd "${CMAKE_BUILD_DIR}" > /dev/null 417 pushd "${CMAKE_BUILD_DIR}" > /dev/null
417 local ctestargs 418 [[ -e CTestTestfile.cmake ]] || { echo "No tests found. Skipping."; return 0 ; }
419
418 [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" 420 [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
419 ctest ${ctestargs} "$@" || die "Tests failed." 421 ctest ${ctestargs} "$@" || die "Tests failed."
420 popd > /dev/null 422 popd > /dev/null
421} 423}
422 424

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68

  ViewVC Help
Powered by ViewVC 1.1.20