Makefile: Add a pcheck option to run tests in parallel

Running tests in parallel is much faster, e.g. 15 seconds to run the tests
on sandbox (only), instead of 100 seconds (on a 16-core machine). Add a
'make pcheck' option to access this feature.

Note that the tools/ tests still run each tool's tests once after the
other, although within that, they do run in parallel. So for example,
the buildman tests run in parallel, then the binman tests run in
parallel. There would be a signiificant advantage to running them all
in parallel together, but that would require a large amount of
refactoring, e.g. with more use of pytest fixtures.

Update the documentation to represent the current state.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2022-08-06 17:51:59 -06:00
committed by Tom Rini
parent e1c0811114
commit d1962ac797
4 changed files with 64 additions and 27 deletions

View File

@@ -28,8 +28,12 @@ run. Type this::
make tcheck
You can also run a selection tests in parallel with::
make pcheck
All of the above use the test/run script with a paremeter to select which tests
are run.
are run. See :doc:`py_testing` for more information.
Sandbox