| // 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: [ |
| "sys/testing/elf_test_runner.shard.cml", |
| "syslog/client.shard.cml", |
| ], |
| program: { |
| binary: "bin/hello_debian_verifier", |
| args: [ |
| "--collection", |
| "debian_children", |
| "--child-name", |
| "hello_debian32_cpp", |
| "--child-url", |
| "hello_debian32_cpp#meta/hello_debian32_cpp.cm", |
| "--expected-log", |
| "hello debian", |
| ], |
| }, |
| children: [ |
| { |
| name: "kernel", |
| url: "starnix_kernel#meta/starnix_kernel.cm", |
| }, |
| { |
| name: "debian_container", |
| url: "debian#meta/debian_container.cm", |
| environment: "#starnix_kernel_env", |
| }, |
| ], |
| collections: [ |
| { |
| name: "debian_children", |
| environment: "#debian_container_env", |
| durability: "single_run", |
| }, |
| ], |
| use: [ |
| { protocol: "fuchsia.diagnostics.ArchiveAccessor" }, |
| { |
| protocol: [ "fuchsia.component.Realm" ], |
| from: "framework", |
| }, |
| { |
| event_stream: [ "stopped" ], |
| }, |
| ], |
| offer: [ |
| { |
| protocol: [ |
| // 32-bit ld.so calls uname(). |
| "fuchsia.buildinfo.Provider", |
| "fuchsia.kernel.VmexResource", |
| ], |
| from: "parent", |
| to: "#kernel", |
| }, |
| { |
| directory: "boot-kernel", |
| from: "parent", |
| to: "#kernel", |
| }, |
| ], |
| environments: [ |
| { |
| name: "starnix_kernel_env", |
| extends: "realm", |
| runners: [ |
| { |
| runner: "starnix", |
| from: "#kernel", |
| }, |
| ], |
| }, |
| { |
| name: "debian_container_env", |
| extends: "realm", |
| runners: [ |
| { |
| runner: "starnix_container", |
| from: "#debian_container", |
| }, |
| ], |
| }, |
| ], |
| } |