summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2012-05-13 09:52:05 +0200
committerUlrich Müller <ulm@gentoo.org>2012-09-13 08:28:16 +0200
commit70ec5eda6a11c196ceafefbf47dc80140fe29b8a (patch)
treee43eefba8d8750525f95b4d9ffa0117208f3b70f /ebuild-functions.tex
parentMake parsing of the EAPI assignment mandatory. (diff)
downloadpms-70ec5eda6a11c196ceafefbf47dc80140fe29b8a.tar.gz
pms-70ec5eda6a11c196ceafefbf47dc80140fe29b8a.tar.bz2
pms-70ec5eda6a11c196ceafefbf47dc80140fe29b8a.zip
EAPI 5: src_test supports parallel tests.
See bug 363005.
Diffstat (limited to 'ebuild-functions.tex')
-rw-r--r--ebuild-functions.tex24
1 files changed, 22 insertions, 2 deletions
diff --git a/ebuild-functions.tex b/ebuild-functions.tex
index cd4075c..1f2ab68 100644
--- a/ebuild-functions.tex
+++ b/ebuild-functions.tex
@@ -265,13 +265,33 @@ provided.
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 available, or if not run
-\t{emake -j1 test} if and only if such a target is available. In both cases, 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.
+\featurelabel{parallel-tests} For EAPIs listed in table~\ref{tab:src-test-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.
+\ChangeWhenAddingAnEAPI{5}
+\begin{centertable}{\t{src\_test} behaviour for EAPIs} \label{tab:src-test-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}