llvm-project/llvm/utils/lit/tests/early-tests.py
David Zarzycki 161e826c58 [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
2021-02-17 06:32:04 -05:00

10 lines
301 B
Python

## Check that we can run tests early.
# RUN: %{lit} -j1 %{inputs}/early-tests | FileCheck %s
# CHECK: -- Testing: 3 tests, 1 workers --
# CHECK-NEXT: PASS: early-tests :: subdir/ccc.txt
# CHECK-NEXT: PASS: early-tests :: aaa.txt
# CHECK-NEXT: PASS: early-tests :: bbb.txt
# CHECK: Passed: 3