Home
last modified time | relevance | path

Searched full:runner (Results 1 – 25 of 9081) sorted by relevance

12345678910>>...364

/external/tensorflow/tensorflow/lite/testing/
Dtflite_driver_test.cc27 std::unique_ptr<TestRunner> runner(new TfLiteDriver); in TEST() local
29 runner->SetModelBaseDir("tensorflow/lite"); in TEST()
30 runner->LoadModel("testdata/multi_add.bin", "serving_default"); in TEST()
31 ASSERT_TRUE(runner->IsValid()); in TEST()
33 ASSERT_THAT(runner->GetOutputNames(), ElementsAre("x", "y")); in TEST()
36 runner->ReshapeTensor(i, "1,2,2,1"); in TEST()
38 ASSERT_TRUE(runner->IsValid()); in TEST()
40 runner->AllocateTensors(); in TEST()
42 runner->ResetTensor("c"); in TEST()
43 runner->Invoke({{"a", "0.1,0.2,0.3,0.4"}, in TEST()
[all …]
Dtest_runner_test.cc52 ConcreteTestRunner runner; in TEST() local
53 EXPECT_EQ(runner.GetFullPath("test.bin"), "test.bin"); in TEST()
54 runner.SetModelBaseDir("/tmp"); in TEST()
55 EXPECT_EQ(runner.GetFullPath("test.bin"), "/tmp/test.bin"); in TEST()
59 ConcreteTestRunner runner; in TEST() local
60 EXPECT_EQ(runner.GetInvocationId(), ""); in TEST()
61 runner.SetInvocationId("X"); in TEST()
62 EXPECT_EQ(runner.GetInvocationId(), "X"); in TEST()
66 ConcreteTestRunner runner; in TEST() local
67 EXPECT_TRUE(runner.IsValid()); in TEST()
[all …]
/external/chromium-crossbench/tests/crossbench/runner/
Dtest_runner.py17 from crossbench.runner.groups.session import BrowserSessionRunGroup
18 from crossbench.runner.groups.thread import RunThreadGroup
19 from crossbench.runner.runner import Runner, ThreadMode
23 from tests.crossbench.runner.helper import (BaseRunnerTestCase, MockBrowser,
53 self.runner = MockRunner()
55 self.env = self.runner.env
58 MockRun(self.runner, self.create_session(self.browser_a_1, 1), "run 1"),
59 MockRun(self.runner, self.create_session(self.browser_a_2, 2), "run 2"),
60 MockRun(self.runner, self.create_session(self.browser_a_1, 3), "run 3"),
61 MockRun(self.runner, self.create_session(self.browser_a_2, 4), "run 4"),
[all …]
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_runners.py290 with asyncio.Runner(debug=False) as runner:
291 self.assertFalse(runner.get_loop().get_debug())
294 with asyncio.Runner(debug=True) as runner:
295 self.assertTrue(runner.get_loop().get_debug())
299 with asyncio.Runner(loop_factory=lambda: loop) as runner:
300 self.assertIs(runner.get_loop(), loop)
307 with asyncio.Runner() as runner:
308 self.assertEqual('done', runner.run(f()))
309 loop = runner.get_loop()
313 "Runner is closed"
[all …]
/external/junit/src/main/java/org/junit/runners/model/
DRunnerBuilder.java9 import org.junit.runner.Description;
10 import org.junit.runner.OrderWith;
11 import org.junit.runner.Runner;
12 import org.junit.runner.manipulation.InvalidOrderingException;
13 import org.junit.runner.manipulation.Ordering;
18 …* Only writers of custom runners should use <code>RunnerBuilder</code>s. A custom runner class wi…
19 …rameter will be passed the instance of <code>RunnerBuilder</code> used to build that runner itself.
21 * imagine a custom runner that builds suites based on a list of classes in a text file:
47 * Override to calculate the correct runner for a test class at runtime.
50 * @return a Runner
[all …]
/external/robolectric/integration_tests/testparameterinjector/src/test/java/org/robolectric/integrationtests/testparameterinjector/
DRobolectricTestParameterInjectorTest.java15 import org.junit.runner.Description;
16 import org.junit.runner.RunWith;
17 import org.junit.runner.Runner;
18 import org.junit.runner.notification.Failure;
19 import org.junit.runner.notification.RunListener;
20 import org.junit.runner.notification.RunNotifier;
77 Runner runner = new RobolectricTestParameterInjector(NoInjection.class); in noInjection() local
79 runner.run(runNotifier); in noInjection()
81 assertThat(runner.testCount()).isEqualTo(1); in noInjection()
95 Runner runner = new RobolectricTestParameterInjector(InjectedMethod.class); in injectedMethod() local
[all …]
/external/vogar/test/vogar/target/junit3/
DTestRunnerJUnit3Test.java20 import org.junit.runner.RunWith;
38 TestRunner runner = testRunnerRule.createTestRunner(); in testConstructor_JUnit3Test_RunnerType_JUNIT() local
39 runner.run(); in testConstructor_JUnit3Test_RunnerType_JUNIT()
49 TestRunner runner = testRunnerRule.createTestRunner(); in testRunner_ChangeDefaultLocaleTest() local
50 runner.run(); in testRunner_ChangeDefaultLocaleTest()
63 TestRunner runner = testRunnerRule.createTestRunner(); in testRunner_SimpleTest2() local
64 runner.run(); in testRunner_SimpleTest2()
78 TestRunner runner = testRunnerRule.createTestRunner("--skipPast", failingTestName); in testRunner_SkipPast() local
80 runner.run(); in testRunner_SkipPast()
91 TestRunner runner = testRunnerRule.createTestRunner("--skipPast", failingTestName); in testRunner_SkipPastAll() local
[all …]
/external/vogar/test/vogar/target/junit4/
DTestRunnerJUnit4Test.java20 import org.junit.runner.RunWith;
35 TestRunner runner = testRunnerRule.createTestRunner(); in testRunner_ChangeDefaultLocaleTest() local
36 runner.run(); in testRunner_ChangeDefaultLocaleTest()
49 TestRunner runner = testRunnerRule.createTestRunner(); in testRunner_SimpleTest2() local
50 runner.run(); in testRunner_SimpleTest2()
64 TestRunner runner = testRunnerRule.createTestRunner("--skipPast", failingTestName); in testRunner_SkipPast() local
66 runner.run(); in testRunner_SkipPast()
78 TestRunner runner = testRunnerRule.createTestRunner("--skipPast", failingTestName); in testRunner_SkipPastAll() local
80 runner.run(); in testRunner_SkipPastAll()
88 TestRunner runner = testRunnerRule.createTestRunner(args); in testRunner_SimpleTest2_OneMethod() local
[all …]
/external/cronet/stable/base/
Done_shot_event_unittest.cc53 scoped_refptr<base::TestSimpleTaskRunner> runner( in TEST() local
56 event.Post(FROM_HERE, base::BindOnce(&Increment, &i), runner); in TEST()
57 event.Post(FROM_HERE, base::BindOnce(&Increment, &i), runner); in TEST()
58 EXPECT_EQ(0U, runner->NumPendingTasks()); in TEST()
61 auto pending_tasks = runner->TakePendingTasks(); in TEST()
70 scoped_refptr<base::TestSimpleTaskRunner> runner( in TEST() local
73 event.Post(FROM_HERE, base::BindOnce(&Increment, &i), runner); in TEST()
74 event.Post(FROM_HERE, base::BindOnce(&Increment, &i), runner); in TEST()
75 EXPECT_EQ(0U, runner->NumPendingTasks()); in TEST()
77 ASSERT_EQ(2U, runner->NumPendingTasks()); in TEST()
[all …]
/external/cronet/tot/base/
Done_shot_event_unittest.cc53 scoped_refptr<base::TestSimpleTaskRunner> runner( in TEST() local
56 event.Post(FROM_HERE, base::BindOnce(&Increment, &i), runner); in TEST()
57 event.Post(FROM_HERE, base::BindOnce(&Increment, &i), runner); in TEST()
58 EXPECT_EQ(0U, runner->NumPendingTasks()); in TEST()
61 auto pending_tasks = runner->TakePendingTasks(); in TEST()
70 scoped_refptr<base::TestSimpleTaskRunner> runner( in TEST() local
73 event.Post(FROM_HERE, base::BindOnce(&Increment, &i), runner); in TEST()
74 event.Post(FROM_HERE, base::BindOnce(&Increment, &i), runner); in TEST()
75 EXPECT_EQ(0U, runner->NumPendingTasks()); in TEST()
77 ASSERT_EQ(2U, runner->NumPendingTasks()); in TEST()
[all …]
/external/openscreen/platform/impl/
Dtask_runner_unittest.cc75 auto runner = std::make_unique<TaskRunnerImpl>( in Create() local
77 fake_waiter->SetTaskRunner(runner.get()); in Create()
78 return runner; in Create()
91 TaskRunnerImpl runner(&fake_clock.now); in TEST() local
94 runner.PostTask([&ran_tasks] { ran_tasks += "1"; }); in TEST()
95 runner.RequestStopSoon(); in TEST()
97 runner.RunUntilStopped(); in TEST()
103 TaskRunnerImpl runner(&fake_clock.now); in TEST() local
105 std::thread t([&runner] { runner.RunUntilStopped(); }); in TEST()
111 runner.PostTaskWithDelay(task_one, kDelayTime); in TEST()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DReschedulerTest.java25 import org.junit.runner.RunWith;
34 private final Runner runner = new Runner(); field in ReschedulerTest
38 runner,
45 assertFalse(runner.ran); in runs()
47 assertFalse(runner.ran); in runs()
51 assertTrue(runner.ran); in runs()
56 assertFalse(runner.ran); in cancels()
58 assertFalse(runner.ran); in cancels()
63 assertFalse(runner.ran); in cancels()
69 assertFalse(runner.ran); in cancelPermanently()
[all …]
/external/pytorch/.github/workflows/
Dinductor-perf-test-nightly-aarch64.yml57 runner: linux.arm64.m7g.4xlarge
62 …{ config: "inductor_huggingface_perf_cpu_aarch64", shard: 1, num_shards: 9, runner: "linux.arm64.m…
63 …{ config: "inductor_huggingface_perf_cpu_aarch64", shard: 2, num_shards: 9, runner: "linux.arm64.m…
64 …{ config: "inductor_huggingface_perf_cpu_aarch64", shard: 3, num_shards: 9, runner: "linux.arm64.m…
65 …{ config: "inductor_huggingface_perf_cpu_aarch64", shard: 4, num_shards: 9, runner: "linux.arm64.m…
66 …{ config: "inductor_huggingface_perf_cpu_aarch64", shard: 5, num_shards: 9, runner: "linux.arm64.m…
67 …{ config: "inductor_huggingface_perf_cpu_aarch64", shard: 6, num_shards: 9, runner: "linux.arm64.m…
68 …{ config: "inductor_huggingface_perf_cpu_aarch64", shard: 7, num_shards: 9, runner: "linux.arm64.m…
69 …{ config: "inductor_huggingface_perf_cpu_aarch64", shard: 8, num_shards: 9, runner: "linux.arm64.m…
70 …{ config: "inductor_huggingface_perf_cpu_aarch64", shard: 9, num_shards: 9, runner: "linux.arm64.m…
[all …]
Dinductor.yml41 …{ config: "inductor", shard: 1, num_shards: 2, runner: "${{ needs.get-label-type.outputs.label-typ…
42 …{ config: "inductor", shard: 2, num_shards: 2, runner: "${{ needs.get-label-type.outputs.label-typ…
43 …{ config: "inductor_distributed", shard: 1, num_shards: 1, runner: "${{ needs.get-label-type.outpu…
44 …{ config: "inductor_huggingface", shard: 1, num_shards: 1, runner: "${{ needs.get-label-type.outpu…
45 …{ config: "inductor_timm", shard: 1, num_shards: 2, runner: "${{ needs.get-label-type.outputs.labe…
46 …{ config: "inductor_timm", shard: 2, num_shards: 2, runner: "${{ needs.get-label-type.outputs.labe…
47 …{ config: "inductor_torchbench", shard: 1, num_shards: 2, runner: "${{ needs.get-label-type.output…
48 …{ config: "inductor_torchbench", shard: 2, num_shards: 2, runner: "${{ needs.get-label-type.output…
49 …{ config: "dynamic_inductor_huggingface", shard: 1, num_shards: 1, runner: "${{ needs.get-label-ty…
50 …{ config: "dynamic_inductor_timm", shard: 1, num_shards: 2, runner: "${{ needs.get-label-type.outp…
[all …]
Dpull.yml46 { config: "default", shard: 1, num_shards: 3, runner: "am2.linux.2xlarge" },
47 { config: "default", shard: 2, num_shards: 3, runner: "am2.linux.2xlarge" },
48 { config: "default", shard: 3, num_shards: 3, runner: "am2.linux.2xlarge" },
49 { config: "docs_test", shard: 1, num_shards: 1, runner: "am2.linux.2xlarge" },
50 { config: "jit_legacy", shard: 1, num_shards: 1, runner: "am2.linux.2xlarge" },
51 { config: "backwards_compat", shard: 1, num_shards: 1, runner: "am2.linux.2xlarge" },
52 { config: "distributed", shard: 1, num_shards: 2, runner: "am2.linux.2xlarge" },
53 { config: "distributed", shard: 2, num_shards: 2, runner: "am2.linux.2xlarge" },
106 { config: "default", shard: 1, num_shards: 6, runner: "linux.4xlarge" },
107 { config: "default", shard: 2, num_shards: 6, runner: "linux.4xlarge" },
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/
DRobolectricTestRunnerMultiApiTest.java23 import org.junit.runner.Description;
24 import org.junit.runner.RunWith;
25 import org.junit.runner.notification.RunListener;
26 import org.junit.runner.notification.RunNotifier;
49 private RobolectricTestRunner runner; field in RobolectricTestRunnerMultiApiTest
83 runner = runnerOf(TestWithNoConfig.class); in createChildrenForEachSupportedApi()
84 assertThat(apisFor(runner.getChildren())) in createChildrenForEachSupportedApi()
90 runner = runnerOf(TestMethodWithNewestSdk.class); in withConfigSdkLatest_shouldUseLatestSupported()
91 assertThat(apisFor(runner.getChildren())).containsExactly(O); in withConfigSdkLatest_shouldUseLatestSupported()
96 runner = runnerOf(TestMethodWithSdkAndMinMax.class); in withConfigSdkAndMinMax_shouldUseMinMax()
[all …]
/external/junit/src/main/java/org/junit/experimental/
DParallelComputer.java7 import org.junit.runner.Computer;
8 import org.junit.runner.Runner;
32 private static Runner parallelize(Runner runner) { in parallelize() argument
33 if (runner instanceof ParentRunner) { in parallelize()
34 ((ParentRunner<?>) runner).setScheduler(new RunnerScheduler() { in parallelize()
51 return runner; in parallelize()
55 public Runner getSuite(RunnerBuilder builder, java.lang.Class<?>[] classes) in getSuite()
57 Runner suite = super.getSuite(builder, classes); in getSuite()
62 protected Runner getRunner(RunnerBuilder builder, Class<?> testClass) in getRunner()
64 Runner runner = super.getRunner(builder, testClass); in getRunner() local
[all …]
/external/chromium-crossbench/tests/crossbench/probes/
Dhelper.py16 from crossbench.runner.runner import Runner
32 throw: bool = True) -> Runner:
40 # The order should match Runner.get_runs
53 runner = Runner(
64 return runner
66 def get_non_empty_json_results(self, runner: Runner, argument
68 story_json_file = runner.runs[0].results[probe].json
73 repetitions_json_file = runner.repetitions_groups[0].results[probe].json
78 stories_json_file = runner.story_groups[0].results[probe].json
83 browsers_json_file = runner.browser_group.results[probe].json
[all …]
/external/mockito/src/main/java/org/mockito/junit/
DMockitoJUnitRunner.java9 import org.junit.runner.Description;
10 import org.junit.runner.Runner;
11 import org.junit.runner.manipulation.Filter;
12 import org.junit.runner.manipulation.Filterable;
13 import org.junit.runner.manipulation.NoTestsRemainException;
14 import org.junit.runner.notification.RunNotifier;
27 * Mockito JUnit Runner keeps tests clean and improves debugging experience.
30 * Runner is compatible with JUnit 4.4 and higher and adds following behavior:
35 …* Similar to JUnit rules, the runner also reports stubbing argument mismatches as console wa…
45 … It is highly recommended to use {@link MockitoJUnitRunner.StrictStubs} variant of the runner.
[all …]
/external/junit/src/main/java/org/junit/runner/
DRunner.java1 package org.junit.runner;
3 import org.junit.runner.notification.RunNotifier;
6 * A <code>Runner</code> runs tests and notifies a {@link org.junit.runner.notification.RunNotifier}
7 * of significant events as it does so. You will need to subclass <code>Runner</code>
8 * when using {@link org.junit.runner.RunWith} to invoke a custom runner. When creating
9 * a custom runner, in addition to implementing the abstract methods here you must
13 * <p>The default runner implementation guarantees that the instances of the test case
14 * class will be constructed immediately before running the test and that the runner
18 * @see org.junit.runner.Description
19 * @see org.junit.runner.RunWith
[all …]
/external/caliper/expectations/
Dknownfailures.txt12 "com.google.caliper.runner.StreamServiceTest",
13 "com.google.caliper.runner.WorkerProcessTest"
21 "com.google.caliper.runner.ExperimentingRunnerModuleTest"
33 "com.google.caliper.runner.AllocationInstrumentTest",
34 …"com.google.caliper.runner.BadUserCodeTest#testComplexNonDeterministicAllocation_noTrackAllocation…
35 …"com.google.caliper.runner.BadUserCodeTest#testComplexNonDeterministicAllocation_trackAllocations",
36 "com.google.caliper.runner.BadUserCodeTest#testNonDeterministicAllocation_noTrackAllocations",
37 "com.google.caliper.runner.BadUserCodeTest#testNonDeterministicAllocation_trackAllocations",
38 "com.google.caliper.runner.MalformedBenchmarksTest#noBenchmarkMethods"
44 "com.google.caliper.runner.ArbitraryMeasurmentInstrumentTest"
[all …]
/external/tensorflow/tensorflow/core/data/service/
Dtask_runner_test.cc125 StatusOr<std::vector<T>> GetTaskRunnerOutput(TaskRunner& runner, in GetTaskRunnerOutput() argument
130 TF_RETURN_IF_ERROR(runner.GetNext(request, result)); in GetTaskRunnerOutput()
144 StatusOr<T> GetNextFromTaskRunner(TaskRunner& runner, in GetNextFromTaskRunner() argument
147 TF_RETURN_IF_ERROR(runner.GetNext(request, result)); in GetNextFromTaskRunner()
159 TaskRunner& runner, const GetElementRequest& request, in GetElementsFromTaskRunner() argument
163 TF_ASSIGN_OR_RETURN(T next, GetNextFromTaskRunner<T>(runner, request)); in GetElementsFromTaskRunner()
177 // Reads from the task runner, storing results in `*output`.
201 FirstComeFirstServedTaskRunner runner( in TEST() local
205 GetTaskRunnerOutput<int64_t>(runner, GetElementRequest())); in TEST()
209 TF_ASSERT_OK(runner.GetNext(GetElementRequest(), result)); in TEST()
[all …]
/external/pytorch/test/cpp/aoti_inference/
Dtest.cpp37 std::unique_ptr<torch::inductor::AOTIModelContainerRunner> runner; in test_aoti() local
39 runner = std::make_unique<torch::inductor::AOTIModelContainerRunnerCpu>( in test_aoti()
43 runner = std::make_unique<torch::inductor::AOTIModelContainerRunnerCuda>( in test_aoti()
49 auto actual_output_tensors = runner->run(input_tensors); in test_aoti()
115 std::unique_ptr<torch::inductor::AOTIModelContainerRunner> runner; in test_aoti_constants_update() local
117 runner = std::make_unique<torch::inductor::AOTIModelContainerRunnerCpu>( in test_aoti_constants_update()
121 runner = std::make_unique<torch::inductor::AOTIModelContainerRunnerCuda>( in test_aoti_constants_update()
128 auto actual_output_tensors = runner->run(input_tensors); in test_aoti_constants_update()
133 runner->update_constant_buffer(missing_map, false, true), in test_aoti_constants_update()
137 runner->update_constant_buffer(missing_map, false, false); in test_aoti_constants_update()
[all …]
/external/junit/src/main/java/org/junit/internal/requests/
DMemoizingRequest.java6 import org.junit.runner.Request;
7 import org.junit.runner.Runner;
11 private volatile Runner runner; field in MemoizingRequest
14 public final Runner getRunner() { in getRunner()
15 if (runner == null) { in getRunner()
18 if (runner == null) { in getRunner()
19 runner = createRunner(); in getRunner()
25 return runner; in getRunner()
28 /** Creates the {@link Runner} to return from {@link #getRunner()}. Called at most once. */
29 protected abstract Runner createRunner(); in createRunner()
/external/pytorch/.github/scripts/s390x-ci/self-hosted-builder/
Dactions-runner@.service2 Description=Self-Hosted IBM Z Github Actions Runner
10 ExecStartPre=-/usr/bin/docker rm --force actions-runner.%i
11 …or.sh /etc/actions-runner/%i/appid.env /etc/actions-runner/%i/installid.env /etc/actions-runner/%i…
13 --env-file=/etc/actions-runner/%i/env \
14 --env-file=/etc/actions-runner/%i/ghtoken.env \
17 --name=actions-runner.%i \
20 iiilinuxibmcom/actions-runner.%i
21 ExecStop=/bin/sh -c "docker exec actions-runner.%i kill -INT -- -1"
22 ExecStop=/bin/sh -c "docker wait actions-runner.%i"
23 ExecStop=/bin/sh -c "docker rm actions-runner.%i"

12345678910>>...364