Home
last modified time | relevance | path

Searched refs:TestResult (Results 1 – 25 of 64) sorted by relevance

123

/tools/tradefederation/core/javatests/com/android/tradefed/result/
DTestResultTest.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
36 List<TestResult> testResults = new ArrayList<>(); in testMerge_singleRes()
38 TestResult finalRes = in testMerge_singleRes()
39 TestResult.merge(testResults, MergeStrategy.ONE_TESTCASE_PASS_IS_PASS); in testMerge_singleRes()
48 List<TestResult> testResults = new ArrayList<>(); in testMerge_multiRes_aggPass()
51 TestResult finalRes = in testMerge_multiRes_aggPass()
52 TestResult.merge(testResults, MergeStrategy.ONE_TESTCASE_PASS_IS_PASS); in testMerge_multiRes_aggPass()
55 assertTrue(finalRes.getProtoMetrics().containsKey(TestResult.IS_FLAKY)); in testMerge_multiRes_aggPass()
63 List<TestResult> testResults = new ArrayList<>(); in testMerge_allFailed_aggPass()
66 TestResult finalRes = in testMerge_allFailed_aggPass()
[all …]
DTestResultListenerTest.java18 import com.android.ddmlib.testrunner.TestResult.TestStatus;
35 private LinkedHashMap<TestDescription, TestResult> mResults;
41 mResults = new LinkedHashMap<TestDescription, TestResult>(); in setUp()
45 public void testResult(TestDescription test, TestResult result) { in setUp()
66 TestResult result = createTestResult(TestStatus.FAILURE); in testFailed()
94 private TestResult createTestResult(TestStatus status) { in createTestResult()
95 TestResult result = new TestResult(); in createTestResult()
DPassingTestFileReporterTest.java20 import com.android.ddmlib.testrunner.TestResult;
60 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.PASSED)); in testPassed()
69 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.FAILURE)); in testFailed()
76 private com.android.tradefed.result.TestResult createTestResult(TestResult.TestStatus status) { in createTestResult()
77 com.android.tradefed.result.TestResult result = in createTestResult()
78 new com.android.tradefed.result.TestResult(); in createTestResult()
DConsoleResultReporterTest.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
68 TestResult result = createTestResult(TestStatus.FAILURE); in testFailed()
79 TestResult result = createTestResult(TestStatus.FAILURE); in testFailed_suppressPassed()
110 private TestResult createTestResult(TestStatus status) { in createTestResult()
111 TestResult result = new TestResult(); in createTestResult()
DCountingTestResultListenerTest.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
79 private TestResult createTestResult(TestStatus status) { in createTestResult()
80 TestResult result = new TestResult(); in createTestResult()
DTestRunResultTest.java168 TestResult testRes = result.getTestResults().get(test); in testLogSavedFile_testCases()
193 TestResult testRes = result.getTestResults().get(test); in testLogSavedFile_runLogs()
280 Map<TestDescription, TestResult> testResult = result.getTestResults(); in testMergeRetriedRunResults_fullMergeLogicCheck()
285 TestResult test1Result = testResult.get(testcase1); in testMergeRetriedRunResults_fullMergeLogicCheck()
286 TestResult test2Result = testResult.get(testcase2); in testMergeRetriedRunResults_fullMergeLogicCheck()
287 TestResult test3Result = testResult.get(testcase3); in testMergeRetriedRunResults_fullMergeLogicCheck()
342 Map<TestDescription, TestResult> testRunResult = result.getTestResults(); in testMergeRetriedRunResults_checkMergingStackTraces()
344 TestResult testResult = testRunResult.get(testcase); in testMergeRetriedRunResults_checkMergingStackTraces()
608 Map<TestDescription, TestResult> testRunResult = result.getTestResults(); in testMergeRetriedRunResults_testCaseStatus()
610 TestResult testResult = testRunResult.get(testcase); in testMergeRetriedRunResults_testCaseStatus()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/
DKTapResultParser.java72 static class TestResult { class in KTapResultParser
76 public List<TestResult> subtests;
85 public TestResult() { in TestResult() method in KTapResultParser.TestResult
87 subtests = new ArrayList<TestResult>(); in TestResult()
99 for (TestResult tr : subtests) { in toStringWithSubtests()
153 TestResult root = parser.processResultsFileContent(ktapFileContent); in applyKTapResultToListener()
158 TestResult processResultsFileContent(String fileContent) { in processResultsFileContent()
159 TestResult root = new TestResult(); in processResultsFileContent()
167 private void processLines(TestResult currentTest, Iterator<String> lineIterator) { in processLines()
183 TestResult subtest = new TestResult(); in processLines()
[all …]
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DTestRunResult.java46 private Map<TestDescription, TestResult> mTestResults =
47 new LinkedHashMap<TestDescription, TestResult>();
57 private TestResult mCurrentTestResult;
86 public Map<TestDescription, TestResult> getTestResults() { in getTestResults()
124 for (Map.Entry<TestDescription, TestResult> testEntry : getTestResults().entrySet()) { in getTestsInState()
172 com.android.ddmlib.testrunner.TestResult.TestStatus ddmlibStatus) { in getNumTestsInState()
184 for (TestResult r : mTestResults.values()) { in getNumTestsInState()
193 public List<TestResult> getTestsResultsInState(TestStatus status) { in getTestsResultsInState()
194 List<TestResult> results = new ArrayList<>(); in getTestsResultsInState()
195 for (TestResult r : mTestResults.values()) { in getTestsResultsInState()
[all …]
DTestResult.java32 public class TestResult { class
46 public TestResult() { in TestResult() method in TestResult
55 public com.android.ddmlib.testrunner.TestResult.TestStatus getStatus() { in getStatus()
141 public TestResult setStatus(com.android.ddmlib.testrunner.TestResult.TestStatus ddmlibStatus) { in setStatus()
147 public TestResult setStatus(TestStatus status) { in setStatus()
187 TestResult other = (TestResult) obj; in equals()
210 public static TestResult merge(List<TestResult> results, MergeStrategy strategy) { in merge()
218 TestResult mergedResult = new TestResult(); in merge()
232 for (TestResult attempt : results) { in merge()
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
DTestStatus.java36 public static com.android.ddmlib.testrunner.TestResult.TestStatus convertToDdmlibType( in convertToDdmlibType()
40 return com.android.ddmlib.testrunner.TestResult.TestStatus.FAILURE; in convertToDdmlibType()
42 return com.android.ddmlib.testrunner.TestResult.TestStatus.PASSED; in convertToDdmlibType()
44 return com.android.ddmlib.testrunner.TestResult.TestStatus.INCOMPLETE; in convertToDdmlibType()
46 return com.android.ddmlib.testrunner.TestResult.TestStatus.ASSUMPTION_FAILURE; in convertToDdmlibType()
48 return com.android.ddmlib.testrunner.TestResult.TestStatus.IGNORED; in convertToDdmlibType()
51 return com.android.ddmlib.testrunner.TestResult.TestStatus.PASSED; in convertToDdmlibType()
53 return com.android.ddmlib.testrunner.TestResult.TestStatus.PASSED; in convertToDdmlibType()
58 com.android.ddmlib.testrunner.TestResult.TestStatus ddmlibStatus) { in convertFromDdmlibType()
/tools/metalava/metalava-model-testsuite-cli/src/main/java/com/android/tools/metalava/model/testsuite/cli/
DUpdateBaselineCommand.kt103 private var testResult: TestResult = TestResult.PASSED
131 testResult = TestResult.PASSED in Attributes()
134 testResult = TestResult.FAILED in Attributes()
137 testResult = TestResult.SKIPPED in Attributes()
147 TestResult.FAILED -> in endElement()
151 TestResult.SKIPPED -> Unit in endElement()
152 TestResult.PASSED -> in endElement()
166 enum class TestResult { class in com.android.tools.metalava.model.testsuite.cli.UpdateBaselineCommand
/tools/asuite/atest/test_runners/
Devent_handler_unittest.py320 test_runner_base.TestResult(
335 test_runner_base.TestResult(
356 test_runner_base.TestResult(
377 test_runner_base.TestResult(
398 test_runner_base.TestResult(
420 test_runner_base.TestResult(
461 test_runner_base.TestResult(
476 test_runner_base.TestResult(
497 test_runner_base.TestResult(
518 test_runner_base.TestResult(
[all …]
Devent_handler.py144 test_runner_base.TestResult(
162 test_runner_base.TestResult(
226 test_runner_base.TestResult(
301 test_runner_base.TestResult(
/tools/ndkports/buildSrc/src/main/kotlin/com/android/ndkports/
DTesting.kt18 sealed class TestResult(val name: String, val abi: Abi) { class
19 class Success(name: String, abi: Abi) : TestResult(name, abi) {
24 TestResult(name, abi) { in toString()
72 device: Device, abi: Abi, resultChannel: SendChannel<TestResult> in push()
98 TestResult.Success(it.name, abi) in push()
100 TestResult.Failure(it.name, abi, "${ex.cmd}\n${ex.output}") in push()
113 val resultChannel = Channel<TestResult>(Channel.UNLIMITED) in <lambda>()
144 resultChannel.toList().filterIsInstance<TestResult.Failure>() in <lambda>()
/tools/asuite/atest/
Dresult_reporter_unittest.py30 RESULT_PASSED_TEST = test_runner_base.TestResult(
44 RESULT_PASSED_TEST_MODULE_2 = test_runner_base.TestResult(
58 RESULT_PASSED_TEST_RUNNER_2_NO_MODULE = test_runner_base.TestResult(
72 RESULT_FAILED_TEST = test_runner_base.TestResult(
86 RESULT_RUN_FAILURE = test_runner_base.TestResult(
100 RESULT_INVOCATION_FAILURE = test_runner_base.TestResult(
114 RESULT_IGNORED_TEST = test_runner_base.TestResult(
128 RESULT_ASSUMPTION_FAILED_TEST = test_runner_base.TestResult(
156 RESULT_PERF01_TEST01 = test_runner_base.TestResult(
170 RESULT_PERF01_TEST02 = test_runner_base.TestResult(
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/retry/
DResultsPlayerTest.java24 import com.android.ddmlib.testrunner.TestResult.TestStatus;
37 import com.android.tradefed.result.TestResult;
182 TestResult result = new TestResult(); in testReplay_oneTest()
188 Entry<TestDescription, TestResult> entry = new SimpleEntry<>(test, result); in testReplay_oneTest()
212 TestResult result = new TestResult(); in testReplay_MultiTest()
217 Entry<TestDescription, TestResult> entry = new SimpleEntry<>(test, result); in testReplay_MultiTest()
221 TestResult result2 = new TestResult(); in testReplay_MultiTest()
226 Entry<TestDescription, TestResult> entry2 = new SimpleEntry<>(test2, result2); in testReplay_MultiTest()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DRetryRescheduler.java36 import com.android.tradefed.result.TestResult;
270 Map<TestDescription, TestResult> parameterizedMethods = new LinkedHashMap<>(); in updateRunner()
272 for (Entry<TestDescription, TestResult> result : in updateRunner()
292 for (Entry<String, Map<TestDescription, TestResult>> subMap : in updateRunner()
306 for (Entry<TestDescription, TestResult> result : in updateRunner()
361 private Map<String, Map<TestDescription, TestResult>> sortMethodToClass( in sortMethodToClass()
362 Map<TestDescription, TestResult> paramMethods) { in sortMethodToClass()
363 Map<String, Map<TestDescription, TestResult>> returnMap = new LinkedHashMap<>(); in sortMethodToClass()
364 for (Entry<TestDescription, TestResult> entry : paramMethods.entrySet()) { in sortMethodToClass()
370 Map<TestDescription, TestResult> forClass = returnMap.get(noParamName); in sortMethodToClass()
DResultsPlayer.java34 import com.android.tradefed.result.TestResult;
56 public List<Entry<TestDescription, TestResult>> mResults = new ArrayList<>();
114 Collection<Entry<TestDescription, TestResult>> testSet = holder.mResults; in run()
155 Entry<TestDescription, TestResult> testResult) { in addToReplay()
180 Collection<Entry<TestDescription, TestResult>> testSet, in forwardTestResults()
183 for (Map.Entry<TestDescription, TestResult> testEntry : testSet) { in forwardTestResults()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/
DGameQualificationResultReporter.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
34 import com.android.tradefed.result.TestResult;
179 for (Map.Entry<TestDescription, TestResult> entry in getInvocationSummary()
202 TestResult result = testRunResult.getTestResults().get(test); in getInvocationSummary()
247 TestResult result = testRunResult.getTestResults().get(test); in createFunctionalTestFailureReport()
275 Map<TestDescription, TestResult> testResults = testRunResult.getTestResults(); in getTestRunSummary()
276 for (Map.Entry<TestDescription, TestResult> entry : testResults.entrySet()) { in getTestRunSummary()
368 private String getTestSummary(TestDescription testId, TestResult testResult) { in getTestSummary()
/tools/tradefederation/core/src/com/android/tradefed/retry/
DBaseRetryDecision.java37 import com.android.tradefed.result.TestResult;
373 public static Map<TestDescription, TestResult> getFailedTestCases( in getFailedTestCases()
375 Map<TestDescription, TestResult> failedTestCases = new LinkedHashMap<>(); in getFailedTestCases()
378 for (Entry<TestDescription, TestResult> entry : run.getTestResults().entrySet()) { in getFailedTestCases()
410 for (Entry<TestDescription, TestResult> entry : run.getTestResults().entrySet()) { in getPassedTestCases()
495 Map<TestDescription, TestResult> previousFailedTests = in handleRetryFailures()
526 Map<TestDescription, TestResult> previousFailedTests = getFailedTestCases(previousResults); in handleRetryFailures()
571 ITestFilterReceiver test, Map<TestDescription, TestResult> tests) { in addRetriedTestsToFilters()
574 for (Entry<TestDescription, TestResult> testCaseEntry : tests.entrySet()) { in addRetriedTestsToFilters()
624 Map<TestDescription, TestResult> previousFailedTests, in excludeNonRetriableFailure()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestResultParser.java101 private TestResult mCurrentTestResult = null;
156 private static class TestResult { class in GTestResultParser
271 private TestResult getCurrentTestResult() { in getCurrentTestResult()
273 mCurrentTestResult = new TestResult(); in getCurrentTestResult()
586 private String getTestClass(TestResult testResult) { in getTestClass()
605 TestResult testResult = getCurrentTestResult(); in processTestStartedTag()
633 TestResult testResult = getCurrentTestResult(); in doTestEnded()
749 TestResult testResult = getCurrentTestResult(); in appendTestOutputLine()
/tools/test/connectivity/acts/framework/tests/
Dacts_records_test.py172 tr1 = records.TestResult()
180 tr2 = records.TestResult()
193 tr1 = records.TestResult()
208 tr = records.TestResult()
223 tr = records.TestResult()
/tools/tradefederation/core/src/com/android/tradefed/result/
DXmlResultReporter.java161 Map<TestDescription, TestResult> testResults = runResult.getTestResults(); in printTestResults()
162 for (Map.Entry<TestDescription, TestResult> testEntry : testResults.entrySet()) { in printTestResults()
170 void print(KXmlSerializer serializer, TestDescription testId, TestResult testResult) in print()
179 com.android.ddmlib.testrunner.TestResult.TestStatus ddmlibStatus = testResult.getStatus(); in print()
DTestResultListener.java36 private TestResult mCurrentResult;
38 public abstract void testResult(TestDescription test, TestResult result); in testResult()
47 mCurrentResult = new TestResult(); in testStarted()
/tools/asuite/atest/bazel/reporter/src/com/android/tradefed/result/
DBazelXmlResultReporter.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
214 Map<TestDescription, TestResult> testResults = in writeTestResult()
215 new TreeMap<TestDescription, TestResult>(testRunResult.getTestResults()); in writeTestResult()
217 for (Map.Entry<TestDescription, TestResult> testEntry : testResults.entrySet()) { in writeTestResult()
259 private Element writeTestCase(Document doc, TestDescription description, TestResult result) { in writeTestCase()

123