[PATCH] D28750: [lld] [cmake] Support running tests in stand-alone builds
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 15 15:03:11 PST 2017
mgorny created this revision.
mgorny added reviewers: compnerd, beanz, Bigcheese, ruiu.
mgorny added a subscriber: llvm-commits.
Add the CMake bits necessary to run lld tests (and unittests) when
building stand-alone. The code is based on the equivalent code in clang,
and includes:
1. checking for Python, searching for lit and necessary LLVM test tools
(FileCount and not),
2. building LLVM test tools (FileCount and not) from LLVM sources if
they are not installed,
3. building gtest libraries from LLVM sources,
4. adjusting dependencies so that test targets depend only on those LLVM
targets that are available for a particular variant of stand-alone
build.
With this patch, I am able to successfully run 1002 (+10 unsupported)
lit tests on Gentoo using installed LLVM.
https://reviews.llvm.org/D28750
Files:
CMakeLists.txt
test/CMakeLists.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28750.84506.patch
Type: text/x-patch
Size: 4488 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170115/a89b6994/attachment.bin>
More information about the llvm-commits
mailing list