| // 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. |
| { |
| include: [ "//src/sys/testing/meta/test-memfs.shard.cml" ], |
| collections: [ |
| { |
| name: "test-arch-tests", |
| environment: "#test-env", |
| durability: "transient", |
| }, |
| ], |
| offer: [ |
| { |
| // Tests are permitted to use /dev/null and /dev/zero. |
| directory: "dev-builtin", |
| from: "parent", |
| to: [ "#test-arch-tests" ], |
| }, |
| { |
| protocol: [ |
| // Tests can write to debug logs |
| "fuchsia.boot.WriteOnlyLog", |
| "fuchsia.process.Launcher", |
| |
| // Tests can produce trace. |
| "fuchsia.tracing.provider.Registry", |
| ], |
| from: "parent", |
| to: [ "#test-arch-tests" ], |
| }, |
| { |
| event_stream: [ |
| "capability_requested", |
| "debug_started", |
| "destroyed", |
| "discovered", |
| "started", |
| "stopped", |
| ], |
| from: "parent", |
| to: "#test-arch-tests", |
| scope: "#test-arch-tests", |
| }, |
| |
| // These capabilities are offered for use by certain non-hermetic tests. |
| { |
| // update https://fuchsia.dev/fuchsia-src/concepts/testing/v2/test_runner_framework#legacy_non-hermetic_tests |
| // when this list is updated. |
| protocol: [ |
| // TODO(https://fxbug.dev/42167477): Remove this once we have facet API. |
| "fuchsia.component.resolution.Resolver", |
| ], |
| from: "parent", |
| to: "#test-arch-tests", |
| }, |
| { |
| protocol: "fuchsia.diagnostics.ArchiveAccessor", |
| from: "parent", |
| as: "fuchsia.diagnostics.RealArchiveAccessor", |
| to: [ "#test-arch-tests" ], |
| }, |
| { |
| storage: "fxfs_tests_data", |
| from: "self", |
| as: "data", |
| to: [ "#test-arch-tests" ], |
| rights: [ "rw*" ], |
| }, |
| { |
| storage: "cache", |
| from: "self", |
| to: [ "#test-arch-tests" ], |
| }, |
| { |
| directory: "boot", |
| from: "parent", |
| to: [ "#test-arch-tests" ], |
| rights: [ "rx*" ], |
| }, |
| { |
| storage: "tmp", |
| from: "self", |
| to: [ "#test-arch-tests" ], |
| }, |
| { |
| protocol: "fuchsia.inspect.InspectSink", |
| from: "parent", |
| to: [ "#test-arch-tests" ], |
| }, |
| ], |
| } |