| 1 |
import("//clang/lib/StaticAnalyzer/Frontend/enable.gni") |
| 2 |
|
| 3 |
group("unittests") { |
| 4 |
deps = [ |
| 5 |
"AST:ASTTests", |
| 6 |
"AST/ByteCode:InterpTests", |
| 7 |
"ASTMatchers:ASTMatchersTests", |
| 8 |
"ASTMatchers/Dynamic:DynamicASTMatchersTests", |
| 9 |
"Basic:BasicTests", |
| 10 |
"CodeGen:ClangCodeGenTests", |
| 11 |
"CrossTU:CrossTUTests", |
| 12 |
"Driver:ClangDriverTests", |
| 13 |
"Format:FormatTests", |
| 14 |
"Frontend:FrontendTests", |
| 15 |
"Index:IndexTests", |
| 16 |
"InstallAPI:InstallAPITests", |
| 17 |
"Interpreter:ClangReplInterpreterTests", |
| 18 |
"Lex:LexTests", |
| 19 |
"Parse:ParseTests", |
| 20 |
"Rewrite:RewriteTests", |
| 21 |
"Sema:SemaTests", |
| 22 |
"Serialization:SerializationTests", |
| 23 |
"Support:ClangSupportTests", |
| 24 |
"Tooling:ToolingTests", |
| 25 |
"Tooling/Syntax:SyntaxTests", |
| 26 |
] |
| 27 |
if (clang_enable_static_analyzer) { |
| 28 |
deps += [ |
| 29 |
"Analysis:ClangAnalysisTests", |
| 30 |
"Analysis/FlowSensitive:ClangAnalysisFlowSensitiveTests", |
| 31 |
"StaticAnalyzer:StaticAnalysisTests", |
| 32 |
] |
| 33 |
} |
| 34 |
if (host_os != "win") { |
| 35 |
deps += [ |
| 36 |
# FIXME: libclang unit tests are disabled on Windows due |
| 37 |
# to failures, mostly in libclang.VirtualFileOverlay_*. |
| 38 |
# FIXME: Also, the executable can't find libclang.dll since that's |
| 39 |
# in a different directory. |
| 40 |
"libclang:libclangTests", |
| 41 |
"libclang/CrashTests:libclangCrashTests", |
| 42 |
|
| 43 |
# Exceptions on Windows are not yet supported. |
| 44 |
"Interpreter/ExceptionTests:ClangReplInterpreterExceptionTests", |
| 45 |
] |
| 46 |
} |
| 47 |
testonly = true |
| 48 |
} |
| 49 |
|
| 50 |
# CMake puts most tests into an AllClangUnitTests target. The GN build |
| 51 |
# doesn't do this. This keeps the sync script happy. |
| 52 |
group("dummy_sources") { |
| 53 |
sources = [ "AllClangUnitTests.cpp" ] |
| 54 |
not_needed(sources) |
| 55 |
} |