Lines Matching refs:testcase
35 from ..objects import testcase
50 def FilterVariantsByTest(self, testcase):
52 if testcase.outcomes:
53 if statusfile.OnlyStandardVariant(testcase.outcomes):
55 if statusfile.OnlyFastVariants(testcase.outcomes):
59 def GetFlagSets(self, testcase, variant):
60 if testcase.outcomes and statusfile.OnlyFastVariants(testcase.outcomes):
102 def CommonTestName(self, testcase):
104 return testcase.path.replace("\\", "/")
106 return testcase.path
270 def GetFlagsForTestCase(self, testcase, context):
273 def GetSourceForTest(self, testcase):
276 def IsFailureOutput(self, testcase):
277 return testcase.output.exit_code != 0
279 def IsNegativeTest(self, testcase):
282 def HasFailed(self, testcase):
283 execution_failed = self.IsFailureOutput(testcase)
284 if self.IsNegativeTest(testcase):
289 def GetOutcome(self, testcase):
290 if testcase.output.HasCrashed():
292 elif testcase.output.HasTimedOut():
294 elif self.HasFailed(testcase):
299 def HasUnexpectedOutput(self, testcase):
300 outcome = self.GetOutcome(testcase)
301 return not outcome in (testcase.outcomes or [statusfile.PASS])
303 def StripOutputForTransmit(self, testcase):
304 if not self.HasUnexpectedOutput(testcase):
305 testcase.output.stdout = ""
306 testcase.output.stderr = ""
316 def FilterVariantsByTest(self, testcase):
351 test = testcase.TestCase(self, test_case + test_desc)
356 def GetFlagsForTestCase(self, testcase, context):
357 return (testcase.flags + ["--gtest_filter=" + testcase.path] +