aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorVincent Lee <thevinster@users.noreply.github.com>2024-07-20 00:13:20 -0700
committerGitHub <noreply@github.com>2024-07-20 00:13:20 -0700
commit867ff2d4268ca7eed89a24f100b67b68f5329439 (patch)
treedc10bd842c6c81ed7fe643117c0fc1a3cecb1d5c /llvm/docs/CommandGuide
parentc2019a37bdb1375e9f72b2549361cc50ea7729db (diff)
downloadllvm-867ff2d4268ca7eed89a24f100b67b68f5329439.zip
llvm-867ff2d4268ca7eed89a24f100b67b68f5329439.tar.gz
llvm-867ff2d4268ca7eed89a24f100b67b68f5329439.tar.bz2
[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.
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r--llvm/docs/CommandGuide/lit.rst4
1 files changed, 4 insertions, 0 deletions
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