Lines Matching +full:lit +full:- +full:tests
1 # -*- Python -*-
8 import lit.formats
9 from lit.llvm import llvm_config
11 # Configuration file for the 'lit' test runner.
14 config.name = "lit"
16 # testFormat: The test format to use to interpret tests.
17 config.test_format = lit.formats.ShTest(execute_external=False)
25 # test_source_root: The root path where tests are located.
34 # ``lit.py``, so use `llvm_src_root` instead.
35 lit_path = os.path.join(llvm_src_root, "utils", "lit")
40 # Required because some tests import the lit module
45 # Do not add user-site packages directory to the python search path. This avoids test failures if t…
46 # incompatible lit module installed inside the user-site packages directory, as it gets prioritized…
50 # Add llvm and lit tools directories if this config is being loaded indirectly.
57 # This test suite calls %{lit} to test lit's behavior for the sample test
59 # by %{lit}'s textual output, which includes the output of FileCheck calls
60 # within %{inputs}'s test suites. Thus, %{lit} clears environment variables
61 # that can affect FileCheck's output. It also includes "--order=lexical -j1"
65 config.substitutions.append(("%{lit}", "%{lit-no-order-opt} --order=lexical"))
68 "%{lit-no-order-opt}",
69 "{env} %{{python}} {lit} -j1".format(
70 env="env -u FILECHECK_OPTS", lit=os.path.join(lit_path, "lit.py")
77 # shell. Ignore it in lit's output where we need to strictly check only the
81 "%{filter-lit}",
82 "grep -v 'bash.exe: warning: could not find /tmp, please create!'",
88 if lit_config.params.get("check-coverage", None):
99 (os.path.dirname(__file__), "check-tested-lit-timeout-ability")
108 config.available_features.add("lit-max-individual-test-time")
114 + " Some tests will be skipped and the --timeout"
118 # When running the lit tests standalone, we want to define the same features
119 # that the llvm_config defines. This means that the 'system-windows' feature
123 config.available_features.add("system-windows")
125 config.available_features.add("system-aix")
127 # For each of lit's internal shell commands ('env', 'cd', 'diff', etc.), put
129 # that we always use lit's internal version rather than some external version
133 # name under Windows. Don't do this for 'not' because lit uses the external
134 # 'not' throughout a RUN line that calls 'not --crash'.
135 test_bin = os.path.join(os.path.dirname(__file__), "Inputs", "fake-externals")