[lit] Add "early_tests" config option
authorDavid Zarzycki <dave@znu.io>
Tue, 16 Feb 2021 17:00:00 +0000 (12:00 -0500)
committerDavid Zarzycki <dave@znu.io>
Wed, 17 Feb 2021 11:32:04 +0000 (06:32 -0500)
commit161e826c586eefad06751aa35e2c0b8070a70bb1
tree1c06fe638867ffbaa0a29ea354db6ed8f77be57c
parent08131c7439336e84b9df3e37b3aaeb76b8f60702
[lit] Add "early_tests" config option

With enough cores, the slowest tests can significantly change the total testing time if they happen to run late. With this change, a test suite can improve performance (for high-end systems) by listing just a few of the slowest tests up front.

Reviewed By: jdenny, jhenderson

Differential Revision: https://reviews.llvm.org/D96594
llvm/docs/CommandGuide/lit.rst
llvm/utils/lit/lit/Test.py
llvm/utils/lit/lit/TestingConfig.py
llvm/utils/lit/tests/Inputs/early-tests/aaa.txt [new file with mode: 0644]
llvm/utils/lit/tests/Inputs/early-tests/bbb.txt [new file with mode: 0644]
llvm/utils/lit/tests/Inputs/early-tests/lit.cfg [new file with mode: 0644]
llvm/utils/lit/tests/Inputs/early-tests/subdir/ccc.txt [new file with mode: 0644]
llvm/utils/lit/tests/early-tests.py [new file with mode: 0644]