| // Copyright 2022 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| { |
| // This component bundles all the different test runners starnix uses, and exposes all their |
| // runner capabilities. This makes it easier for the test runner component to include all the |
| // starnix test runners. |
| children: [ |
| { |
| name: "starnix_test_runner", |
| url: "fuchsia-pkg://fuchsia.com/starnix-test-runners#meta/starnix_test_runner.cm", |
| }, |
| { |
| name: "starnix_unit_test_runner", |
| url: "fuchsia-pkg://fuchsia.com/starnix-test-runners#meta/starnix_unit_test_runner.cm", |
| }, |
| ], |
| offer: [ |
| { |
| protocol: [ "fuchsia.component.Realm" ], |
| from: "framework", |
| to: [ "#starnix_unit_test_runner" ], |
| }, |
| { |
| protocol: [ "fuchsia.logger.LogSink" ], |
| from: "parent", |
| to: [ |
| "#starnix_test_runner", |
| "#starnix_unit_test_runner", |
| ], |
| }, |
| { |
| protocol: [ |
| "fuchsia.kernel.VmexResource", |
| "fuchsia.process.Launcher", |
| "fuchsia.sysmem.Allocator", |
| "fuchsia.test.runner.LibraryLoaderCacheBuilder", |
| "fuchsia.tracing.provider.Registry", |
| "fuchsia.ui.composition.Allocator", |
| "fuchsia.ui.composition.Flatland", |
| "fuchsia.ui.input3.Keyboard", |
| "fuchsia.ui.scenic.Scenic", |
| "fuchsia.vulkan.loader.Loader", |
| ], |
| from: "parent", |
| to: [ "#starnix_unit_test_runner" ], |
| }, |
| { |
| directory: "dev-gpu", |
| from: "parent", |
| to: [ "#starnix_unit_test_runner" ], |
| }, |
| ], |
| expose: [ |
| { |
| runner: "starnix_test_runner", |
| from: "#starnix_test_runner", |
| }, |
| { |
| runner: "starnix_unit_test_runner", |
| from: "#starnix_unit_test_runner", |
| }, |
| ], |
| } |