1 import("//llvm/utils/unittest/unittest.gni")
3 unittest("DebugInfoPDBTests") {
5 "//llvm/lib/DebugInfo/CodeView",
6 "//llvm/lib/DebugInfo/MSF",
7 "//llvm/lib/DebugInfo/PDB",
8 "//llvm/lib/Testing/Support",
12 "NativeSymbolReuseTest.cpp",
14 "StringTableBuilderTest.cpp",
17 # DebugInfoPDBTests uses llvm::getInputFileDirectory(), which expects
18 # a file called llvm.srcdir.txt next to the test executable that contains
19 # the path of the source directory (which contains this file).
20 # lit doesn't change the cwd while running googletests, so the cwd isn't
21 # well-defined. This means this has to be an absolute path.
22 # FIXME: This doesn't work with swarming. This should really be a data
23 # dependency, and the cwd while tests requiring input files run should
24 # be required to be some fixed directory.
25 # FIXME: Also, the GN way is to write this file at build time. But since
26 # there's only one use of this, and since this is a pattern that hopefully
27 # will disappear again, and since it doesn't have any measurable performance
28 # hit, write the file at GN time.
29 # Note: This line here implicitly depends on unittest() setting output_dir to
31 write_file("$target_out_dir/llvm.srcdir.txt", rebase_path("."))