Home
last modified time | relevance | path

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

12345678910>>...19

/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/rust/
DRustTestBaseTest.java26 import org.junit.runner.RunWith;
44 ITestFilterReceiver runner = new RustTestBaseImpl(); in testIncludeFilters() local
49 assertEquals(set0, runner.getIncludeFilters()); in testIncludeFilters()
50 runner.addIncludeFilter(s[0]); in testIncludeFilters()
51 assertEquals(set1, runner.getIncludeFilters()); in testIncludeFilters()
52 runner.clearIncludeFilters(); in testIncludeFilters()
53 assertEquals(set0, runner.getIncludeFilters()); in testIncludeFilters()
54 runner.addIncludeFilter(s[2]); in testIncludeFilters()
55 runner.addAllIncludeFilters(set2); in testIncludeFilters()
56 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/
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 …]
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()
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 …]
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()
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 …]
/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/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/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/core/lite/com/android/tradefed/lite/
DDryRunner.java18 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/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 …]
/tools/tradefederation/contrib/src/com/android/media/template/
DAudioTestHarnessTemplateTest.java68 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/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/test_framework/com/android/tradefed/testtype/junit4/
DRunNotifierWrapper.java20 import org.junit.runner.Description;
21 import org.junit.runner.notification.Failure;
22 import org.junit.runner.notification.RunNotifier;
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/
Dota_runner_factory.py159 runner = ota_runner.SingleUseOtaRunner(ota_tool, android_device,
162 runner = ota_runner.MultiUseOtaRunner(ota_tool, android_device,
168 _bound_devices[android_device] = runner
169 return runner
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_tools/
Dadb_sideload_ota_tool_test.py64 runner = ota_runner.SingleUseOtaRunner(tool, device, ota_package_path,
66 runner.android_device.adb.getprop = mock.Mock(side_effect=['a', 'b'])
67 runner.update()
/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()
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/
Dunit_test_suite.py30 runner = unittest.TextTestRunner() variable
31 test_run = runner.run(test_suite)

12345678910>>...19