aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/lit/tests/time-tests.py
blob: 20b83a64330f0e804e719354a8bb8f8c6f55dc61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
## Check that --skip-test-time-recording skips .lit_test_times.txt recording.

# RUN: %{lit-no-order-opt} --skip-test-time-recording %{inputs}/time-tests
# RUN: not ls %{inputs}/time-tests/.lit_test_times.txt

## Check that --time-tests generates a printed histogram.

# RUN: %{lit-no-order-opt} --time-tests %{inputs}/time-tests > %t.out
# RUN: FileCheck < %t.out %s
# RUN: rm %{inputs}/time-tests/.lit_test_times.txt

# CHECK:      Tests Times:
# CHECK-NEXT: --------------------------------------------------------------------------
# CHECK-NEXT: [    Range    ] :: [               Percentage               ] :: [Count]
# CHECK-NEXT: --------------------------------------------------------------------------