| // Copyright 2020 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. | |
| { | |
| include: [ "//src/sys/component_manager/tests/meta/elf_runner_and_environment.shard.cml" ], | |
| children: [ | |
| { | |
| name: "routing-tests", | |
| url: "#meta/routing-tests.cm", | |
| startup: "eager", | |
| environment: "#elf-env", | |
| }, | |
| { | |
| name: "archivist", | |
| url: "#meta/archivist-for-embedding.cm", | |
| environment: "#elf-env", | |
| }, | |
| { | |
| name: "reader", | |
| url: "#meta/reader.cm", | |
| startup: "eager", | |
| environment: "#elf-env", | |
| }, | |
| ], | |
| capabilities: [ | |
| { dictionary: "outer_diagnostics" }, | |
| { dictionary: "inner_diagnostics" }, | |
| ], | |
| offer: [ | |
| { | |
| protocol: [ | |
| "fuchsia.inspect.InspectSink", | |
| "fuchsia.logger.LogSink", | |
| ], | |
| from: "parent", | |
| to: "self/outer_diagnostics", | |
| }, | |
| { | |
| protocol: [ | |
| "fuchsia.inspect.InspectSink", | |
| "fuchsia.logger.LogSink", | |
| ], | |
| from: "#archivist", | |
| to: "self/inner_diagnostics", | |
| }, | |
| { | |
| dictionary: "inner_diagnostics", | |
| from: "self", | |
| as: "diagnostics", | |
| to: [ "#routing-tests" ], | |
| }, | |
| { | |
| dictionary: "outer_diagnostics", | |
| from: "self", | |
| as: "diagnostics", | |
| to: [ | |
| "#archivist", | |
| "#elf_runner", | |
| "#reader", | |
| ], | |
| }, | |
| { | |
| event_stream: "capability_requested", | |
| from: "parent", | |
| to: "#archivist", | |
| }, | |
| { | |
| protocol: "fuchsia.diagnostics.ArchiveAccessor", | |
| from: "#archivist/diagnostics-accessors", | |
| to: "#reader", | |
| }, | |
| ], | |
| } |