4config.name =
"Clangd Unit Tests"
5config.test_format = lit.formats.GoogleTest(
".",
"Tests")
6config.test_source_root = config.clangd_binary_dir +
"/unittests"
7config.test_exec_root = config.clangd_binary_dir +
"/unittests"
14core_count = lit.util.usable_core_count()
17lit_config.parallelism_groups[
"clangd"] = max(1, core_count // 4)
18config.parallelism_group =
"clangd"
20if platform.system() ==
"Darwin":
21 shlibpath_var =
"DYLD_LIBRARY_PATH"
22elif platform.system() ==
"Windows":
23 shlibpath_var =
"PATH"
25 shlibpath_var =
"LD_LIBRARY_PATH"
26config.environment[shlibpath_var] = os.path.pathsep.join(
27 (
"@SHLIBDIR@",
"@LLVM_LIBS_DIR@", config.environment.get(shlibpath_var,
""))
33config.environment[
"CLANG_NO_DEFAULT_CONFIG"] =
"1"