/tools/tradefederation/core/tests/res/testtype/ |
D | rust_list1.txt | 1 interfaces::service_manager::test_add_service: test 2 interfaces::service_manager::test_check_service: test 3 interfaces::service_manager::test_get_service: test 4 interfaces::service_manager::test_is_declared: test 5 parcel::blob::test_write_blob: test 6 parcel::parcelable::test_custom_parcelable: test 7 parcel::parcelable::test_slice_parcelables: test 8 parcel::test_file_descriptors: test 9 parcel::test_read_data: test 10 parcel::test_utf8_utf16_conversions: test [all …]
|
D | rust_output2.txt | 2 test default_tokenstream_is_empty ... ok 3 test fail ... ok 4 test ident_empty ... ok 5 test ident_invalid ... ok 6 test ident_number ... ok 7 test idents ... FAILED 8 test lifetime_empty ... ok 9 test lifetime_invalid ... ok 10 test lifetime_number ... ok 11 test literal_character ... ok [all …]
|
/tools/tradefederation/core/atest/ |
D | result_reporter.py | 88 def update_perf_info(self, test): argument 94 all_additional_keys = set(test.additional_info.keys()) 99 benchmark_info['test_name'] = test.test_name 100 for key, data in test.additional_info.items(): 274 def process_test_result(self, test): argument 280 if test.runner_name not in self.runners: 281 self.runners[test.runner_name] = OrderedDict() 282 assert self.runners[test.runner_name] != FAILURE_FLAG 283 self.all_test_results.append(test) 284 if test.group_name not in self.runners[test.runner_name]: [all …]
|
/tools/asuite/atest/ |
D | result_reporter.py | 92 def update_perf_info(self, test): argument 98 all_additional_keys = set(test.additional_info.keys()) 103 benchmark_info['test_name'] = test.test_name 104 for key, data in test.additional_info.items(): 278 def process_test_result(self, test): argument 284 if test.runner_name not in self.runners: 285 self.runners[test.runner_name] = OrderedDict() 286 assert self.runners[test.runner_name] != FAILURE_FLAG 287 self.all_test_results.append(test) 288 if test.group_name not in self.runners[test.runner_name]: [all …]
|
/tools/tradefederation/core/python-lib/tradefed_py/ |
D | tf_runner.py | 38 def _getClassName(self, test): argument 39 return strclass(test.__class__) 41 def _getMethodName(self, test): argument 42 return test._testMethodName 54 def startTest(self, test): argument 60 …AG: time.time(), _CLASSNAME_TAG: self._getClassName(test), _METHOD_NAME_TAG: self._getMethodName(t… 62 super(TextTestResult, self).startTest(test) 64 def addSuccess(self, test): argument 70 …AG: time.time(), _CLASSNAME_TAG: self._getClassName(test), _METHOD_NAME_TAG: self._getMethodName(t… 72 super(TextTestResult, self).addSuccess(test) [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/ |
D | TestsPoolPoller.java | 122 ITokenRequest test = itr.next(); in poll() local 126 mRejectedToken.remove(test); in poll() 127 mTokenPool.remove(test); in poll() 128 return test; in poll() 130 if (mRejectedToken.contains(test)) { in poll() 134 Set<TokenProperty> tokens = test.getRequiredTokens(); in poll() 137 mTokenPool.remove(test); in poll() 138 mRejectedToken.remove(test); in poll() 139 return test; in poll() 143 mRejectedToken.add(test); in poll() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | FilteredResultForwarder.java | 39 public void testStarted(TestDescription test) { in testStarted() argument 40 if (!mAllowedTests.contains(test)) { in testStarted() 43 super.testStarted(test); in testStarted() 47 public void testStarted(TestDescription test, long startTime) { in testStarted() argument 48 if (!mAllowedTests.contains(test)) { in testStarted() 51 super.testStarted(test, startTime); in testStarted() 55 public void testEnded(TestDescription test, HashMap<String, Metric> testMetrics) { in testEnded() argument 56 if (!mAllowedTests.contains(test)) { in testEnded() 59 super.testEnded(test, testMetrics); in testEnded() 63 public void testEnded(TestDescription test, long endTime, HashMap<String, Metric> testMetrics) { in testEnded() argument [all …]
|
D | TestResultListener.java | 38 public abstract void testResult(TestDescription test, TestResult result); in testResult() argument 41 public final void testStarted(TestDescription test, long startTime) { in testStarted() argument 46 mCurrentTest = test; in testStarted() 52 public final void testStarted(TestDescription test) { in testStarted() argument 53 testStarted(test, System.currentTimeMillis()); in testStarted() 57 public final void testFailed(TestDescription test, String trace) { in testFailed() argument 63 public final void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument 69 public final void testIgnored(TestDescription test) { in testIgnored() argument 74 public final void testEnded(TestDescription test, Map<String, String> testMetrics) { in testEnded() argument 76 reportTestFinish(test); in testEnded() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | LogcatCrashResultForwarderTest.java | 50 TestDescription test = new TestDescription("com.class", "test"); in testCaptureTestCrash_noCrashInLogcat() local 52 mMockListener.testStarted(test, 0L); in testCaptureTestCrash_noCrashInLogcat() 55 mMockListener.testFailed(test, "instrumentation failed. reason: 'Process crashed.'"); in testCaptureTestCrash_noCrashInLogcat() 56 mMockListener.testEnded(test, 5L, new HashMap<String, Metric>()); in testCaptureTestCrash_noCrashInLogcat() 59 mReporter.testStarted(test, 0L); in testCaptureTestCrash_noCrashInLogcat() 60 mReporter.testFailed(test, "instrumentation failed. reason: 'Process crashed.'"); in testCaptureTestCrash_noCrashInLogcat() 61 mReporter.testEnded(test, 5L, new HashMap<String, Metric>()); in testCaptureTestCrash_noCrashInLogcat() 73 TestDescription test = new TestDescription("com.class", "test"); in testCaptureTestCrash_oneCrashingLogcat() local 75 mMockListener.testStarted(test, 0L); in testCaptureTestCrash_oneCrashingLogcat() 93 EasyMock.eq(test), in testCaptureTestCrash_oneCrashingLogcat() [all …]
|
/tools/tradefederation/core/atest/docs/ |
D | atest_structure.md | 10 3. [Test Finders](#test-finders) 11 4. [Test Runners](#test-runners) 16 Atest is primarily composed of 2 components: [test finders](#test-finders) and 17 [test runners](#test-runners). At a high level, atest does the following: 19 2. Find test(s) based on user input 20 3. Build test dependencies 21 4. Run test(s) 31 compatibility_suite, auto_gen_config, etc) that is used during the test finding 32 process. We create the results dir for our test runners to dump results in and 37 required and optional bits used to run the test as how the user intended. [all …]
|
D | develop_test_runners.md | 3 Learn about test runners and how to create a new test runner class. 6 1. [Test Runner Details](#test-runner-details) 7 2. [Creating a Test Runner](#creating-a-test-runner) 9 ## <a name="test-runner-details">Test Runner Details</a> 11 The test runner class is responsible for test execution. Its primary logic 14 top-level args consumed by atest passed onto the test runner. It is up to the 15 test runner to translate those args into the specific args the test runner 16 accepts. In this way, you can think of the test runner as a translator between 17 the atest CLI and your test runner's CLI. The reason for this is so that atest 19 the differing CLIs of various test runners. The test runner should also [all …]
|
D | develop_test_finders.md | 3 Learn about test finders and how to create a new test finder class. 6 1. [Test Finder Details](#test-finder-details) 7 2. [Creating a Test Finder](#creating-a-test-finder) 9 ## <a name="test-finder-details">Test Finder Details</a> 11 A test finder class holds find methods. A find method is given a string (the 13 A ```TestInfo``` object holds the test name, test dependencies, test runner, and 14 a data field to hold misc bits like filters and extra args for the test. The 15 test finder class can hold multiple find methods. The find methods are grouped 16 together in a class so they can share metadata for optimal test finding. 18 the test configs for the ```TFIntegrationFinder```. [all …]
|
/tools/asuite/atest/docs/ |
D | atest_structure.md | 10 3. [Test Finders](#test-finders) 11 4. [Test Runners](#test-runners) 16 Atest is primarily composed of 2 components: [test finders](#test-finders) and 17 [test runners](#test-runners). At a high level, atest does the following: 19 2. Find test(s) based on user input 20 3. Build test dependencies 21 4. Run test(s) 31 compatibility_suite, auto_gen_config, etc) that is used during the test finding 32 process. We create the results dir for our test runners to dump results in and 37 required and optional bits used to run the test as how the user intended. [all …]
|
D | develop_test_runners.md | 3 Learn about test runners and how to create a new test runner class. 6 1. [Test Runner Details](#test-runner-details) 7 2. [Creating a Test Runner](#creating-a-test-runner) 9 ## <a name="test-runner-details">Test Runner Details</a> 11 The test runner class is responsible for test execution. Its primary logic 14 top-level args consumed by atest passed onto the test runner. It is up to the 15 test runner to translate those args into the specific args the test runner 16 accepts. In this way, you can think of the test runner as a translator between 17 the atest CLI and your test runner's CLI. The reason for this is so that atest 19 the differing CLIs of various test runners. The test runner should also [all …]
|
D | develop_test_finders.md | 3 Learn about test finders and how to create a new test finder class. 6 1. [Test Finder Details](#test-finder-details) 7 2. [Creating a Test Finder](#creating-a-test-finder) 9 ## <a name="test-finder-details">Test Finder Details</a> 11 A test finder class holds find methods. A find method is given a string (the 13 A ```TestInfo``` object holds the test name, test dependencies, test runner, and 14 a data field to hold misc bits like filters and extra args for the test. The 15 test finder class can hold multiple find methods. The find methods are grouped 16 together in a class so they can share metadata for optimal test finding. 18 the test configs for the ```TFIntegrationFinder```. [all …]
|
/tools/tradefederation/core/tests/res/config/suite/ |
D | suite.md | 4 individual test from a suite can be as simple as a test config file change. One 6 presubmit check. If a test becomes unstable, we can make a single test config 9 A test can also be easily added to multiple suites by specifying the suite name 10 in the test config file. So one doesn't need to maintain a collection of test in 11 complicated GCL files, for a test to run in multiple suites. 17 Suite configuration file is similar to a TradeFed test configuration file. It 19 "run-suite-tag", which defines the name of the suite. Any test configuration 20 file has option "test-suite-tag" set to that value will be included in that 27 <configuration description="Android framework-base-presubmit test suite config."> 28 <test class="com.android.tradefed.testtype.suite.TfSuiteRunner"> [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ModuleSplitterTest.java | 62 StubTest test = new StubTest(); in testSplitModule_configNotShardable() local 63 OptionSetter setterTest = new OptionSetter(test); in testSplitModule_configNotShardable() 66 config.setTest(test); in testSplitModule_configNotShardable() 80 assertSame(test, res.get(0).getTests().get(0)); in testSplitModule_configNotShardable() 98 StubTest test = new StubTest(); in testSplitModule_configNotStrictShardable_dynamic() local 99 OptionSetter setterTest = new OptionSetter(test); in testSplitModule_configNotStrictShardable_dynamic() 102 config.setTest(test); in testSplitModule_configNotStrictShardable_dynamic() 116 assertNotSame(test, res.get(0).getTests().get(0)); in testSplitModule_configNotStrictShardable_dynamic() 133 StubTest test = new StubTest(); in testSplitModule_configNotStrictShardable_notDynamic() local 134 OptionSetter setterTest = new OptionSetter(test); in testSplitModule_configNotStrictShardable_notDynamic() [all …]
|
D | GranularRetriableTestWrapperTest.java | 265 IRemoteTest test, int maxRunCount) throws Exception { in createGranularTestWrapper() argument 266 return createGranularTestWrapper(test, maxRunCount, new ArrayList<>()); in createGranularTestWrapper() 270 IRemoteTest test, int maxRunCount, List<IMetricCollector> collectors) throws Exception { in createGranularTestWrapper() argument 272 new GranularRetriableTestWrapper(test, null, null, null, maxRunCount); in createGranularTestWrapper() 325 FakeTest test = in testIntraModuleRun_catchDeviceUnresponsiveException() local 334 GranularRetriableTestWrapper granularTestWrapper = createGranularTestWrapper(test, 1); in testIntraModuleRun_catchDeviceUnresponsiveException() 354 FakeTest test = new FakeTest(testCases); in testRun_withMultipleRun() local 355 test.addFailedTestCase(fakeTestCase); in testRun_withMultipleRun() 356 test.addFailedTestCase(fakeTestCase2); in testRun_withMultipleRun() 360 createGranularTestWrapper(test, maxRunCount); in testRun_withMultipleRun() [all …]
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/ |
D | ITestLifeCycleReceiver.java | 133 public default void testStarted(TestDescription test) {} in testStarted() argument 142 default void testStarted(TestDescription test, long startTime) { in testStarted() argument 143 testStarted(test); in testStarted() 154 public default void testFailed(TestDescription test, String trace) {} in testFailed() argument 164 public default void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument 165 testFailed(test, failure.toString()); in testFailed() 174 public default void testAssumptionFailure(TestDescription test, String trace) {} in testAssumptionFailure() argument 182 public default void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument 183 testAssumptionFailure(test, failure.toString()); in testAssumptionFailure() 192 public default void testIgnored(TestDescription test) {} in testIgnored() argument [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/ |
D | BasePostProcessor.java | 192 public final void testStarted(TestDescription test) { in testStarted() argument 193 testStarted(test, System.currentTimeMillis()); in testStarted() 197 public final void testStarted(TestDescription test, long startTime) { in testStarted() argument 198 mCurrentTest = test; in testStarted() 199 if (mTestLogs.containsKey(test)) { in testStarted() 200 mTestLogs.get(test).clear(); in testStarted() 202 mTestLogs.put(test, new HashMap<String, LogFile>()); in testStarted() 205 mForwarder.testStarted(test, startTime); in testStarted() 209 public final void testFailed(TestDescription test, String trace) { in testFailed() argument 210 mForwarder.testFailed(test, trace); in testFailed() [all …]
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraTestMetricsCollectionListener.java | 59 TestDescription test, in testEnded() argument 62 super.testEnded(test, endTime, testMetrics); in testEnded() 63 handleMetricsOnTestEnded(test, TfMetricProtoUtil.compatibleConvert(testMetrics)); in testEnded() 64 stopDumping(test); in testEnded() 65 mListener.testEnded(test, endTime, testMetrics); in testEnded() 69 public void testStarted(TestDescription test, long startTime) { in testStarted() argument 70 super.testStarted(test, startTime); in testStarted() 71 startDumping(test); in testStarted() 72 mListener.testStarted(test, startTime); in testStarted() 76 public void testFailed(TestDescription test, String trace) { in testFailed() argument [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | DeviceTestCaseTest.java | 113 MockTest test = new MockTest(); in testRun_suite() local 128 test.run(mTestInfo, listener); in testRun_suite() 138 MockTest test = new MockTest(); in testRun_includeFilter() local 139 test.addIncludeFilter("com.android.tradefed.testtype.DeviceTestCaseTest$MockTest#test1"); in testRun_includeFilter() 150 test.run(mTestInfo, listener); in testRun_includeFilter() 160 MockTest test = new MockTest(); in testRun_excludeFilter() local 161 test.addExcludeFilter("com.android.tradefed.testtype.DeviceTestCaseTest$MockTest#test1"); in testRun_excludeFilter() 170 test.run(mTestInfo, listener); in testRun_excludeFilter() 180 MockAnnotatedTest test = new MockAnnotatedTest(); in testRun_includeAnnotationFiltering() local 181 test.addIncludeAnnotation( in testRun_includeAnnotationFiltering() [all …]
|
D | InstrumentationSerialTestTest.java | 70 final TestDescription test = new TestDescription("FooTest", "testFoo[param]"); in testRun() local 72 testList.add(test); in testRun() 78 listener.testStarted(test); in testRun() 79 listener.testEnded(test, 10l, new HashMap<String, Metric>()); in testRun() 98 mMockListener.testStarted(EasyMock.eq(test), EasyMock.anyLong()); in testRun() 100 EasyMock.eq(test), EasyMock.eq(10l), EasyMock.eq(new HashMap<String, Metric>())); in testRun() 106 assertEquals(test.getClassName(), mockITest.getClassName()); in testRun() 107 assertEquals(test.getTestNameWithoutParams(), mockITest.getMethodName()); in testRun() 118 final TestDescription test = new TestDescription("FooTest", "testFoo"); in testRun_runFailure() local 121 testList.add(test); in testRun_runFailure() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/ |
D | ResultsPlayerTest.java | 87 TestDescription test = new TestDescription("test.class", "method0"); in testReplay() local 88 mMockListener.testStarted(EasyMock.eq(test), EasyMock.anyLong()); in testReplay() 90 EasyMock.eq(test), EasyMock.anyLong(), EasyMock.eq(new HashMap<String, Metric>())); in testReplay() 116 TestDescription test = new TestDescription("test.class", "method0"); in testReplayModules() local 117 mMockListener.testStarted(EasyMock.eq(test), EasyMock.anyLong()); in testReplayModules() 119 EasyMock.eq(test), EasyMock.anyLong(), EasyMock.eq(new HashMap<String, Metric>())); in testReplayModules() 132 test = new TestDescription("test.class", "method0"); in testReplayModules() 133 mMockListener.testStarted(EasyMock.eq(test), EasyMock.anyLong()); in testReplayModules() 135 EasyMock.eq(test), EasyMock.anyLong(), EasyMock.eq(new HashMap<String, Metric>())); in testReplayModules() 154 TestDescription test = new TestDescription("test.class", "method0"); in testReplay_oneTest() local [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollector.java | 171 public void onTestFail(DeviceMetricData testData, TestDescription test) { in onTestFail() argument 176 public void onTestAssumptionFailure(DeviceMetricData testData, TestDescription test) { in onTestAssumptionFailure() argument 190 TestDescription test) { in onTestEnd() argument 286 public final void testStarted(TestDescription test) { in testStarted() argument 287 testStarted(test, System.currentTimeMillis()); in testStarted() 291 public final void testStarted(TestDescription test, long startTime) { in testStarted() argument 293 mSkipTestCase = shouldSkip(test); in testStarted() 302 mForwarder.testStarted(test, startTime); in testStarted() 306 public final void testFailed(TestDescription test, String trace) { in testFailed() argument 309 onTestFail(mTestData, test); in testFailed() [all …]
|