| 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.64 2011/01/19 12:44:55 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.65 2011/01/20 00:48:51 reavertm 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 | # |
| … | |
… | |
| 413 | |
413 | |
| 414 | _check_build_dir |
414 | _check_build_dir |
| 415 | pushd "${CMAKE_BUILD_DIR}" > /dev/null |
415 | pushd "${CMAKE_BUILD_DIR}" > /dev/null |
| 416 | local ctestargs |
416 | local ctestargs |
| 417 | [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" |
417 | [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" |
| 418 | ctest ${ctestargs} || die "Tests failed." |
418 | ctest ${ctestargs} "$@" || die "Tests failed." |
| 419 | popd > /dev/null |
419 | popd > /dev/null |
| 420 | } |
420 | } |
| 421 | |
421 | |
| 422 | # @FUNCTION: cmake-utils_src_configure |
422 | # @FUNCTION: cmake-utils_src_configure |
| 423 | # @DESCRIPTION: |
423 | # @DESCRIPTION: |