diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-12-31 00:10:47 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-12-31 00:10:47 +0000 |
commit | fde9e0975fa222a536464e40dd26859e1fe584c2 (patch) | |
tree | e8b99d2f7add9daf2edbb21fb2a481a67fb68eab /llvm/utils/gn/secondary/clang/unittests/Analysis | |
parent | 2803bcf5b0db78ef39fd74e7cc01aea766d1df34 (diff) | |
download | bcm5719-llvm-fde9e0975fa222a536464e40dd26859e1fe584c2.tar.gz bcm5719-llvm-fde9e0975fa222a536464e40dd26859e1fe584c2.zip |
[gn build] Make `ninja check-clang` also run Clang's unit tests
Also add a build file for clang/lib/ASTMatchers/Dynamic, which is only needed
by tests (and clang/tools/extra).
Also make llvm/utils/gn/build/sync_source_lists_from_cmake.py check that every
CMakeLists.txt file below {lld,clang}/unittests has a corresponding BUILD.gn
file, so we notice if new test binaries get added (since the failure mode for
missing GN build files for tests is just the tests silently not running in the
GN build).
Also add a unittest() macro for defining unit test targets, and add a lengthy
comment there about where the unit test binaries go and why.
With this, the build files for //clang are complete.
Differential Revision: https://reviews.llvm.org/D56116
llvm-svn: 350171
Diffstat (limited to 'llvm/utils/gn/secondary/clang/unittests/Analysis')
-rw-r--r-- | llvm/utils/gn/secondary/clang/unittests/Analysis/BUILD.gn | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/utils/gn/secondary/clang/unittests/Analysis/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/Analysis/BUILD.gn new file mode 100644 index 00000000000..c6c6fbe58a9 --- /dev/null +++ b/llvm/utils/gn/secondary/clang/unittests/Analysis/BUILD.gn @@ -0,0 +1,19 @@ +import("//llvm/utils/unittest/unittest.gni") + +unittest("ClangAnalysisTests") { + configs += [ "//llvm/utils/gn/build:clang_code" ] + deps = [ + "//clang/lib/AST", + "//clang/lib/ASTMatchers", + "//clang/lib/Analysis", + "//clang/lib/Basic", + "//clang/lib/Frontend", + "//clang/lib/Tooling", + "//llvm/lib/Support", + ] + sources = [ + "CFGTest.cpp", + "CloneDetectionTest.cpp", + "ExprMutationAnalyzerTest.cpp", + ] +} |