| // Copyright 2024 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: [ "syslog/offer.shard.cml" ], |
| children: [ |
| { |
| name: "elf_runner", |
| url: "fuchsia-builtin://#elf_runner.cm", |
| }, |
| |
| // We'd like this test to use the real package resolver. RealmBuilder's resolver is |
| // the only one installed in the parent environment, so we need to create our own |
| // instance of the fuchsia-pkg component resolver. |
| { |
| name: "full-resolver", |
| url: "#meta/loopback_resolver.cm", |
| environment: "#elf-env", |
| }, |
| ], |
| collections: [ |
| { |
| name: "coll", |
| environment: "#full-env", |
| durability: "transient", |
| }, |
| ], |
| offer: [ |
| { |
| protocol: "fuchsia.process.Launcher", |
| from: "parent", |
| to: "#elf_runner", |
| }, |
| { |
| protocol: "fuchsia.component.resolution.Resolver", |
| from: "parent", |
| to: "#full-resolver", |
| }, |
| ], |
| expose: [ |
| // Allows the test to launch components |
| { |
| protocol: "fuchsia.component.Realm", |
| from: "framework", |
| }, |
| ], |
| environments: [ |
| { |
| name: "elf-env", |
| extends: "realm", |
| runners: [ |
| { |
| runner: "elf", |
| from: "#elf_runner", |
| }, |
| ], |
| }, |
| { |
| name: "full-env", |
| extends: "realm", |
| runners: [ |
| { |
| runner: "elf", |
| from: "#elf_runner", |
| }, |
| ], |
| resolvers: [ |
| { |
| resolver: "resolver", |
| from: "#full-resolver", |
| scheme: "fuchsia-pkg", |
| }, |
| ], |
| }, |
| ], |
| } |