summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kapusta <ayoy@gentoo.org>2010-07-03 15:49:39 +0000
committerDominik Kapusta <ayoy@gentoo.org>2010-07-03 15:49:39 +0000
commit6145d5960cc1c2049043946b86e95da76580a4bd (patch)
tree7867a52aca36711f5f00c280dcc0bcbd8f730587 /eclass/qt4-build.eclass
parentalpha/arm/ia64/s390/sh/sparc stable wrt #325425 (diff)
downloadgentoo-2-6145d5960cc1c2049043946b86e95da76580a4bd.tar.gz
gentoo-2-6145d5960cc1c2049043946b86e95da76580a4bd.tar.bz2
gentoo-2-6145d5960cc1c2049043946b86e95da76580a4bd.zip
Add qt4-build_src_test that runs make check only in target build directories.
Diffstat (limited to 'eclass/qt4-build.eclass')
-rw-r--r--eclass/qt4-build.eclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass
index 785f536f988c..c131d80b011c 100644
--- a/eclass/qt4-build.eclass
+++ b/eclass/qt4-build.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.75 2010/07/03 09:10:55 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.76 2010/07/03 15:49:39 ayoy Exp $
# @ECLASS: qt4-build.eclass
# @MAINTAINER:
@@ -338,6 +338,15 @@ qt4-build_src_compile() {
build_directories ${QT4_TARGET_DIRECTORIES}
}
+# @FUNCTION: qt4-build_src_test
+# @DESCRIPTION:
+# Runs tests only in target directories.
+qt4-build_src_test() {
+ for dir in ${QT4_TARGET_DIRECTORIES}; do
+ emake -j1 check -C ${dir}
+ done
+}
+
# @FUNCTION: fix_includes
# @DESCRIPTION:
# For MacOSX we need to add some symlinks when frameworks are
@@ -742,4 +751,4 @@ qt_mkspecs_dir() {
echo "${spec}"
}
-EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_install pkg_postrm pkg_postinst
+EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_install src_test pkg_postrm pkg_postinst