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

6 import lit.Test
7 import lit.TestRunner
8 import lit.util
9 from lit.formats.base import TestFormat
19 # Ignore dot files and excluded tests.
31 yield lit.Test.Test(
37 return lit.Test.PASS, ""
40 return (lit.Test.UNSUPPORTED, "Python module disabled")
43 return (lit.Test.UNSUPPORTED, "Test is unsupported")
47 # The Python used to run lit can be different from the Python LLDB was
54 # shebang lines. To make sure we can execute the tests, add
56 cmd = [executable] + self.dotest_cmd + [testPath, "-p", testFile]
59 cmd.extend(["--env", "LUA_EXECUTABLE=%s" % test.config.lua_executable])
60 cmd.extend(["--env", "LLDB_LUA_CPATH=%s" % test.config.lldb_lua_cpath])
64 out, err, exitCode = lit.util.executeCommand(
69 except lit.util.ExecuteCommandTimeoutException as e:
77 output = """Script:\n--\n%s\n--\nExit Code: %d\n""" % (" ".join(cmd), exitCode)
83 output += """Command Output (stdout):\n--\n%s\n--\n""" % (out,)
85 output += """Command Output (stderr):\n--\n%s\n--\n""" % (err,)
88 return lit.Test.TIMEOUT, output
90 # Parse the dotest output from stderr. First get the # of total tests, in order to infer the # of passes.
91 # Example: "Ran 5 tests in 0.042s"
92 num_ran_regex = r"^Ran (\d+) tests? in "
97 return lit.Test.UNRESOLVED, output
109 return lit.Test.UNRESOLVED, output
117 return lit.Test.UNRESOLVED, output
129 passes = num_ran - non_pass
134 return lit.Test.FAIL, output
136 (failures, lit.Test.FAIL),
137 (errors, lit.Test.UNRESOLVED),
138 (unexpected_successes, lit.Test.XPASS),
143 return lit.Test.PASS, output
145 (passes, lit.Test.PASS),
146 (skipped, lit.Test.UNSUPPORTED),
147 (expected_failures, lit.Test.XFAIL),
150 # Return the lit result code with the maximum occurrence. Only look at