3 config
.name
= "Clangd Unit Tests"
4 config
.test_format
= lit
.formats
.GoogleTest(".", "Tests")
5 config
.test_source_root
= config
.clangd_binary_dir
+ "/unittests"
6 config
.test_exec_root
= config
.clangd_binary_dir
+ "/unittests"
8 # Point the dynamic loader at dynamic libraries in 'lib'.
9 # FIXME: it seems every project has a copy of this logic. Move it somewhere.
12 if platform
.system() == "Darwin":
13 shlibpath_var
= "DYLD_LIBRARY_PATH"
14 elif platform
.system() == "Windows":
15 shlibpath_var
= "PATH"
17 shlibpath_var
= "LD_LIBRARY_PATH"
18 config
.environment
[shlibpath_var
] = os
.path
.pathsep
.join(
19 ("@SHLIBDIR@", "@LLVM_LIBS_DIR@", config
.environment
.get(shlibpath_var
, ""))
22 # It is not realistically possible to account for all options that could
23 # possibly be present in system and user configuration files, so disable
24 # default configs for the test runs.
25 config
.environment
["CLANG_NO_DEFAULT_CONFIG"] = "1"