Lines Matching +full:lit +full:- +full:tests

1 # -*- Python -*-
12 import lit.formats
13 from lit.llvm import llvm_config
14 from lit.llvm.subst import FindTool
15 from lit.llvm.subst import ToolSubst
21 config.name = "lldb-shell"
23 # testFormat: The test format to use to interpret tests.
27 # by individual lit.local.cfg files in the test subdirectories.
31 # subdirectories contain auxiliary inputs for various tests in their parent
35 # test_source_root: The root path where tests are located.
38 # test_exec_root: The root path where tests should be run.
59 if re.match(r".*-linux.*", config.target_triple):
60 config.available_features.add("remote-linux")
69 if re.match(r"^arm(hf.*-linux)|(.*-linux-gnuabihf)", config.target_triple):
70 config.available_features.add("armhf-linux")
72 if re.match(r".*-(windows|mingw32)", config.target_triple):
73 config.available_features.add("target-windows")
75 if re.match(r".*-(windows-msvc)$", config.target_triple):
76 config.available_features.add("windows-msvc")
78 if re.match(r".*-(windows-gnu|mingw32)$", config.target_triple):
79 config.available_features.add("windows-gnu")
91 # Run llvm-config and add automatically add features for whether we have
96 ("--assertion-mode", {"ON": "asserts"}),
97 ("--build-mode", {"DEBUG": "debug"}),
98 ("--targets-built", calculate_arch_features),
104 # lit.py invocation is close enough.
110 # Set a default per-test timeout of 10 minutes. Setting a timeout per test
112 # lit complains if the value is set but it is not supported.
117 lit_config.warning("Could not set a default per-test timeout. " + errormsg)
120 # If running tests natively, check for CPU features needed for some tests.
123 cpuid_exe = lit.util.which("lit-cpuid", config.lldb_tools_dir)
126 "lit-cpuid not found, tests requiring CPU extensions will be skipped"
129 out, err, exitcode = lit.util.executeCommand([cpuid_exe])
132 config.available_features.add("native-cpu-%s" % x)
134 lit_config.warning("lit-cpuid failed: %s" % err)
149 config.available_features.add("system-debugserver")
152 config.available_features.add("lldb-server")
155 config.available_features.add("objc-gnustep")
172 ["/sbin/sysctl", "-n", "security.models.extensions.user_set_dbregs"]
182 config.available_features.add("dbregs-set")
185 config.available_features.add("ld_preload-present")
188 # skip affected tests if they contain this bug.
192 ("xcrun", "ld", "-version_details")
198 config.available_features.add("ld_new-bug")