| // Copyright 2023 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. |
| |
| // Tests that a component can be launched in an arbitrary realm. |
| // In this test we will launch it inside child_realm. |
| { |
| include: [ |
| "//src/sys/test_runners/rust/default.shard.cml", |
| "inspect/offer.shard.cml", |
| ], |
| program: { |
| binary: "bin/arbitrary_realm_test_bin", |
| }, |
| children: [ |
| { |
| name: "child_realm", |
| url: "#meta/child_realm_with_realmbuilder.cm", |
| }, |
| ], |
| use: [ |
| { |
| protocol: "fuchsia.component.Realm", |
| from: "#child_realm", |
| }, |
| { protocol: "fuchsia.logger.LogSink" }, |
| ], |
| offer: [ |
| { |
| protocol: "fuchsia.logger.LogSink", |
| from: "parent", |
| to: [ "#child_realm" ], |
| }, |
| ], |
| } |