| // Copyright 2022 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: [ |
| // Tests can produce trace. |
| "trace/client.shard.cml", |
| ], |
| collections: [ |
| { |
| name: "devices-tests", |
| environment: "#legacy-test-env", |
| durability: "transient", |
| }, |
| ], |
| offer: [ |
| { |
| // These hermetic capabilities are offered to be used by tests. |
| protocol: [ |
| // Tests can write to debug logs |
| "fuchsia.boot.WriteOnlyLog", |
| "fuchsia.logger.LogSink", |
| "fuchsia.process.Launcher", |
| "fuchsia.vulkan.loader.Loader", |
| ], |
| from: "parent", |
| to: [ "#devices-tests" ], |
| }, |
| { |
| // Used by the device enumeration tests. |
| protocol: [ |
| "fuchsia.driver.development.DriverDevelopment", |
| "fuchsia.sysinfo.SysInfo", |
| ], |
| from: "parent", |
| to: [ "#devices-tests" ], |
| }, |
| { |
| event_stream: [ |
| "capability_requested", |
| "directory_ready", |
| ], |
| from: "parent", |
| to: "#devices-tests", |
| scope: "#devices-tests", |
| }, |
| { |
| storage: [ |
| "cache", |
| "data", |
| "tmp", |
| ], |
| from: "self", |
| to: [ "#devices-tests" ], |
| }, |
| { |
| directory: [ |
| "dev-class", |
| "dev-topological", |
| ], |
| from: "parent", |
| to: "#devices-tests", |
| }, |
| ], |
| } |