llvm-project/llvm/utils/lit/tests/Inputs
Joe Loser 27731f0475 [llvm][lit] Respect GTEST_TOTAL_SHARDS and GTEST_SHARD_INDEX env vars
There are a variety of issues with using GTest sharding by default for users of
`lit` using the Google Test formatter as mentioned in
https://github.com/llvm/llvm-project/issues/56492 and
https://github.com/llvm/llvm-project/issues/56491.

Currently, there is no way for users to explicitly control the sharding
behavior, even with the environment variables that GTest provides. This patch
teaches the `googletest` formatter to actually respect `GTEST_TOTAL_SHARDS`
and `GTEST_SHARD_INDEX` environment variables if they are set.

In practice, we could go one step further and not do any of the post-processing
of the JSON files if `GTEST_TOTAL_SHARDS` is `1` for example, but that it left
as a follow-up if desired.  There may be preferred alternative approaches to
disabling sharding entirely through another mechanism, such as a lit config
variable.

Differential Revision: https://reviews.llvm.org/D133542
2022-09-09 17:47:21 -06:00
..
allow-retries
config-map-discovery
custom-result-category
discovery
exec-discovery
exec-discovery-in-tree
fake-externals
googletest-cmd-wrapper [lit][test] explicitly use utf-8 encoding to write testing json file 2022-07-15 16:42:50 -07:00
googletest-crash [lit][test] explicitly use utf-8 encoding to write testing json file 2022-07-15 16:42:50 -07:00
googletest-discovery-failed
googletest-format [lit][test] explicitly use utf-8 encoding to write testing json file 2022-07-15 16:42:50 -07:00
googletest-format-respect-gtest-sharding-env-vars [llvm][lit] Respect GTEST_TOTAL_SHARDS and GTEST_SHARD_INDEX env vars 2022-09-09 17:47:21 -06:00
googletest-sanitizer-error [lit][unit] add a test for sanitizer-only test failures 2022-07-15 18:36:38 -07:00
googletest-timeout [lit][test] explicitly use utf-8 encoding to write testing json file 2022-07-15 16:42:50 -07:00
ignore-fail
lit-opts
lld-features
max-failures
max-time
parallelism-groups
progress-bar
py-config-discovery
reorder [lit] Test changes to make it work with bazel 2022-09-08 14:52:08 +02:00
show-result-codes
show-used-features
shtest-env
shtest-format
shtest-format-argv0
shtest-if-else [lit] Support %if ... %else syntax for RUN lines 2022-04-27 20:29:08 +03:00
shtest-inject
shtest-keyword-parse-errors
shtest-not
shtest-output-printing
shtest-pushd-popd [Lit] Add pushd and popd builtins 2022-05-12 19:24:30 -04:00
shtest-recursive-substitution
shtest-run-at-line
shtest-shell
shtest-timeout
standalone-tests
standalone-tests-with-excludes
standalone-tests-with-suffixes
test-data
test-data-micro
test_retry_attempts
testrunner-custom-parsers
unittest-adaptor
unparsed-requirements
use-llvm-tool
use-llvm-tool-required
xfail-cl
xunit-output
lit.cfg