xref: /llvm-project/llvm/utils/lit/tests/time-tests.py (revision 867ff2d4268ca7eed89a24f100b67b68f5329439)
1## Check that --skip-test-time-recording skips .lit_test_times.txt recording.
2
3# RUN: %{lit-no-order-opt} --skip-test-time-recording %{inputs}/time-tests
4# RUN: not ls %{inputs}/time-tests/.lit_test_times.txt
5
6## Check that --time-tests generates a printed histogram.
7
8# RUN: %{lit-no-order-opt} --time-tests %{inputs}/time-tests > %t.out
9# RUN: FileCheck < %t.out %s
10# RUN: rm %{inputs}/time-tests/.lit_test_times.txt
11
12# CHECK:      Tests Times:
13# CHECK-NEXT: --------------------------------------------------------------------------
14# CHECK-NEXT: [    Range    ] :: [               Percentage               ] :: [Count]
15# CHECK-NEXT: --------------------------------------------------------------------------
16