xref: /llvm-project/llvm/utils/gn/secondary/clang/unittests/BUILD.gn (revision 5ac97d397c2088c3ac0a113506e57ab9b1e69ac8)
1import("//clang/lib/StaticAnalyzer/Frontend/enable.gni")
2
3group("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    "Rewrite:RewriteTests",
20    "Sema:SemaTests",
21    "Serialization:SerializationTests",
22    "Support:ClangSupportTests",
23    "Tooling:ToolingTests",
24    "Tooling/Syntax:SyntaxTests",
25  ]
26  if (clang_enable_static_analyzer) {
27    deps += [
28      "Analysis:ClangAnalysisTests",
29      "Analysis/FlowSensitive:ClangAnalysisFlowSensitiveTests",
30      "StaticAnalyzer:StaticAnalysisTests",
31    ]
32  }
33  if (host_os != "win") {
34    deps += [
35      # FIXME: libclang unit tests are disabled on Windows due
36      # to failures, mostly in libclang.VirtualFileOverlay_*.
37      # FIXME: Also, the executable can't find libclang.dll since that's
38      # in a different directory.
39      "libclang:libclangTests",
40      "libclang/CrashTests:libclangCrashTests",
41
42      # Exceptions on Windows are not yet supported.
43      "Interpreter/ExceptionTests:ClangReplInterpreterExceptionTests",
44    ]
45  }
46  testonly = true
47}
48