Run tests in parallel
Status from this message: Applied to perf-tools-next, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest8 patches 1 replyApplied
- v58 patches 3 repliesSuperseded
- v48 patches 3 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 8 patches | 2 replies | Superseded | |
| v2 | 9 patches | 8 replies | Applied | |
| v1 | 9 patches | 4 replies | Superseded |
Patches in v6 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | perf thread_map: Skip exited threads when scanning /proctools/ | +4 | 0 replies | |
| 2/8 | perf list: Add scandirat compatibility functiontools/ tools/ tools/ | +31 | 0 replies | |
| 3/8 | perf tests: Avoid fork in perf_has_symbol testtools/ | +1 | 0 replies | |
| 4/8 | tools subcmd: Add a no exec function call optiontools/ tools/ | +4 | 0 replies | |
| 5/8 | perf test: Rename builtin-test-list and add missed header guardtools/ tools/ tools/ +1 more | +7 | 0 replies | |
| 6/8 | perf tests: Use scandirat for shell script findingtools/ tools/ tools/ | +95 | 0 replies | |
| 7/8 | perf tests: Run time generate shell test suitestools/ tools/ tools/ | +80 | 0 replies | |
| 8/8 | perf tests: Add option to run tests in paralleltools/ | +215 | 0 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Adrian Hunter |
|---|---|
| 1/8 | |
| 2/8 | |
| 3/8 | A-b |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/8] Run tests in parallel
If command line option '-p' is provided, start/fork all tests in the main thread and then gather them in order at the end. On a laptop test time was reduced from 5 minutes 21 seconds to 1 minute 50 seconds. The option isn't default as the test shows up perf and test flakes.
The '-v' option is modified so that 'perf test -v' will give verbose output only from failing tests.
v6 - fix/test alpine linux build
v5 - fix a -Wunused-result
v4 - fix bug in width computation.
v3 - fix a crash if shell test directory isn't found, remove merged patch. v2 - fix parallel test output/verbose issue
v1 - initial PoC
Ian Rogers (8):
perf thread_map: Skip exited threads when scanning /proc perf list: Add scandirat compatibility function
perf tests: Avoid fork in perf_has_symbol test
tools subcmd: Add a no exec function call option
perf test: Rename builtin-test-list and add missed header guard perf tests: Use scandirat for shell script finding perf tests: Run time generate shell test suites
perf tests: Add option to run tests in parallel
tools/lib/subcmd/run-command.c | 2 + tools/lib/subcmd/run-command.h | 2 + tools/perf/tests/Build | 2 +- tools/perf/tests/builtin-test-list.c | 207 ---------- tools/perf/tests/builtin-test-list.h | 12 - tools/perf/tests/builtin-test.c | 378 ++++++++++-------- tools/perf/tests/shell/lib/perf_has_symbol.sh | 2 +- tools/perf/tests/tests-scripts.c | 257 ++++++++++++ tools/perf/tests/tests-scripts.h | 9 + tools/perf/util/print-events.c | 13 +- tools/perf/util/thread_map.c | 9 +- tools/perf/util/util.c | 19 + tools/perf/util/util.h | 8 + 13 files changed, 510 insertions(+), 410 deletions(-) delete mode 100644 tools/perf/tests/builtin-test-list.c delete mode 100644 tools/perf/tests/builtin-test-list.h create mode 100644 tools/perf/tests/tests-scripts.c create mode 100644 tools/perf/tests/tests-scripts.h
Signature · 1 line
2.44.0.rc0.258.g7320e95886-goog