6 Commits

Author SHA1 Message Date
Zachary Turner
30d3c5d435 Fix error with SmallString implicit conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341597 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-06 22:47:32 +00:00
Zachary Turner
9b5f11d574 Fix a configure issue with Visual Studio generators.
We can't put the unittest source dir map in the configuration
specific directory because VS doesn't have a configure-specific
directory, instead it only knows this at runtime.  So we have
to remove this from the path.  This in turn means that the path
will be slightly different in VS configurations vs non vs
configurations.  In the former, the source map will be in the
parent directory of the executable, and in the latter it will
be in the same directory as the executable.  So check both.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341590 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-06 22:00:38 +00:00
Fangrui Song
f22832842f Quick fix for -DBUILD_SHARED_LIBS=on build after rL341502
libLLVMTestingSupport.so references a symbol in utils/unittest/UnitTestMain/TestMain.cpp (a layering issue) and will cause a link error because of -Wl,-z,defs (cmake/modules/HandleLLVMOptions.cmake)

Waiting zturner for a better fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341580 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-06 19:51:20 +00:00
Zachary Turner
d2d8db6d7a Fix some warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341508 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-06 00:06:20 +00:00
Zachary Turner
a8b0ea0bbd Fix silly error in unittest helper.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341505 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-05 23:45:48 +00:00
Zachary Turner
c4278f122c Add support for unittest inputs.
Occasionally it is useful to have unittest which take inputs.
While we normally try to have this test be more of a lit test
we occasionally don't have tools that can exercise the code
in the right way to test certain things.  LLDB has been using
this style of unit test for a while, particularly with regards
to how it tests core dump and minidump file parsing.  Recently
i needed this as well for the case where we want to test that
some of the PDB reading code works correctly.  It needs to
exercise the code in a way that is not covered by any dumper
and would be impractical to implement in one of the dumpers,
but requires a valid PDB file.  Since this is now needed by
more than one project, it makes sense to have this be a
generally supported thing that unit tests can do, and we just
encourage people to use this sparingly.

Differential Revision: https://reviews.llvm.org/D51561

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341502 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-05 23:30:17 +00:00