From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-681093-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E997C1387FD for <garchives@archives.gentoo.org>; Thu, 27 Mar 2014 13:43:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB863E0995; Thu, 27 Mar 2014 13:43:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 70BEBE0995 for <gentoo-commits@lists.gentoo.org>; Thu, 27 Mar 2014 13:43:20 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6D39B33FD77 for <gentoo-commits@lists.gentoo.org>; Thu, 27 Mar 2014 13:43:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 2394D188EF for <gentoo-commits@lists.gentoo.org>; Thu, 27 Mar 2014 13:43:18 +0000 (UTC) From: "Michael Palimaka" <kensington@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" <kensington@gentoo.org> Message-ID: <1395927770.d1d3ff20f334679c8299c1315cf20f4f557a9815.kensington@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: eclass/ X-VCS-Repository: proj/qt X-VCS-Files: eclass/qt5-build.eclass X-VCS-Directories: eclass/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: d1d3ff20f334679c8299c1315cf20f4f557a9815 X-VCS-Branch: master Date: Thu, 27 Mar 2014 13:43:18 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c081566e-7f37-4cdc-85b3-a6922efe5235 X-Archives-Hash: ea157702380821e66c9404ff11b088b1 commit: d1d3ff20f334679c8299c1315cf20f4f557a9815 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> AuthorDate: Thu Mar 27 13:42:50 2014 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Thu Mar 27 13:42:50 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=d1d3ff20 [eclass] Add support for virtualx for tests. --- eclass/qt5-build.eclass | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index c607f6f..e681517 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -17,7 +17,14 @@ case ${EAPI} in *) die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;; esac -inherit eutils flag-o-matic multilib toolchain-funcs versionator +# @ECLASS-VARIABLE: VIRTUALX_REQUIRED +# @DESCRIPTION: +# For proper description see virtualx.eclass manpage. +# Here we redefine default value to be manual, if your package needs virtualx +# for tests you should proceed with setting VIRTUALX_REQUIRED=test. +: ${VIRTUALX_REQUIRED:=manual} + +inherit eutils flag-o-matic multilib toolchain-funcs versionator virtualx HOMEPAGE="http://qt-project.org/ http://qt.digia.com/" LICENSE="|| ( LGPL-2.1 GPL-3 )" @@ -270,7 +277,16 @@ qt5-build_src_test() { qt5_foreach_target_subdir qt5_qmake qt5_foreach_target_subdir emake - qt5_foreach_target_subdir emake TESTRUNNER="'${testrunner}'" check + + _test_runner() { + qt5_foreach_target_subdir emake TESTRUNNER="'${testrunner}'" check + } + + if [[ ${VIRTUALX_REQUIRED} == test ]]; then + VIRTUALX_COMMAND="_test_runner" virtualmake + else + _test_runner + fi } # @FUNCTION: qt5-build_src_install