llvm-project/llvm/unittests/Support
Yuanfang Chen cd0a5889d7 [Reland][lit] Use sharding for GoogleTest format
This helps lit unit test performance by a lot, especially on windows. The performance gain comes from launching one gtest executable for many subtests instead of one (this is the current situation).

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.

On my Win10 desktop, before this patch: `check-clang-unit`: 177s, `check-llvm-unit`: 38s; after this patch: `check-clang-unit`: 37s, `check-llvm-unit`: 11s.
On my Linux machine, before this patch: `check-clang-unit`: 46s, `check-llvm-unit`: 8s; after this patch: `check-clang-unit`: 7s, `check-llvm-unit`: 4s.

Reviewed By: yln, rnk, abrachet

Differential Revision: https://reviews.llvm.org/D122251
2022-04-12 14:51:12 -07:00
..
CommandLineInit Reapply "[cmake] Prefix gtest and gtest_main with "llvm_"." 2022-03-04 13:45:43 -08:00
DynamicLibrary [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
ARMAttributeParser.cpp Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
AlignOfTest.cpp
AlignmentTest.cpp
AllocatorTest.cpp
AnnotationsTest.cpp
ArrayRecyclerTest.cpp
BLAKE3Test.cpp [Support/Hash functions] Change the `final()` and `result()` of the hashing functions to return an array of bytes 2022-04-05 21:38:06 -07:00
Base64Test.cpp
BinaryStreamTest.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
BlockFrequencyTest.cpp
BranchProbabilityTest.cpp
CMakeLists.txt [Support] Introduce the BLAKE3 hashing function implementation 2022-03-24 10:26:39 -07:00
CRCTest.cpp
CSKYAttributeParserTest.cpp [Support] Add CSKY target parser and attributes parser 2022-02-28 11:35:07 +08:00
CSKYTargetParserTest.cpp [Clang][CSKY] Add the CSKY target and compiler driver 2022-04-06 11:37:37 +08:00
CachePruningTest.cpp
Casting.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
CheckedArithmeticTest.cpp
Chrono.cpp
CommandLineTest.cpp [unittests] fix intermittent SupportTests failures 2022-04-05 18:19:20 -07:00
CompressionTest.cpp [Support] Change zlib::compress to return void 2022-03-14 11:38:04 -07:00
ConvertUTFTest.cpp Re-land c346068928 with fixes 2022-03-23 08:13:17 -04:00
CrashRecoveryTest.cpp [Reland][lit] Use sharding for GoogleTest format 2022-04-12 14:51:12 -07:00
DJBTest.cpp
DataExtractorTest.cpp Add a new API seek for the Cursor class in the DataExtractor.cpp 2021-09-16 09:39:49 -04:00
DebugCounterTest.cpp
DebugTest.cpp
ELFAttributeParserTest.cpp
EndianStreamTest.cpp
EndianTest.cpp
ErrnoTest.cpp
ErrorOrTest.cpp
ErrorTest.cpp [unittests] fix intermittent SupportTests failures 2022-04-05 18:19:20 -07:00
ExtensibleRTTITest.cpp [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
FSUniqueIDTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
FileCollectorTest.cpp
FileOutputBufferTest.cpp
FileUtilitiesTest.cpp
FormatVariadicTest.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
GlobPatternTest.cpp
HashBuilderTest.cpp [Support/Hash functions] Change the `final()` and `result()` of the hashing functions to return an array of bytes 2022-04-05 21:38:06 -07:00
Host.cpp [RGT] Refactor environment-specific checks to use GTEST_SKIP() 2022-02-11 10:47:07 -08:00
IndexedAccessorTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
InstructionCostTest.cpp
ItaniumManglingCanonicalizerTest.cpp
JSONTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
KnownBitsTest.cpp [ValueTracking][SelectionDAG] Rename ComputeMinSignedBits->ComputeMaxSignificantBits. NFC 2022-01-03 11:33:30 -08:00
KnownBitsTest.h
LEB128Test.cpp
LineIteratorTest.cpp
LinearPolyBaseTest.cpp [NFC] Remove from UnivariateLinearPolyBase::getValue(). 2021-11-04 14:32:08 +00:00
LockFileManagerTest.cpp
MD5Test.cpp [Support/Hash functions] Change the `final()` and `result()` of the hashing functions to return an array of bytes 2022-04-05 21:38:06 -07:00
ManagedStatic.cpp
MatchersTest.cpp
MathExtrasTest.cpp Fix signed/unsigned comparison warnings on ppc buildbots 2022-02-08 14:15:28 +00:00
MemoryBufferRefTest.cpp
MemoryBufferTest.cpp Fixed a roll-over on size_t in getNewUninitMemBuffer() 2022-03-11 13:16:58 +04:00
MemoryTest.cpp
NativeFormatTests.cpp Print the sign of negative infinity 2021-12-14 22:38:42 -08:00
OptimizedStructLayoutTest.cpp Fix a bug in OptimizedStructLayout when filling gaps before 2021-07-21 15:47:18 -04:00
ParallelTest.cpp
Path.cpp [RGT] Use GTEST_SKIP() in more places where we skip a test 2022-04-08 15:20:53 -07:00
ProcessTest.cpp [RGT] Use GTEST_SKIP() in more places where we skip a test 2022-04-08 15:20:53 -07:00
ProgramTest.cpp [Reland][lit] Use sharding for GoogleTest format 2022-04-12 14:51:12 -07:00
RISCVAttributeParserTest.cpp Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
RegexTest.cpp
ReplaceFileTest.cpp
ReverseIterationTest.cpp Move STLFunctionalExtras out of STLExtras 2022-01-24 14:13:21 +01:00
SHA256.cpp [Support/Hash functions] Change the `final()` and `result()` of the hashing functions to return an array of bytes 2022-04-05 21:38:06 -07:00
ScaledNumberTest.cpp
ScopedPrinterTest.cpp [llvm] Add JSONScopedPrinter class 2021-12-10 18:57:33 +00:00
SourceMgrTest.cpp
SpecialCaseListTest.cpp
SuffixTreeTest.cpp
SwapByteOrderTest.cpp
SymbolRemappingReaderTest.cpp
TarWriterTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
TargetParserTest.cpp [llvm][AArch64] Generate getExtensionFeatures from the list of extensions 2022-04-11 13:42:24 +00:00
TaskQueueTest.cpp
ThreadLocalTest.cpp
ThreadPool.cpp [RGT] Use GTEST_SKIP() in more places where we skip a test 2022-04-08 15:20:53 -07:00
Threading.cpp
TimerTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
ToolOutputFileTest.cpp
TrailingObjectsTest.cpp
TrigramIndexTest.cpp
TypeNameTest.cpp
TypeTraitsTest.cpp
UnicodeTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
VersionTupleTest.cpp
VirtualFileSystemTest.cpp [VFS] RedirectingFileSystem only replace path if not already mapped 2022-04-11 14:52:48 -07:00
WithColorTest.cpp
YAMLIOTest.cpp [yamlio] Allow parsing an entire mapping as an enumeration 2022-03-14 04:41:40 +00:00
YAMLParserTest.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
buffer_ostream_test.cpp Support: Skip buffering buffer_unique_ostream's owned stream 2021-10-22 16:25:31 -07:00
formatted_raw_ostream_test.cpp
raw_fd_stream_test.cpp
raw_ostream_test.cpp [NFCI][Support] Avoid ASSERT_/EXPECT_TRUE(A <op> B) 2022-01-21 13:15:04 +00:00
raw_pwrite_stream_test.cpp
raw_sha1_ostream_test.cpp [Support/Hash functions] Change the `final()` and `result()` of the hashing functions to return an array of bytes 2022-04-05 21:38:06 -07:00
xxhashTest.cpp