Home
last modified time | relevance | path

Searched refs:TestStatus (Results 1 – 23 of 23) sorted by relevance

/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/
DResultReporterTest.java26 import com.android.compatibility.common.util.TestStatus;
160 assertEquals("Expected 1 pass", 1, result.countResults(TestStatus.PASS)); in testResultReporting()
161 assertEquals("Expected 2 failures", 2, result.countResults(TestStatus.FAIL)); in testResultReporting()
174 assertEquals(String.format("Expected pass for %s", TEST_1), TestStatus.PASS, in testResultReporting()
178 assertEquals(String.format("Expected fail for %s", TEST_2), TestStatus.FAIL, in testResultReporting()
182 assertEquals(String.format("Expected fail for %s", TEST_3), TestStatus.FAIL, in testResultReporting()
215 assertEquals("Expected 1 pass", 1, result.countResults(TestStatus.PASS)); in testRepeatedExecutions()
216 assertEquals("Expected 2 failures", 2, result.countResults(TestStatus.FAIL)); in testRepeatedExecutions()
230 assertEquals(String.format("Expected pass for %s", TEST_1), TestStatus.PASS, in testRepeatedExecutions()
236 assertEquals(String.format("Expected fail for %s", TEST_2), TestStatus.FAIL, in testRepeatedExecutions()
[all …]
DSubPlanHelperTest.java29 import com.android.compatibility.common.util.TestStatus;
176 moduleATest1.setResultStatus(TestStatus.PASS); in populateResults()
184 moduleBTest3.setResultStatus(TestStatus.FAIL); in populateResults()
186 moduleBTest4.setResultStatus(TestStatus.PASS); in populateResults()
DChecksumReporterTest.java26 import com.android.compatibility.common.util.TestStatus;
132 mFailedTest.setResultStatus(TestStatus.PASS); in testInvalidChecksums()
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DTestStatus.java21 public enum TestStatus { enum
27 private TestStatus(String storedValue) { in TestStatus() method in TestStatus
47 static TestStatus getStatus(String value) { in getStatus()
48 for (TestStatus status : TestStatus.values()) { in getStatus()
DTestResult.java27 private TestStatus mResult;
67 public TestStatus getResultStatus() { in getResultStatus()
75 public void setResultStatus(TestStatus status) { in setResultStatus()
181 setResultStatus(TestStatus.FAIL); in failed()
198 if (getResultStatus() != TestStatus.FAIL) { in passed()
199 setResultStatus(TestStatus.PASS); in passed()
213 setResultStatus(TestStatus.PASS); in skipped()
263 setResultStatus(TestStatus.FAIL); in removeResult()
DLightInvocationResult.java44 private Map<TestStatus, Integer> mResultCounts;
66 mResultCounts = new HashMap<TestStatus, Integer>(); in LightInvocationResult()
67 for (TestStatus status : TestStatus.values()) { in LightInvocationResult()
88 public int countResults(TestStatus result) { in countResults()
DICaseResult.java51 List<ITestResult> getResults(TestStatus status); in getResults()
56 int countResults(TestStatus status); in countResults()
DITestResult.java39 TestStatus getResultStatus(); in getResultStatus()
46 void setResultStatus(TestStatus status); in setResultStatus()
DCaseResult.java73 public List<ITestResult> getResults(TestStatus status) { in getResults()
97 public int countResults(TestStatus status) { in countResults()
DIModuleResult.java145 int countResults(TestStatus status); in countResults()
DIInvocationResult.java41 int countResults(TestStatus result); in countResults()
DResultHandler.java265 test.setResultStatus(TestStatus.getStatus(result)); in getResultFromDir()
391 int passed = result.countResults(TestStatus.PASS); in writeResults()
392 int failed = result.countResults(TestStatus.FAIL); in writeResults()
498 Integer.toString(module.countResults(TestStatus.PASS))); in writeResults()
503 TestStatus status = r.getResultStatus(); in writeResults()
DChecksumReporter.java334 .append(module.countResults(TestStatus.FAIL)); in generateModuleResultSignature()
343 .append(module.countResults(TestStatus.FAIL)); in generateModuleSummarySignature()
DInvocationResult.java71 public int countResults(TestStatus result) { in countResults()
DModuleResult.java246 public int countResults(TestStatus status) { in countResults()
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DCaseResultTest.java63 assertEquals("Expected status to be set", TestStatus.FAIL, testResult.getResultStatus()); in testResultReporting()
68 assertEquals("Expected status to be set", TestStatus.PASS, testResult.getResultStatus()); in testResultReporting()
76 assertEquals("Expected two failures", 2, mResult.countResults(TestStatus.FAIL)); in testCountResults()
77 assertEquals("Expected one pass", 1, mResult.countResults(TestStatus.PASS)); in testCountResults()
92 assertEquals("Expected one failures", 1, mResult.countResults(TestStatus.FAIL)); in testMergeCase()
93 assertEquals("Expected two pass", 2, mResult.countResults(TestStatus.PASS)); in testMergeCase()
108 assertEquals("Expected one failures", 1, mResult.countResults(TestStatus.FAIL)); in testMergeCase_passToFail()
109 assertEquals("Expected two pass", 2, mResult.countResults(TestStatus.PASS)); in testMergeCase_passToFail()
DResultHandlerTest.java218 moduleATest1.setResultStatus(TestStatus.PASS); in testSerialization()
227 moduleBTest3.setResultStatus(TestStatus.FAIL); in testSerialization()
234 moduleBTest4.setResultStatus(TestStatus.PASS); in testSerialization()
298 moduleATest1.setResultStatus(TestStatus.PASS); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing()
312 moduleBTest3.setResultStatus(TestStatus.FAIL); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing()
323 moduleBTest4.setResultStatus(TestStatus.PASS); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing()
484 assertEquals("Expected 3 passes", 3, lightResult.countResults(TestStatus.PASS)); in checkLightResult()
485 assertEquals("Expected 1 failure", 1, lightResult.countResults(TestStatus.FAIL)); in checkLightResult()
516 assertEquals("Expected 3 passes", 3, result.countResults(TestStatus.PASS)); in checkResult()
517 assertEquals("Expected 1 failure", 1, result.countResults(TestStatus.FAIL)); in checkResult()
[all …]
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DSubPlanHelper.java29 import com.android.compatibility.common.util.TestStatus;
71 private static final Map<String, TestStatus> STATUS_MAP;
73 Map<String, TestStatus> statusMap = new HashMap<String, TestStatus>();
74 statusMap.put(PASSED, TestStatus.PASS); in statusMap.put()
75 statusMap.put(FAILED, TestStatus.FAIL); in statusMap.put()
230 Set<TestStatus> statusesToRun = getStatusesToRun(); in createSubPlan()
318 for (TestStatus status : getStatusesToRun()) { in shouldRunModule()
337 Set<TestStatus> statusesToRun = getStatusesToRun(); in shouldRunEntireModule()
338 for (TestStatus status : TestStatus.values()) { in shouldRunEntireModule()
355 private Set<TestStatus> getStatusesToRun() { in getStatusesToRun()
[all …]
DResultReporter.java35 import com.android.compatibility.common.util.TestStatus;
374 if (mCurrentResult.getResultStatus() == TestStatus.FAIL) { in testEnded()
660 mResult.countResults(TestStatus.PASS), in finalizeResults()
661 mResult.countResults(TestStatus.FAIL), in finalizeResults()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DIntegrationTest.java25 import com.android.compatibility.common.util.TestStatus;
214 assertEquals(2, result.countResults(TestStatus.PASS)); in testSingleModuleRun()
215 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun()
317 assertEquals(1, result.countResults(TestStatus.PASS)); in testSingleModuleRun_incomplete()
318 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun_incomplete()
347 assertEquals(2, result.countResults(TestStatus.PASS)); in testSingleModuleRun_completeAfterInternalRetry()
348 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun_completeAfterInternalRetry()
386 assertEquals(1, result.countResults(TestStatus.PASS)); in testSingleModuleRun_incomplete_rerun_incomplete()
387 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun_incomplete_rerun_incomplete()
416 assertEquals(1, result.countResults(TestStatus.PASS)); in testSingleModuleRun_incomplete_rerun_incomplete()
[all …]
/test/suite_harness/common/host-side/util/tests/src/com/android/compatibility/common/util/
DModuleResultTest.java74 assertEquals("Expected two failures", 2, mResult.countResults(TestStatus.FAIL)); in testCountResults()
75 assertEquals("Expected one pass", 1, mResult.countResults(TestStatus.PASS)); in testCountResults()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationChecksumHelper.java19 import com.android.ddmlib.testrunner.TestResult.TestStatus;
200 .append(module.getNumTestsInState(TestStatus.FAILURE)); in generateModuleResultSignature()
209 .append(module.getNumTestsInState(TestStatus.FAILURE)); in generateModuleSummarySignature()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DApkInstrumentationPreparer.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
139 if (TestStatus.FAILURE.equals(results.getValue().getStatus())) { in instrument()