blob: 51d5de0a153252ef5e6ac47dc1849302b0724337 [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
George Karpenkov3f547fe2018-03-02 00:30:43 +000016 CheckedArithmeticTest.cpp
Pavel Labath59838f72016-10-20 12:05:50 +000017 Chrono.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000018 CommandLineTest.cpp
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000019 CompressionTest.cpp
Reid Kleckner7df03c22013-07-16 17:14:33 +000020 ConvertUTFTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000021 DataExtractorTest.cpp
Eugene Leviantc089e402016-12-27 09:31:20 +000022 DebugTest.cpp
George Burgess IVb00fb462018-07-23 21:49:36 +000023 DebugCounterTest.cpp
Pavel Labath3b17b842018-02-21 22:36:31 +000024 DJBTest.cpp
Matt Arsenaultd9316422015-02-05 03:30:08 +000025 EndianStreamTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000026 EndianTest.cpp
Pavel Labathfe09f502017-06-29 13:15:31 +000027 ErrnoTest.cpp
Michael J. Spencer779c4242013-01-20 20:32:30 +000028 ErrorOrTest.cpp
Rui Ueyamaf7a7ab52016-12-20 23:09:09 +000029 ErrorTest.cpp
Nick Kledzik5fce8c42012-08-01 02:29:50 +000030 FileOutputBufferTest.cpp
Zachary Turner11db2642016-11-11 23:57:40 +000031 FormatVariadicTest.cpp
Rui Ueyamaf7a7ab52016-12-20 23:09:09 +000032 GlobPatternTest.cpp
Teresa Johnson7943fec2016-10-13 17:43:20 +000033 Host.cpp
Richard Smith2ae84682018-08-24 22:31:51 +000034 ItaniumManglingCanonicalizerTest.cpp
Sam McCall6be38242018-07-09 10:05:41 +000035 JSONTest.cpp
Logan Chien5b776b72014-02-22 14:00:39 +000036 LEB128Test.cpp
Chandler Carruthf8c52812013-12-27 04:28:57 +000037 LineIteratorTest.cpp
Reid Kleckner7de8ea32013-08-07 01:22:04 +000038 LockFileManagerTest.cpp
Chandler Carruth9a6be8b2014-04-24 03:31:23 +000039 MD5Test.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000040 ManagedStatic.cpp
41 MathExtrasTest.cpp
Andrew Kaylor5e7d7922012-10-04 20:29:44 +000042 MemoryBufferTest.cpp
Andrew Kaylor1f661002012-09-19 20:46:12 +000043 MemoryTest.cpp
Zachary Turner5b2243e2016-10-29 00:27:22 +000044 NativeFormatTests.cpp
Zachary Turner3a57fbd2017-05-11 00:03:52 +000045 ParallelTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000046 Path.cpp
Chandler Carruth97683aa2012-12-31 11:17:50 +000047 ProcessTest.cpp
Reid Kleckner74679a92013-04-22 19:03:55 +000048 ProgramTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000049 RegexTest.cpp
Mandeep Singh Grang872f6892017-08-24 23:02:48 +000050 ReverseIterationTest.cpp
Greg Bedwell7f68a712015-10-12 15:11:47 +000051 ReplaceFileTest.cpp
Duncan P. N. Exon Smith9c62dd52014-06-20 01:30:43 +000052 ScaledNumberTest.cpp
Dmitri Gribenko8f944622013-09-27 21:09:25 +000053 SourceMgrTest.cpp
Alexey Samsonovb7dd3292014-07-09 19:40:08 +000054 SpecialCaseListTest.cpp
Nikola Smiljanic89e561a2014-06-19 00:26:49 +000055 StringPool.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000056 SwapByteOrderTest.cpp
Rui Ueyamae9d17542017-01-09 22:55:00 +000057 TarWriterTest.cpp
Saleem Abdulrasool11bf1ac2016-03-06 04:50:55 +000058 TargetParserTest.cpp
Zachary Turner35169f62018-06-25 03:13:09 +000059 TaskQueueTest.cpp
Hans Wennborgfabf8bf2013-12-19 20:32:44 +000060 ThreadLocalTest.cpp
Mehdi Amini33a7ea42015-12-15 00:59:19 +000061 ThreadPool.cpp
Rui Ueyamae9d17542017-01-09 22:55:00 +000062 Threading.cpp
Vedant Kumard1675862015-12-22 17:36:17 +000063 TimerTest.cpp
Chandler Carruth17edbdd2016-02-25 03:58:21 +000064 TypeNameTest.cpp
Chandler Carruthf814ad82018-07-03 01:18:21 +000065 TypeTraitsTest.cpp
James Y Knightaa365b22015-08-05 22:57:34 +000066 TrailingObjectsTest.cpp
Ivan Krasin3dade412016-12-01 02:54:54 +000067 TrigramIndexTest.cpp
Alexander Kornienko9aa60fd2013-09-04 16:00:12 +000068 UnicodeTest.cpp
Pavel Labathd8c62902018-06-11 10:28:04 +000069 VersionTupleTest.cpp
Nick Kledzikf60a9272012-12-12 20:46:15 +000070 YAMLIOTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000071 YAMLParserTest.cpp
Daniel Dunbarb93a2ce2012-09-14 23:36:56 +000072 formatted_raw_ostream_test.cpp
Daniel Dunbar9affb242012-09-14 23:15:56 +000073 raw_ostream_test.cpp
Rafael Espindola37b70152015-04-14 15:00:34 +000074 raw_pwrite_stream_test.cpp
Mehdi Amini4cd57022016-04-01 04:30:16 +000075 raw_sha1_ostream_test.cpp
Rafael Espindolaeaeb6d92016-09-27 15:45:57 +000076 xxhashTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000077 )
NAKAMURA Takumi13437e82014-11-07 16:08:19 +000078
Pavel Labathe8354fe2017-12-07 10:54:23 +000079target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
80
Galina Kistanova937b8e02017-06-07 06:30:27 +000081# Disable all warning for AlignOfTest.cpp,
82# as it does things intentionally, and there is no reliable way of
83# disabling all warnings for all the compilers by using pragmas.
84set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
85
NAKAMURA Takumi13437e82014-11-07 16:08:19 +000086# ManagedStatic.cpp uses <pthread>.
Shoaib Meenaid806af32017-12-05 21:49:56 +000087target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
Frederich Munchc1db8cf2017-04-27 16:55:24 +000088
89add_subdirectory(DynamicLibrary)