blob: 1eb3a04d91d62cdce46d70b2217452c1f5a11aa5 [file] [log] [blame]
Chandler Carruth94d02512012-06-21 09:51:26 +00001set(LLVM_LINK_COMPONENTS
2 Support
Chandler Carruth94d02512012-06-21 09:51:26 +00003 )
4
5add_llvm_unittest(SupportTests
6 AlignOfTest.cpp
7 AllocatorTest.cpp
Sam Parkerdf7c6ef2017-01-18 13:52:12 +00008 ARMAttributeParser.cpp
Jakob Stoklund Olesen17a7d222013-01-05 00:57:11 +00009 ArrayRecyclerTest.cpp
Zachary Turnerd9dc2822017-03-02 20:52:51 +000010 BinaryStreamTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000011 BlockFrequencyTest.cpp
Duncan P. N. Exon Smithcd630f22014-04-29 16:12:13 +000012 BranchProbabilityTest.cpp
Peter Collingbourned1eac7b2017-03-16 03:42:00 +000013 CachePruningTest.cpp
Reid Kleckner710c1ce2017-05-17 18:16:17 +000014 CrashRecoveryTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000015 Casting.cpp
Pavel Labath59838f72016-10-20 12:05:50 +000016 Chrono.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000017 CommandLineTest.cpp
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000018 CompressionTest.cpp
Reid Kleckner7df03c22013-07-16 17:14:33 +000019 ConvertUTFTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000020 DataExtractorTest.cpp
Eugene Leviantc089e402016-12-27 09:31:20 +000021 DebugTest.cpp
Pavel Labath3b17b842018-02-21 22:36:31 +000022 DJBTest.cpp
Matt Arsenaultd9316422015-02-05 03:30:08 +000023 EndianStreamTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000024 EndianTest.cpp
Pavel Labathfe09f502017-06-29 13:15:31 +000025 ErrnoTest.cpp
Michael J. Spencer779c4242013-01-20 20:32:30 +000026 ErrorOrTest.cpp
Rui Ueyamaf7a7ab52016-12-20 23:09:09 +000027 ErrorTest.cpp
Nick Kledzik5fce8c42012-08-01 02:29:50 +000028 FileOutputBufferTest.cpp
Zachary Turner11db2642016-11-11 23:57:40 +000029 FormatVariadicTest.cpp
Rui Ueyamaf7a7ab52016-12-20 23:09:09 +000030 GlobPatternTest.cpp
Teresa Johnson7943fec2016-10-13 17:43:20 +000031 Host.cpp
Logan Chien5b776b72014-02-22 14:00:39 +000032 LEB128Test.cpp
Chandler Carruthf8c52812013-12-27 04:28:57 +000033 LineIteratorTest.cpp
Reid Kleckner7de8ea32013-08-07 01:22:04 +000034 LockFileManagerTest.cpp
Chandler Carruth9a6be8b2014-04-24 03:31:23 +000035 MD5Test.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000036 ManagedStatic.cpp
37 MathExtrasTest.cpp
Andrew Kaylor5e7d7922012-10-04 20:29:44 +000038 MemoryBufferTest.cpp
Andrew Kaylor1f661002012-09-19 20:46:12 +000039 MemoryTest.cpp
Zachary Turner5b2243e2016-10-29 00:27:22 +000040 NativeFormatTests.cpp
Zachary Turner3a57fbd2017-05-11 00:03:52 +000041 ParallelTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000042 Path.cpp
Chandler Carruth97683aa2012-12-31 11:17:50 +000043 ProcessTest.cpp
Reid Kleckner74679a92013-04-22 19:03:55 +000044 ProgramTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000045 RegexTest.cpp
Mandeep Singh Grang872f6892017-08-24 23:02:48 +000046 ReverseIterationTest.cpp
Greg Bedwell7f68a712015-10-12 15:11:47 +000047 ReplaceFileTest.cpp
Duncan P. N. Exon Smith9c62dd52014-06-20 01:30:43 +000048 ScaledNumberTest.cpp
Dmitri Gribenko8f944622013-09-27 21:09:25 +000049 SourceMgrTest.cpp
Alexey Samsonovb7dd3292014-07-09 19:40:08 +000050 SpecialCaseListTest.cpp
Nikola Smiljanic89e561a2014-06-19 00:26:49 +000051 StringPool.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000052 SwapByteOrderTest.cpp
Rui Ueyamae9d17542017-01-09 22:55:00 +000053 TarWriterTest.cpp
Saleem Abdulrasool11bf1ac2016-03-06 04:50:55 +000054 TargetParserTest.cpp
Hans Wennborgfabf8bf2013-12-19 20:32:44 +000055 ThreadLocalTest.cpp
Mehdi Amini33a7ea42015-12-15 00:59:19 +000056 ThreadPool.cpp
Rui Ueyamae9d17542017-01-09 22:55:00 +000057 Threading.cpp
Vedant Kumard1675862015-12-22 17:36:17 +000058 TimerTest.cpp
Chandler Carruth17edbdd2016-02-25 03:58:21 +000059 TypeNameTest.cpp
James Y Knightaa365b22015-08-05 22:57:34 +000060 TrailingObjectsTest.cpp
Ivan Krasin3dade412016-12-01 02:54:54 +000061 TrigramIndexTest.cpp
Alexander Kornienko9aa60fd2013-09-04 16:00:12 +000062 UnicodeTest.cpp
Nick Kledzikf60a9272012-12-12 20:46:15 +000063 YAMLIOTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000064 YAMLParserTest.cpp
Daniel Dunbarb93a2ce2012-09-14 23:36:56 +000065 formatted_raw_ostream_test.cpp
Daniel Dunbar9affb242012-09-14 23:15:56 +000066 raw_ostream_test.cpp
Rafael Espindola37b70152015-04-14 15:00:34 +000067 raw_pwrite_stream_test.cpp
Mehdi Amini4cd57022016-04-01 04:30:16 +000068 raw_sha1_ostream_test.cpp
Rafael Espindolaeaeb6d92016-09-27 15:45:57 +000069 xxhashTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000070 )
NAKAMURA Takumi13437e82014-11-07 16:08:19 +000071
Pavel Labathe8354fe2017-12-07 10:54:23 +000072target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
73
Galina Kistanova937b8e02017-06-07 06:30:27 +000074# Disable all warning for AlignOfTest.cpp,
75# as it does things intentionally, and there is no reliable way of
76# disabling all warnings for all the compilers by using pragmas.
77set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
78
NAKAMURA Takumi13437e82014-11-07 16:08:19 +000079# ManagedStatic.cpp uses <pthread>.
Shoaib Meenaid806af32017-12-05 21:49:56 +000080target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
Frederich Munchc1db8cf2017-04-27 16:55:24 +000081
82add_subdirectory(DynamicLibrary)