From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SUzQu-0007Oz-2S for garchives@archives.gentoo.org; Thu, 17 May 2012 12:03:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E7A6E0955; Thu, 17 May 2012 12:02:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D103BE0955 for ; Thu, 17 May 2012 12:02:29 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D11FC1B406F for ; Thu, 17 May 2012 12:02:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 6C737E5442 for ; Thu, 17 May 2012 12:02:26 +0000 (UTC) From: "Ulrich Mueller" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Mueller" Message-ID: <1337250987.3ec4b3c22582a8ec206bce1e93bab377d7b264b5.ulm@gentoo> Subject: [gentoo-commits] proj/pms:eapi-5 commit in: / X-VCS-Repository: proj/pms X-VCS-Files: eapi-differences.tex ebuild-functions.tex X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Mueller X-VCS-Revision: 3ec4b3c22582a8ec206bce1e93bab377d7b264b5 X-VCS-Branch: eapi-5 Date: Thu, 17 May 2012 12:02:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 768ac092-e5bb-4851-bbbf-917072f289c8 X-Archives-Hash: a658443cb3973bf585ce7214ba08e414 commit: 3ec4b3c22582a8ec206bce1e93bab377d7b264b5 Author: Ulrich M=C3=BCller gentoo org> AuthorDate: Sun May 13 07:52:05 2012 +0000 Commit: Ulrich Mueller gentoo org> CommitDate: Thu May 17 10:36:27 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms.git;a=3Dc= ommit;h=3D3ec4b3c2 src_test supports parallel tests in EAPI 5. --- eapi-differences.tex | 4 ++++ ebuild-functions.tex | 24 ++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/eapi-differences.tex b/eapi-differences.tex index d4c4611..2b2ae80 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -94,6 +94,9 @@ Use dependencies & \compactfeatureref{use-deps} & \t{src\_compile} style & \compactfeatureref{src-compile} & 0 & 1 & 2 & 2 & 2 & 2 \\ =20 +Parallel tests & \compactfeatureref{parallel-tests} & + No & No & No & No & No & Yes \\ + \t{src\_install} style & \compactfeatureref{src-install} & no-op & no-op & no-op & no-op & 4 & 4 \\ =20 @@ -268,6 +271,7 @@ EAPI 5 is EAPI 4 with the following changes: \begin{compactitem} \item \t{econf} adds \t{-{}-disable-silent-rules}, \featureref{econf-opt= ions}. \item Slot operator dependencies, \featureref{slot-operator-deps}. +\item \t{src\_test} supports parallel tests, \featureref{parallel-tests}= . \item \t{USE} is calculated differently, \featureref{profile-iuse-inject= ion}. \item \t{IMAGE} is gone, \featureref{image}. \item \t{REQUIRED\_USE} now supports \t{??} groups, \featureref{at-most-= one-of}. diff --git a/ebuild-functions.tex b/ebuild-functions.tex index 318a732..9836e33 100644 --- a/ebuild-functions.tex +++ b/ebuild-functions.tex @@ -273,13 +273,33 @@ provided. =20 The initial working directory must be \t{S} if that exists, falling back= to \t{WORKDIR} otherwise. The default implementation used when the ebuild lacks the \t{src\_test} = function must, if tests are -enabled, run \t{emake -j1 check} if and only if such a target is availab= le, or if not run -\t{emake -j1 test} if and only if such a target is available. In both ca= ses, if \t{emake} returns +enabled, run \t{emake check} if and only if such a target is available, = or if not run +\t{emake test} if and only if such a target is available. In both cases,= if \t{emake} returns non-zero the build must be aborted. =20 +\featurelabel{parallel-tests} For EAPIs listed in table~\ref{tab:src-tes= t-table} as not supporting +parallel tests, the \t{emake} command must be called with option \t{-j1}= . + The \t{src\_test} function may be disabled by \t{RESTRICT}. See section~= \ref{sec:restrict}. It may be disabled by user too, using a PM-specific mechanism. =20 +\ChangeWhenAddingAnEAPI{5} +\begin{centertable}{\t{src\_test} behaviour for EAPIs} \label{tab:src-te= st-table} + \begin{tabular}{ l l } + \toprule + \multicolumn{1}{c}{\textbf{EAPI}} & + \multicolumn{1}{c}{\textbf{Supports parallel tests?}} \\ + \midrule + \t{0} & No \\ + \t{1} & No \\ + \t{2} & No \\ + \t{3} & No \\ + \t{4} & No \\ + \t{5} & Yes \\ + \bottomrule + \end{tabular} +\end{centertable} + \subsection{src\_install} \label{sec:src-install-function} =20