| // Copyright 2026 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: [ |
| "//sdk/lib/sys/component/realm_builder_no_diagnostics.shard.cml", |
| "//src/sys/test_runners/rust/default.shard.cml", |
| "syslog/use.shard.cml", |
| |
| // We can't include |
| // //sdk/lib/driver_test_realm/realm_builder/client.shard.cml because |
| // it includes diagnostics routes that would conflict with the custom |
| // ones in this file |
| ], |
| program: { |
| binary: "bin/log_driver_integration_test", |
| }, |
| children: [ |
| // from sdk/lib/driver_test_realm |
| { |
| name: "manifest_provider", |
| url: "#meta/manifest_provider.cm", |
| }, |
| |
| // This is a static child instead of part of the driver test realm |
| // because it's not trivial to embed archivist or intercept the |
| // default diagnostics route in a driver test realm. |
| { |
| name: "archivist", |
| url: "archivist-for-embedding#meta/archivist-for-embedding.cm", |
| }, |
| ], |
| capabilities: [ |
| { dictionary: "diagnostics" }, |
| ], |
| use: [ |
| // from sdk/lib/driver_test_realm |
| { |
| protocol: "fuchsia.driver.test.ManifestProvider", |
| from: "#manifest_provider", |
| }, |
| { |
| protocol: "fuchsia.component.Realm", |
| from: "framework", |
| }, |
| ], |
| offer: [ |
| // from sdk/lib/driver_test_realm |
| { |
| protocol: [ |
| "fuchsia.component.resolution.Resolver-hermetic", |
| "fuchsia.pkg.PackageResolver-hermetic", |
| ], |
| from: "parent", |
| to: "#realm_builder", |
| }, |
| { |
| event_stream: "capability_requested", |
| from: "parent", |
| to: "#archivist", |
| }, |
| { |
| protocol: "fuchsia.logger.LogSink", |
| from: "#archivist", |
| to: "self/diagnostics", |
| }, |
| { |
| protocol: "fuchsia.inspect.InspectSink", |
| from: "parent", |
| to: "self/diagnostics", |
| }, |
| { |
| dictionary: "diagnostics", |
| |
| // Test driver will use our embedded log sink |
| from: "self", |
| to: "#realm_builder", |
| }, |
| { |
| dictionary: "diagnostics", |
| from: "parent", |
| to: [ |
| "#archivist", |
| "#manifest_provider", |
| "#realm_builder_server", |
| ], |
| }, |
| ], |
| } |