llvm-project
20 строк · 788.0 Байт
1import lit.llvm2
3lit.llvm.initialize(lit_config, config)4lit.llvm.llvm_config.use_default_substitutions()5
6config.name = "ClangPseudo"7config.suffixes = [".test", ".c", ".cpp"]8config.excludes = ["Inputs"]9config.test_format = lit.formats.ShTest(not lit.llvm.llvm_config.use_lit_shell)10config.test_source_root = config.clang_pseudo_source_dir + "/test"11config.test_exec_root = config.clang_pseudo_binary_dir + "/test"12
13config.environment["PATH"] = os.path.pathsep.join(14(config.clang_tools_dir, config.llvm_tools_dir, config.environment["PATH"])15)
16
17# It is not realistically possible to account for all options that could
18# possibly be present in system and user configuration files, so disable
19# default configs for the test runs.
20config.environment["CLANG_NO_DEFAULT_CONFIG"] = "1"21