Home
last modified time | relevance | path

Searched refs:runner (Results 1 – 25 of 496) sorted by relevance

12345678910>>...20

/tools/test/connectivity/acts/framework/tests/libs/ota/ota_runners/
Dota_runner_test.py74 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/tests/src/com/android/tradefed/testtype/
DInstrumentationTestTest.java71 import org.junit.runner.RunWith;
131 Boolean answer(IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver listener) in answer() argument
172 (runner, listener) -> { in testRun()
190 ArgumentCaptor<IRemoteAndroidTestRunner> runner = in testRun() local
192 inOrder.verify(mInstrumentationTest).setRunnerArgs(runner.capture()); in testRun()
194 .runInstrumentationTests(eq(runner.getValue()), any(ITestLifeCycleReceiver.class)); in testRun()
222 RemoteAndroidTestRunner runner = in testRun_hiddenApiCheck() local
225 assertThat(runner.getRunOptions()).contains("--no-hidden-api-checks"); in testRun_hiddenApiCheck()
235 RemoteAndroidTestRunner runner = in testRun_testApiCheck() local
238 assertThat(runner.getRunOptions()).contains("--no-test-api-access"); in testRun_testApiCheck()
[all …]
DInstrumentationFileTestTest.java44 import org.junit.runner.RunWith;
116 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_singleSuccessfulTest()
180 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_reRunOneFailedToCompleteTest()
199 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_reRunOneFailedToCompleteTest()
278 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_serialReRunOfTwoFailedToCompleteTests()
295 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_serialReRunOfTwoFailedToCompleteTests()
312 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_serialReRunOfTwoFailedToCompleteTests()
390 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_noSerialReRun()
457 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_exceedMaxAttempts()
478 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_exceedMaxAttempts()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/
DRustTestBaseTest.java23 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/tradefederation/core/atest/docs/
Ddevelop_test_runners.md3 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/asuite/atest/docs/
Ddevelop_test_runners.md3 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/test_framework/com/android/tradefed/testtype/
DInstrumentationTest.java684 RemoteAndroidTestRunner runner = in createRemoteAndroidTestRunner() local
717 runner.setRunOptions(runOptions); in createRemoteAndroidTestRunner()
720 return runner; in createRemoteAndroidTestRunner()
822 protected void setRunnerArgs(IRemoteAndroidTestRunner runner) { in setRunnerArgs() argument
825 runner.setMethodName(mTestClassName, mTestMethodName); in setRunnerArgs()
827 runner.setClassName(mTestClassName); in setRunnerArgs()
830 runner.setTestPackageName(mTestPackageName); in setRunnerArgs()
836 runner.setTestSize(TestSize.getTestSize(mTestSize)); in setRunnerArgs()
838 addTimeoutsToRunner(runner); in setRunnerArgs()
840 runner.setRunName(mRunName); in setRunnerArgs()
[all …]
DInstrumentationSerialTest.java73 InstrumentationTest runner = new InstrumentationTest(); in createInstrumentationTest() local
74 OptionCopier.copyOptions(instrumentationTest, runner); in createInstrumentationTest()
75 runner.setConfiguration(instrumentationTest.getConfiguration()); in createInstrumentationTest()
76 runner.setDevice(instrumentationTest.getDevice()); in createInstrumentationTest()
77 runner.setForceAbi(instrumentationTest.getForceAbi()); in createInstrumentationTest()
79 runner.setReRunUsingTestFile(false); in createInstrumentationTest()
81 runner.setRerunMode(false); in createInstrumentationTest()
82 runner.setIsRerun(true); in createInstrumentationTest()
83 return runner; in createInstrumentationTest()
96 InstrumentationTest runner = createInstrumentationTest(mInstrumentationTest); in run() local
[all …]
DAndroidJUnitTest.java37 import org.junit.runner.notification.RunListener;
350 protected void setRunnerArgs(IRemoteAndroidTestRunner runner) { in setRunnerArgs() argument
351 super.setRunnerArgs(runner); in setRunnerArgs()
355 runner.addInstrumentationArg(TEST_FILE_INST_ARGS_KEY, mDeviceIncludeFile); in setRunnerArgs()
360 runner.addInstrumentationArg(NOT_TEST_FILE_INST_ARGS_KEY, mDeviceExcludeFile); in setRunnerArgs()
388 runner.addInstrumentationArg(INCLUDE_CLASS_INST_ARGS_KEY, in setRunnerArgs()
392 runner.addInstrumentationArg(EXCLUDE_CLASS_INST_ARGS_KEY, in setRunnerArgs()
396 runner.addInstrumentationArg(INCLUDE_PACKAGE_INST_ARGS_KEY, in setRunnerArgs()
400 runner.addInstrumentationArg(EXCLUDE_PACKAGE_INST_ARGS_KEY, in setRunnerArgs()
411 runner.addInstrumentationArg(INCLUDE_REGEX_INST_ARGS_KEY, regexFilter); in setRunnerArgs()
[all …]
DDeviceSuite.java29 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()
DInstrumentationFileTest.java198 InstrumentationTest runner, TestInformation testInfo, ITestInvocationListener listener) in runTests() argument
202 runner.run(testInfo, new FilteredResultForwarder(mTests, listener, testTracker)); in runTests()
213 reRunTestsSerially(runner, testInfo, listener); in runTests()
223 InstrumentationTest runner, TestInformation testInfo, ITestInvocationListener listener) in reRunTestsSerially() argument
226 runner.setTestFilePathOnDevice(null); in reRunTestsSerially()
228 runner.setReRunUsingTestFile(false); in reRunTestsSerially()
230 runner.setTestsToRun(mTests); in reRunTestsSerially()
231 runner.run(testInfo, listener); in reRunTestsSerially()
/tools/tradefederation/core/atest/
DINTEGRATION_TESTS3 ###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###
30 ###Purpose: Test with finder: QUALIFIED_CLASS and runner: AtestTradefedTestRunner###
36 ###Purpose: Test with finder: MODULE_PACKAGE and runner: AtestTradefedTestRunner###
41 ###Purpose: Test with finder: PACKAGE and runner: AtestTradefedTestRunner###
46 ###Purpose: Test with finder: CLASS and runner: AtestTradefedTestRunner###
51 ###Purpose: Test with finder: CC_CLASS and runner: AtestTradefedTestRunner###
58 ###Purpose: Test with finder: INTEGRATION and runner: AtestTradefedTestRunner###
[all …]
Datest_execution_info.py311 runner = info_dict[_TEST_RUNNER_KEY].setdefault(test.runner_name, {})
312 group = runner.setdefault(test.group_name, {})
319 for runner in info_dict[_TEST_RUNNER_KEY]:
320 for group in info_dict[_TEST_RUNNER_KEY][runner]:
322 for status in info_dict[_TEST_RUNNER_KEY][runner][group]:
323 count = len(info_dict[_TEST_RUNNER_KEY][runner][group][status])
327 info_dict[_TEST_RUNNER_KEY][runner][group][_SUMMARY_KEY] = group_summary
/tools/asuite/atest/
DINTEGRATION_TESTS3 ###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###
30 ###Purpose: Test with finder: QUALIFIED_CLASS and runner: AtestTradefedTestRunner###
36 ###Purpose: Test with finder: MODULE_PACKAGE and runner: AtestTradefedTestRunner###
41 ###Purpose: Test with finder: PACKAGE and runner: AtestTradefedTestRunner###
46 ###Purpose: Test with finder: CLASS and runner: AtestTradefedTestRunner###
51 ###Purpose: Test with finder: CC_CLASS and runner: AtestTradefedTestRunner###
58 ###Purpose: Test with finder: INTEGRATION and runner: AtestTradefedTestRunner###
[all …]
Datest_execution_info.py312 runner = info_dict[_TEST_RUNNER_KEY].setdefault(
314 group = runner.setdefault(test.group_name, {})
321 for runner in info_dict[_TEST_RUNNER_KEY]:
322 for group in info_dict[_TEST_RUNNER_KEY][runner]:
324 for status in info_dict[_TEST_RUNNER_KEY][runner][group]:
325 count = len(info_dict[_TEST_RUNNER_KEY][runner][group][status])
329 info_dict[_TEST_RUNNER_KEY][runner][group][_SUMMARY_KEY] = group_summary
/tools/tradefederation/contrib/src/com/android/performance/tests/
DAppTransitionTests.java326 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 …]
DHermeticLaunchTest.java285 RemoteAndroidTestRunner runner = in createRemoteAndroidTestRunner() local
287 runner.addInstrumentationArg("targetpackage", mtargetPackage); in createRemoteAndroidTestRunner()
288 runner.addInstrumentationArg("launchcount", mlaunchCount + ""); in createRemoteAndroidTestRunner()
289 runner.addInstrumentationArg("tracecategory", mtraceCategory); in createRemoteAndroidTestRunner()
291 runner.addInstrumentationArg("instanturl", mInstantAppUrl); in createRemoteAndroidTestRunner()
294 runner.addInstrumentationArg("activitylist", mactivityNames); in createRemoteAndroidTestRunner()
297 runner.addInstrumentationArg("recordtrace", "false"); in createRemoteAndroidTestRunner()
308 runner.setRunOptions(runOptions); in createRemoteAndroidTestRunner()
310 return runner; in createRemoteAndroidTestRunner()
/tools/tradefederation/contrib/src/com/android/wireless/tests/
DWifiStressTest.java233 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/core/src/com/android/tradefed/device/
DNativeDevice.java887 final IRemoteAndroidTestRunner runner, in runInstrumentationTests() argument
902 runner.run(runListeners); in runInstrumentationTests()
907 runner.getPackageName()), runTestsAction, 0); in runInstrumentationTests()
921 final IRemoteAndroidTestRunner runner, in runInstrumentationTestsAsUser() argument
925 String oldRunTimeOptions = appendUserRunTimeOptionToRunner(runner, userId); in runInstrumentationTestsAsUser()
926 boolean result = runInstrumentationTests(runner, listeners); in runInstrumentationTestsAsUser()
927 resetUserRunTimeOptionToRunner(runner, oldRunTimeOptions); in runInstrumentationTestsAsUser()
938 …private String appendUserRunTimeOptionToRunner(final IRemoteAndroidTestRunner runner, int userId) { in appendUserRunTimeOptionToRunner() argument
939 if (runner instanceof RemoteAndroidTestRunner) { in appendUserRunTimeOptionToRunner()
940 String original = ((RemoteAndroidTestRunner) runner).getRunOptions(); in appendUserRunTimeOptionToRunner()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/lite/
DDryRunnerTest.java21 import org.junit.runner.Description;
22 import org.junit.runner.Request;
23 import org.junit.runner.Result;
24 import org.junit.runner.RunWith;
25 import org.junit.runner.notification.RunListener;
26 import org.junit.runner.notification.RunNotifier;
46 DryRunner runner = new DryRunner(desc); in testFakeExecution() local
47 runner.run(notifier); in testFakeExecution()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java309 String runner, String pkgName, String testClassName, String testMethodName) in runDeviceTests() argument
313 runner, in runDeviceTests()
505 String runner, in runDeviceTests() argument
519 runner, in runDeviceTests()
556 String runner, in runDeviceTests() argument
573 runner, in runDeviceTests()
612 String runner, in runDeviceTests() argument
631 runner, in runDeviceTests()
696 String runner, in doRunTests() argument
711 RemoteAndroidTestRunner testRunner = createTestRunner(pkgName, runner, device); in doRunTests()
/tools/test/connectivity/acts/framework/tests/libs/ota/
Dota_updater_test.py84 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/
DLocalRunInstructionBuilder.java40 ConfigurationDescriptor configDescriptor, LocalTestRunner runner) { in getInstruction() argument
41 return getInstruction(configDescriptor, runner, null); in getInstruction()
55 LocalTestRunner runner, in getInstruction() argument
57 if (runner == null) { in getInstruction()
60 switch (runner) { in getInstruction()
64 CLog.v("Runner %s is not supported yet, no instruction will be built.", runner); in getInstruction()
95 LocalTestRunner runner) { in getCommand() argument
96 if (runner != LocalTestRunner.ATEST) { in getCommand()
/tools/tradefederation/contrib/src/com/android/media/tests/
DMediaMemoryTest.java110 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()
DCameraStressTest.java189 IRemoteAndroidTestRunner runner = new RemoteAndroidTestRunner(TEST_PACKAGE_NAME, in executeTest() local
193 runner.setClassName(test.mClassName); in executeTest()
194 runner.setMaxTimeToOutputResponse(MAX_TEST_TIMEOUT, TimeUnit.MILLISECONDS); in executeTest()
196 runner.setMethodName(test.mClassName, test.mTestName); in executeTest()
201 runner.addInstrumentationArg(s, test.mInstrumentationArgs.get(s)); in executeTest()
204 mTestDevice.runInstrumentationTests(runner, listener, auxListener); in executeTest()

12345678910>>...20