/tools/test/connectivity/acts/framework/tests/libs/ota/ota_runners/ |
D | ota_runner_test.py | 74 runner = OtaRunnerImpl(tool, device) 75 runner.android_device.adb.getprop = mock.Mock(side_effect=['a', 'b']) 76 runner.get_post_build_id = lambda: 'abc' 78 runner._update() 89 runner = OtaRunnerImpl(tool, device) 90 runner.android_device.adb.getprop = mock.Mock(side_effect=['a', 'a']) 91 runner.get_post_build_id = lambda: 'abc' 93 runner._update() 101 runner = ota_runner.OtaRunner(tool, device) 103 self.assertEqual(runner.ota_tool, tool) [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/rust/ |
D | RustTestBaseTest.java | 23 import org.junit.runner.RunWith; 40 ITestFilterReceiver runner = new RustTestBaseImpl(); in testIncludeFilters() local 45 assertEquals(set0, runner.getIncludeFilters()); in testIncludeFilters() 46 runner.addIncludeFilter(s[0]); in testIncludeFilters() 47 assertEquals(set1, runner.getIncludeFilters()); in testIncludeFilters() 48 runner.clearIncludeFilters(); in testIncludeFilters() 49 assertEquals(set0, runner.getIncludeFilters()); in testIncludeFilters() 50 runner.addIncludeFilter(s[2]); in testIncludeFilters() 51 runner.addAllIncludeFilters(set2); in testIncludeFilters() 52 assertEquals(set2, runner.getIncludeFilters()); in testIncludeFilters() [all …]
|
/tools/asuite/atest/docs/ |
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 …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | InstrumentationTestTest.java | 75 import org.junit.runner.RunWith; 140 Boolean answer(IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver listener) in answer() argument 181 (runner, listener) -> { in testRun() 199 ArgumentCaptor<IRemoteAndroidTestRunner> runner = in testRun() local 201 inOrder.verify(mInstrumentationTest).setRunnerArgs(runner.capture()); in testRun() 203 .runInstrumentationTests(eq(runner.getValue()), any(ITestLifeCycleReceiver.class)); in testRun() 253 RemoteAndroidTestRunner runner = in testRun_hiddenApiCheck() local 257 assertThat(runner.getRunOptions()).contains("--no-hidden-api-checks"); in testRun_hiddenApiCheck() 267 RemoteAndroidTestRunner runner = in testRun_testApiCheck() local 271 assertThat(runner.getRunOptions()).contains("--no-test-api-access"); in testRun_testApiCheck() [all …]
|
D | InstrumentationFileTestTest.java | 42 import org.junit.runner.RunWith; 117 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_singleSuccessfulTest() 184 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_reRunOneFailedToCompleteTest() 202 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_reRunOneFailedToCompleteTest() 266 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_noSerialReRun() 334 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_exceedMaxAttempts() 354 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_exceedMaxAttempts() 374 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_exceedMaxAttempts() 438 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_parameterized() 453 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_parameterized() [all …]
|
/tools/asuite/atest/test_runners/ |
D | mobly_test_runner_unittest.py | 149 self.runner = mobly_test_runner.MoblyTestRunner(RESULTS_DIR) 166 test_files = self.runner._get_test_files(self.tinfo) 186 self.runner._get_test_files(self.tinfo) 200 self.runner._get_test_files(self.tinfo) 207 self.runner._generate_mobly_config(self.mobly_args, None, MOCK_TEST_FILES) 228 self.runner._generate_mobly_config( 252 self.runner._generate_mobly_config(self.mobly_args, None, MOCK_TEST_FILES) 276 self.runner._generate_mobly_config(self.mobly_args, None, []) 286 self.runner._generate_mobly_config(self.mobly_args, None, test_files) 315 self.assertEqual(self.runner._get_cvd_serials(), devices[:2]) [all …]
|
D | atest_tf_test_runner_unittest.py | 1522 runner = atf_tr.AtestTradefedTestRunner( 1537 deps = runner.get_test_runner_build_reqs(test_infos) 1563 runner = atf_tr.AtestTradefedTestRunner( 1572 runner.get_test_runner_build_reqs(test_infos) 1573 env = runner.generate_env_vars(dict()) 1591 runner = atf_tr.AtestTradefedTestRunner( 1595 deps = runner.get_test_runner_build_reqs(test_infos) 1610 runner = atf_tr.AtestTradefedTestRunner( 1614 deps = runner.get_test_runner_build_reqs([t_info]) 1630 runner = atf_tr.AtestTradefedTestRunner( [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/ |
D | ExceptionThrowingRunnerWrapper.java | 21 import org.junit.runner.Description; 22 import org.junit.runner.Runner; 23 import org.junit.runner.notification.RunNotifier; 26 private Runner runner; field in ExceptionThrowingRunnerWrapper 29 public ExceptionThrowingRunnerWrapper(Runner runner, TestInformation testInfo) { in ExceptionThrowingRunnerWrapper() argument 30 this.runner = runner; in ExceptionThrowingRunnerWrapper() 36 return runner.getDescription(); in getDescription() 43 runner.run(runNotifierWrapper); in run()
|
D | RunNotifierWrapper.java | 21 import org.junit.runner.Description; 22 import org.junit.runner.Result; 23 import org.junit.runner.notification.Failure; 24 import org.junit.runner.notification.RunListener; 25 import org.junit.runner.notification.RunNotifier;
|
D | BaseHostJUnit4Test.java | 327 String runner, String pkgName, String testClassName, String testMethodName) in runDeviceTests() argument 331 runner, in runDeviceTests() 525 String runner, in runDeviceTests() argument 539 runner, in runDeviceTests() 576 String runner, in runDeviceTests() argument 593 runner, in runDeviceTests() 632 String runner, in runDeviceTests() argument 650 runner, in runDeviceTests() 690 String runner, in runDeviceTests() argument 710 runner, in runDeviceTests() [all …]
|
/tools/asuite/atest/ |
D | bazel_mode_unittest.py | 2005 obj, test_id, test_name=MODULE_NAME, runner=ATEST_TF_RUNNER 2026 obj, test_id, test_name=MODULE_NAME, runner=ATEST_TF_RUNNER 2047 obj, test_id, test_name=MODULE_NAME, runner=ATEST_TF_RUNNER 2071 obj, test_id, test_name=MODULE_NAME, runner=ATEST_TF_RUNNER 2095 obj, test_id, test_name=MODULE_NAME, runner=ATEST_TF_RUNNER 2119 obj, test_id, test_name=MODULE_NAME, runner=ATEST_TF_RUNNER 2143 obj, test_id, test_name=MODULE_NAME, runner=ATEST_TF_RUNNER 2167 obj, test_id, test_name=MODULE_NAME, runner=ATEST_TF_RUNNER 2188 obj, test_id, test_name=MODULE_NAME, runner=ATEST_TF_RUNNER 2208 self, obj, test_id, test_name=MODULE_NAME, runner=ATEST_TF_RUNNER argument [all …]
|
D | atest_execution_info.py | 398 runner = info_dict[_TEST_RUNNER_KEY].setdefault(test.runner_name, {}) 399 group = runner.setdefault(test.group_name, {}) 408 for runner in info_dict[_TEST_RUNNER_KEY]: 409 for group in info_dict[_TEST_RUNNER_KEY][runner]: 411 for status in info_dict[_TEST_RUNNER_KEY][runner][group]: 412 count = len(info_dict[_TEST_RUNNER_KEY][runner][group][status]) 416 info_dict[_TEST_RUNNER_KEY][runner][group][_SUMMARY_KEY] = group_summary
|
/tools/asuite/atest/test_plans/ |
D | INTEGRATION_TESTS | 3 ###Purpose: Test with finder: MODULE and runner: AtestTradefedTestRunner### 9 ###Purpose: Test with finder: MODULE_FILE_PATH and runner: AtestTradefedTestRunner### 18 ###Purpose: Test with finder: INTEGRATION_FILE_PATH and runner: AtestTradefedTestRunner### 23 ###Purpose: Test with finder: MODULE_CLASS and runner: AtestTradefedTestRunner### 31 ###Purpose: Test with finder: QUALIFIED_CLASS and runner: AtestTradefedTestRunner### 41 ###Purpose: Test with finder: MODULE_PACKAGE and runner: AtestTradefedTestRunner### 46 ###Purpose: Test with finder: PACKAGE and runner: AtestTradefedTestRunner### 51 ###Purpose: Test with finder: CLASS and runner: AtestTradefedTestRunner### 56 ###Purpose: Test with finder: CC_CLASS and runner: AtestTradefedTestRunner### 61 ###Purpose: Test with finder: INTEGRATION and runner: AtestTradefedTestRunner### [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/lite/ |
D | DryRunnerTest.java | 22 import org.junit.runner.Description; 23 import org.junit.runner.Request; 24 import org.junit.runner.Result; 25 import org.junit.runner.RunWith; 26 import org.junit.runner.notification.RunListener; 27 import org.junit.runner.notification.RunNotifier; 47 DryRunner runner = new DryRunner(desc); in testFakeExecution() local 48 runner.run(notifier); in testFakeExecution()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | InstrumentationTest.java | 714 RemoteAndroidTestRunner runner; in createRemoteAndroidTestRunner() local 718 runner = new DefaultRemoteAndroidTestRunner(packageName, runnerName, device); in createRemoteAndroidTestRunner() 720 runner = in createRemoteAndroidTestRunner() 725 runner.setRunOptions(runOptions); in createRemoteAndroidTestRunner() 727 return runner; in createRemoteAndroidTestRunner() 883 protected void setRunnerArgs(IRemoteAndroidTestRunner runner) { in setRunnerArgs() argument 886 runner.setMethodName(mTestClassName, mTestMethodName); in setRunnerArgs() 888 runner.setClassName(mTestClassName); in setRunnerArgs() 891 runner.setTestPackageName(mTestPackageName); in setRunnerArgs() 897 runner.setTestSize(TestSize.getTestSize(mTestSize)); in setRunnerArgs() [all …]
|
D | DeviceSuite.java | 29 import org.junit.runner.Runner; 30 import org.junit.runner.notification.RunNotifier; 96 protected void runChild(Runner runner, RunNotifier notifier) { in runChild() argument 98 if (runner instanceof JUnit38ClassRunner) { in runChild() 99 JUnit38ClassRunner junit3Runner = (JUnit38ClassRunner) runner; in runChild() 128 OptionSetter setter = new OptionSetter(runner); in runChild() 133 CLog.d("Could not set option set-option on '%s', reason: '%s'", runner, e.getMessage()); in runChild() 135 super.runChild(runner, notifier); in runChild()
|
D | AndroidJUnitTest.java | 48 import org.junit.runner.notification.RunListener; 464 protected void setRunnerArgs(IRemoteAndroidTestRunner runner) { in setRunnerArgs() argument 465 super.setRunnerArgs(runner); in setRunnerArgs() 469 runner.addInstrumentationArg(TEST_FILE_INST_ARGS_KEY, mDeviceIncludeFile); in setRunnerArgs() 474 runner.addInstrumentationArg(NOT_TEST_FILE_INST_ARGS_KEY, mDeviceExcludeFile); in setRunnerArgs() 511 runner.addInstrumentationArg(INCLUDE_CLASS_INST_ARGS_KEY, in setRunnerArgs() 515 runner.addInstrumentationArg(EXCLUDE_CLASS_INST_ARGS_KEY, in setRunnerArgs() 519 runner.addInstrumentationArg(INCLUDE_PACKAGE_INST_ARGS_KEY, in setRunnerArgs() 523 runner.addInstrumentationArg(EXCLUDE_PACKAGE_INST_ARGS_KEY, in setRunnerArgs() 534 runner.addInstrumentationArg(INCLUDE_REGEX_INST_ARGS_KEY, regexFilter); in setRunnerArgs() [all …]
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ |
D | ota_updater_test.py | 84 runner = MockOtaRunner() 85 runner.set_failure(True) 86 ota_updater.ota_runners = {device: runner} 92 runner = MockOtaRunner() 93 runner.set_failure(True) 94 ota_updater.ota_runners = {device: runner} 102 runner = MockOtaRunner() 103 ota_updater.ota_runners = {device: runner}
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | LocalRunInstructionBuilder.java | 42 ConfigurationDescriptor configDescriptor, LocalTestRunner runner) { in getInstruction() argument 43 return getInstruction(configDescriptor, runner, null); in getInstruction() 57 LocalTestRunner runner, in getInstruction() argument 59 if (runner == null) { in getInstruction() 62 switch (runner) { in getInstruction() 66 CLog.v("Runner %s is not supported yet, no instruction will be built.", runner); in getInstruction() 97 LocalTestRunner runner) { in getCommand() argument 98 if (runner != LocalTestRunner.ATEST) { in getCommand()
|
/tools/tradefederation/contrib/src/com/android/wireless/tests/ |
D | WifiStressTest.java | 233 IRemoteAndroidTestRunner runner = in run() local 236 runner.addInstrumentationArg("softap_iterations", mApIteration); in run() 237 runner.addInstrumentationArg("scan_iterations", mScanIteration); in run() 238 runner.addInstrumentationArg("reconnect_iterations", mReconnectionIteration); in run() 239 runner.addInstrumentationArg("reconnect_ssid", mReconnectionSsid); in run() 240 runner.addInstrumentationArg("reconnect_password", mReconnectionPassword); in run() 241 runner.addInstrumentationArg("sleep_time", mIdleTime); in run() 243 runner.addInstrumentationArg("wifi-only", String.valueOf(mWifiOnly)); in run() 261 runner.setClassName(testCase.mTestClass); in run() 262 runner.setMethodName(testCase.mTestClass, testCase.mTestMethod); in run() [all …]
|
/tools/tradefederation/contrib/src/com/android/media/template/ |
D | AudioTestHarnessTemplateTest.java | 68 IRemoteAndroidTestRunner runner = new RemoteAndroidTestRunner(TEST_PACKAGE_NAME, in run() local 70 runner.addInstrumentationArg(AUDIO_FILE_KEY, mAudioFile); in run() 71 runner.addInstrumentationArg(AUDIO_PLAY_DURATION_KEY, mAudioPlayDuration); in run() 73 runner.setClassName(TEST_CLASS_NAME); in run() 74 runner.setMaxTimeToOutputResponse(MAX_TEST_TIMEOUT, TimeUnit.MILLISECONDS); in run() 76 mTestDevice.runInstrumentationTests(runner, listener); in run()
|
/tools/tradefederation/core/lite/com/android/tradefed/lite/ |
D | DryRunner.java | 18 import org.junit.runner.Description; 19 import org.junit.runner.Result; 20 import org.junit.runner.Runner; 21 import org.junit.runner.notification.RunListener; 22 import org.junit.runner.notification.RunNotifier;
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | AppTransitionTests.java | 326 RemoteAndroidTestRunner runner = in createRemoteAndroidTestRunner() local 328 runner.setMethodName(CLASS_NAME, testName); in createRemoteAndroidTestRunner() 329 runner.addInstrumentationArg("launch_apps", launchApps); in createRemoteAndroidTestRunner() 330 runner.setMaxTimeout(mTestTimeout, TimeUnit.MILLISECONDS); in createRemoteAndroidTestRunner() 332 runner.addInstrumentationArg("pre_launch_apps", preLaunchApps); in createRemoteAndroidTestRunner() 334 runner.addInstrumentationArg("launch_iteration", Integer.toString(mLaunchIteration)); in createRemoteAndroidTestRunner() 336 runner.addInstrumentationArg(entry.getKey(), entry.getValue()); in createRemoteAndroidTestRunner() 340 runner.addInstrumentationArg("trace_directory", mTraceDirectory); in createRemoteAndroidTestRunner() 350 runner.setRunOptions(runOptions); in createRemoteAndroidTestRunner() 352 return runner; in createRemoteAndroidTestRunner() [all …]
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | MediaMemoryTest.java | 110 IRemoteAndroidTestRunner runner = new RemoteAndroidTestRunner(TEST_PACKAGE_NAME, in run() local 112 runner.setClassName(TEST_CLASS_NAME); in run() 113 runner.setMaxTimeToOutputResponse(MAX_TEST_TIMEOUT, TimeUnit.MILLISECONDS); in run() 115 runner.addInstrumentationArg("get_heap_dump", "true"); in run() 118 runner.addInstrumentationArg("get_procmem", "true"); in run() 128 runner.setMethodName(TEST_CLASS_NAME, testName); in run() 129 mTestDevice.runInstrumentationTests(runner, bugListener); in run() 132 mTestDevice.runInstrumentationTests(runner, bugListener); in run()
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/ |
D | ModelTestSuiteRunner.kt | 55 val runner = modelSuiteRunners.single() in getModelSuiteRunners() constant 57 return runner.testConfigurations.map { in getModelSuiteRunners() 59 creator = runner, in getModelSuiteRunners() 67 includeInputFormatInTestName = runner.supportedInputFormats.size > 1, in getModelSuiteRunners()
|