[PATCH] D122251: [lit] Use sharding for GoogleTest format

Yuanfang Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 22 12:04:48 PDT 2022


ychen created this revision.
ychen added reviewers: ddunbar, yln, delcypher.
Herald added a project: All.
ychen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This helps lit unit test performance by a lot, especially on windows.

The shards are executed by the test runner and the results are stored in the
json format supported by the GoogleTest. Later in the test reporting stage,
all test results in the json file are retrieved to continue the test results
summary etc.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122251

Files:
  llvm/unittests/Support/CrashRecoveryTest.cpp
  llvm/unittests/Support/ProgramTest.cpp
  llvm/utils/lit/lit/Test.py
  llvm/utils/lit/lit/TestingConfig.py
  llvm/utils/lit/lit/formats/googletest.py
  llvm/utils/lit/lit/main.py
  llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py
  llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py
  llvm/utils/lit/tests/Inputs/googletest-upstream-format/lit.cfg
  llvm/utils/lit/tests/googletest-format.py
  llvm/utils/lit/tests/googletest-upstream-format.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122251.417360.patch
Type: text/x-patch
Size: 25750 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220322/20fb21e0/attachment.bin>


More information about the llvm-commits mailing list