| 1 |
set(LLVM_LINK_COMPONENTS |
| 2 |
Support |
| 3 |
TargetParser |
| 4 |
) |
| 5 |
|
| 6 |
add_llvm_unittest(SupportTests |
| 7 |
AddressRangeTest.cpp |
| 8 |
AlignmentTest.cpp |
| 9 |
AlignOfTest.cpp |
| 10 |
AllocatorTest.cpp |
| 11 |
ARMAttributeParser.cpp |
| 12 |
ArrayRecyclerTest.cpp |
| 13 |
Base64Test.cpp |
| 14 |
BinaryStreamTest.cpp |
| 15 |
BLAKE3Test.cpp |
| 16 |
BlockFrequencyTest.cpp |
| 17 |
BranchProbabilityTest.cpp |
| 18 |
CachePruningTest.cpp |
| 19 |
CrashRecoveryTest.cpp |
| 20 |
Casting.cpp |
| 21 |
CheckedArithmeticTest.cpp |
| 22 |
Chrono.cpp |
| 23 |
CommandLineTest.cpp |
| 24 |
CompressionTest.cpp |
| 25 |
ConvertUTFTest.cpp |
| 26 |
CRCTest.cpp |
| 27 |
CSKYAttributeParserTest.cpp |
| 28 |
DataExtractorTest.cpp |
| 29 |
DebugCounterTest.cpp |
| 30 |
DebugTest.cpp |
| 31 |
DivisionByConstantTest.cpp |
| 32 |
DJBTest.cpp |
| 33 |
EndianStreamTest.cpp |
| 34 |
EndianTest.cpp |
| 35 |
ELFAttributeParserTest.cpp |
| 36 |
ErrnoTest.cpp |
| 37 |
ErrorOrTest.cpp |
| 38 |
ErrorTest.cpp |
| 39 |
ExtensibleRTTITest.cpp |
| 40 |
FileCollectorTest.cpp |
| 41 |
FileOutputBufferTest.cpp |
| 42 |
FileUtilitiesTest.cpp |
| 43 |
FormatVariadicTest.cpp |
| 44 |
FSUniqueIDTest.cpp |
| 45 |
GlobPatternTest.cpp |
| 46 |
HashBuilderTest.cpp |
| 47 |
IndexedAccessorTest.cpp |
| 48 |
InstructionCostTest.cpp |
| 49 |
ItaniumManglingCanonicalizerTest.cpp |
| 50 |
JSONTest.cpp |
| 51 |
KnownBitsTest.cpp |
| 52 |
LEB128Test.cpp |
| 53 |
LineIteratorTest.cpp |
| 54 |
LockFileManagerTest.cpp |
| 55 |
MatchersTest.cpp |
| 56 |
MD5Test.cpp |
| 57 |
ManagedStatic.cpp |
| 58 |
MathExtrasTest.cpp |
| 59 |
MemoryBufferRefTest.cpp |
| 60 |
MemoryBufferTest.cpp |
| 61 |
MemoryTest.cpp |
| 62 |
NativeFormatTests.cpp |
| 63 |
OptimizedStructLayoutTest.cpp |
| 64 |
ParallelTest.cpp |
| 65 |
Path.cpp |
| 66 |
ProcessTest.cpp |
| 67 |
ProgramTest.cpp |
| 68 |
RegexTest.cpp |
| 69 |
ReverseIterationTest.cpp |
| 70 |
ReplaceFileTest.cpp |
| 71 |
RISCVAttributeParserTest.cpp |
| 72 |
RISCVISAInfoTest.cpp |
| 73 |
ScaledNumberTest.cpp |
| 74 |
ScopedPrinterTest.cpp |
| 75 |
SHA256.cpp |
| 76 |
SourceMgrTest.cpp |
| 77 |
SpecialCaseListTest.cpp |
| 78 |
SuffixTreeTest.cpp |
| 79 |
SwapByteOrderTest.cpp |
| 80 |
SymbolRemappingReaderTest.cpp |
| 81 |
TarWriterTest.cpp |
| 82 |
TaskQueueTest.cpp |
| 83 |
ThreadPool.cpp |
| 84 |
Threading.cpp |
| 85 |
TimerTest.cpp |
| 86 |
TimeProfilerTest.cpp |
| 87 |
ToolOutputFileTest.cpp |
| 88 |
TypeNameTest.cpp |
| 89 |
TypeSizeTest.cpp |
| 90 |
TypeTraitsTest.cpp |
| 91 |
TrailingObjectsTest.cpp |
| 92 |
TrigramIndexTest.cpp |
| 93 |
UnicodeTest.cpp |
| 94 |
VersionTupleTest.cpp |
| 95 |
VirtualFileSystemTest.cpp |
| 96 |
WithColorTest.cpp |
| 97 |
YAMLIOTest.cpp |
| 98 |
YAMLParserTest.cpp |
| 99 |
buffer_ostream_test.cpp |
| 100 |
formatted_raw_ostream_test.cpp |
| 101 |
raw_fd_stream_test.cpp |
| 102 |
raw_ostream_test.cpp |
| 103 |
raw_pwrite_stream_test.cpp |
| 104 |
raw_sha1_ostream_test.cpp |
| 105 |
xxhashTest.cpp |
| 106 |
) |
| 107 |
|
| 108 |
target_link_libraries(SupportTests PRIVATE LLVMTestingSupport) |
| 109 |
|
| 110 |
# Disable all warning for AlignOfTest.cpp, |
| 111 |
# as it does things intentionally, and there is no reliable way of |
| 112 |
# disabling all warnings for all the compilers by using pragmas. |
| 113 |
# Don't disable on MSVC, because all incriminated warnings are already disabled |
| 114 |
# in source; and because we would otherwise see this warning: |
| 115 |
# cl : Command line warning D9025: overriding '/W4' with '/w' |
| 116 |
if(NOT MSVC) |
| 117 |
set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w) |
| 118 |
endif() |
| 119 |
if(MSVC) |
| 120 |
if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.14 ) |
| 121 |
# Since VS2017 15.8, the following snippet: Failed<CustomSubError>() |
| 122 |
# generates a warning: |
| 123 |
# \svn\llvm\utils\unittest\googlemock\include\gmock\gmock-matchers.h(186): |
| 124 |
# warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface': Symbol involving type with internal linkage not defined |
| 125 |
set_source_files_properties(ErrorTest.cpp PROPERTIES COMPILE_FLAGS -wd5046) |
| 126 |
endif() |
| 127 |
endif() |
| 128 |
|
| 129 |
# ManagedStatic.cpp uses <pthread>. |
| 130 |
target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB}) |
| 131 |
|
| 132 |
if(NOT LLVM_INTEGRATED_CRT_ALLOC) |
| 133 |
# The test doesn't pass when using a custom allocator, PR47881. |
| 134 |
add_subdirectory(DynamicLibrary) |
| 135 |
endif() |
| 136 |
|
| 137 |
add_subdirectory(CommandLineInit) |