]> granicus.if.org Git - llvm/commit
[lit] Support sharding testsuites, for parallel execution.
authorGraydon Hoare <ghoare@apple.com>
Wed, 18 Jan 2017 18:12:20 +0000 (18:12 +0000)
committerGraydon Hoare <ghoare@apple.com>
Wed, 18 Jan 2017 18:12:20 +0000 (18:12 +0000)
commit57f557b15d07c91857813e8ab8e6e362b6c6f67c
tree04e1351aa9185f22aada9c45adcd9152022e3353
parent05153bfa17561be3f79ca27c2a9e4874de5cc7e9
[lit] Support sharding testsuites, for parallel execution.

Summary:
This change equips lit.py with two new options, --num-shards=M and
--run-shard=N (set by default from env vars LIT_NUM_SHARDS and LIT_RUN_SHARD).

The options must be used together, and N must be in 1..M.

Together these options effect only test selection: they partition the testsuite
into M equal-sized "shards", then select only the Nth shard. They can be used
in a cluster of test machines to achieve a very crude (static) form of
parallelism, with minimal configuration work.

Reviewers: modocache, ddunbar

Reviewed By: ddunbar

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D28789

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292417 91177308-0d34-0410-b5e6-96231b3b80d8
docs/CommandGuide/lit.rst
utils/lit/lit/main.py
utils/lit/tests/selecting.py [new file with mode: 0644]