Lines Matching refs:testcase
35 from ..objects import testcase
73 def FilterVariantsByTest(self, testcase):
74 if testcase.outcomes and statusfile.OnlyStandardVariant(
75 testcase.outcomes):
77 if testcase.outcomes and statusfile.OnlyFastVariants(testcase.outcomes):
81 def GetFlagSets(self, testcase, variant):
82 if testcase.outcomes and statusfile.OnlyFastVariants(testcase.outcomes):
110 self.tests = None # list of TestCase objects
130 def CommonTestName(self, testcase):
132 return testcase.path.replace("\\", "/")
134 return testcase.path
188 # Even for skipped tests, as the TestCase object stays around and
261 def GetFlagsForTestCase(self, testcase, context):
264 def GetSourceForTest(self, testcase):
270 def IsNegativeTest(self, testcase):
273 def HasFailed(self, testcase):
274 execution_failed = self.IsFailureOutput(testcase.output, testcase.path)
275 if self.IsNegativeTest(testcase):
280 def GetOutcome(self, testcase):
281 if testcase.output.HasCrashed():
283 elif testcase.output.HasTimedOut():
285 elif self.HasFailed(testcase):
290 def HasUnexpectedOutput(self, testcase):
291 outcome = self.GetOutcome(testcase)
292 return not outcome in (testcase.outcomes or [statusfile.PASS])
294 def StripOutputForTransmit(self, testcase):
295 if not self.HasUnexpectedOutput(testcase):
296 testcase.output.stdout = ""
297 testcase.output.stderr = ""
307 def FilterVariantsByTest(self, testcase):
333 test = testcase.TestCase(self, test_case + test_desc, dependency=None)
338 def GetFlagsForTestCase(self, testcase, context):
339 return (testcase.flags + ["--gtest_filter=" + testcase.path] +