llvm-project/llvm/unittests/Support
Chandler Carruth 94d0251824 Completely refactor the structuring of unittest CMake files to match the
Makefiles, the CMake files in every other part of the LLVM tree, and
sanity.

This should also restore the output tree structure of all the unit
tests, sorry for breaking that, and thanks for letting me know.

The fundamental change is to put a CMakeLists.txt file in the unittest
directory, with a single test binary produced from it. This has several
advantages:

- No more weird directory stripping in the unittest macro, allowing it
  to be used more readily in other projects.
- No more directory prefixes on all the source files.
- Allows correct and precise use of LLVM's per-directory dependency
  system.
- Allows use of the checking logic for source files that have not been
  added to the CMake build. This uncovered a file being skipped with
  CMake in LLVM and one in Clang's unit tests.
- Makes Specifying conditional compilation or other custom logic for JIT
  tests easier.

It did require adding the concept of an explicit 'optional' source file
to the CMake build so that the missing-file check can skip cases where
the file is *supposed* to be missing. =]

This is another chunk of refactoring the CMake build in order to make it
usable for other clients like CompilerRT / ASan / TSan.

Note that this is interdependent with a Clang CMake change.

llvm-svn: 158909
2012-06-21 09:51:26 +00:00
..
AlignOfTest.cpp Disable a particular assertion on MSVC... I'm deeply disturbed by its 2012-06-17 10:36:49 +00:00
AllocatorTest.cpp BumpPtrAllocator: Make sure threshold cannot be initialized with a value smaller than the slab size. 2012-03-01 22:10:16 +00:00
BlockFrequencyTest.cpp For reasons I can't fathom MSVC supports ULL but not LLU suffixes on long long integer literals. 2012-06-17 14:53:53 +00:00
CMakeLists.txt Completely refactor the structuring of unittest CMake files to match the 2012-06-21 09:51:26 +00:00
Casting.cpp unittests/Support/Casting.cpp: [PR8226] Workaround for MSVC|Debug. 2012-01-22 12:14:35 +00:00
CommandLineTest.cpp
ConstantRangeTest.cpp fix corner case in ConstantRange::intersectWith(). 2012-05-18 00:14:36 +00:00
DataExtractorTest.cpp unittests/Support/DataExtractorTest.cpp: Specify ULL explicitly to a few constants. 2011-09-13 23:23:49 +00:00
EndianTest.cpp Merge System into Support. 2010-11-29 18:16:10 +00:00
IRBuilderTest.cpp Fix inappropriate use of anonymous namespaces in unittests. 2012-06-20 08:39:27 +00:00
IntegersSubsetTest.cpp IntegersSubsetMapping: added exclude operation, that allows to exclude subset of integers from current mapping. 2012-06-05 07:57:36 +00:00
LeakDetectorTest.cpp Fix death tests in -Asserts builds. 2010-03-17 01:18:45 +00:00
MDBuilderTest.cpp Remove support for the special 'fast' value for fpmath accuracy for the moment. 2012-04-16 19:39:33 +00:00
Makefile
ManagedStatic.cpp Fix Windows build, don't try to #include <pthread.h> when we know it's not 2011-11-14 22:10:23 +00:00
MathExtrasTest.cpp Fixes warnings emitted by Visual Studio 2010 compiler. 2011-03-01 23:11:57 +00:00
Path.cpp Add permissions(), map_file_pages(), and unmap_file_pages() to llvm::sys::fs and add unit test. Unix is implemented. Windows side needs to be implemented. 2012-06-20 00:28:54 +00:00
RegexTest.cpp Add Regex::sub, for doing regular expression substitution with backreferences. 2010-02-17 20:08:42 +00:00
SwapByteOrderTest.cpp Merge System into Support. 2010-11-29 18:16:10 +00:00
TimeValue.cpp unittests: Merge SystemTests back into SupportTests. 2010-11-29 22:29:04 +00:00
TypeBuilderTest.cpp Round 2 of dead private variable removal. 2012-06-06 19:47:08 +00:00
ValueHandleTest.cpp Change all self assignments X=X to (void)X, so that we can turn on a 2010-12-23 00:58:24 +00:00
YAMLParserTest.cpp Add YAML parser to Support. 2012-04-03 23:09:22 +00:00
raw_ostream_test.cpp Add raw_ostream::write_escaped, for writing escaped strings. 2009-10-17 20:43:08 +00:00