From 867ff2d4268ca7eed89a24f100b67b68f5329439 Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Sat, 20 Jul 2024 00:13:20 -0700 Subject: [lit] Add a flag to disable lit time tests (#98270) LLVM lit assumes control of the test parallelism when running a test suite. This style of testing doesn't play nicely with build systems like Buck or Bazel since it prefers finer grained actions on a per-test level. In order for external build systems to control the test parallelism, add an option to disable `.lit_test_times.txt` under the `--skip-test-time-recording` flag, thus allowing other build systems to determine the parallelism and avoid race conditions when writing to that file. I went for `--skip-test-time-recording` instead of `--time-tests` in order to preserve the original functionality of writing to `.lit_test_times.txt` as the default behavior and only opt-in for those who do _not_ want `.lit_test_times.txt` file. --- llvm/docs/CommandGuide/lit.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/docs/CommandGuide') diff --git a/llvm/docs/CommandGuide/lit.rst b/llvm/docs/CommandGuide/lit.rst index 799ee34e..c9d5bab 100644 --- a/llvm/docs/CommandGuide/lit.rst +++ b/llvm/docs/CommandGuide/lit.rst @@ -151,6 +151,10 @@ EXECUTION OPTIONS feature that can be used to conditionally disable (or expect failure in) certain tests. +.. option:: --skip-test-time-recording + + Disable tracking the wall time individual tests take to execute. + .. option:: --time-tests Track the wall time individual tests take to execute and includes the results -- cgit v1.1