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