| // 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. |
| // |
| // |
| // The test realm uses this manifest shard to define a collection where all CTF |
| // tests run. Tests add themselves to the collection by declaring: |
| // |
| // fuchsia_test_component("test_component") { |
| // component_name = "test_component" |
| // manifest = "meta/test_component.cml" |
| // ... |
| // test_type = "ctf" |
| // } |
| // |
| { |
| collections: [ |
| { |
| name: "ctf-tests", |
| environment: "#test-env", |
| durability: "transient", |
| }, |
| ], |
| offer: [ |
| { |
| event_stream: [ "capability_requested" ], |
| from: "parent", |
| to: "#ctf-tests", |
| scope: "#ctf-tests", |
| }, |
| { |
| // These hermetic protocols are offered to be used by tests. |
| protocol: [ "fuchsia.logger.LogSink" ], |
| from: "parent", |
| to: [ "#ctf-tests" ], |
| }, |
| |
| // These system capabilities are offered for use by the ctf tests. |
| { |
| protocol: [ |
| // Used for hwinfo FCT tests. |
| "fuchsia.hwinfo.Board", |
| "fuchsia.hwinfo.Device", |
| "fuchsia.hwinfo.Product", |
| |
| // Used for intl settings FCT tests. |
| "fuchsia.intl.PropertyProvider", |
| |
| // Used for Vulkan CTF tests. |
| "fuchsia.media.ProfileProvider", |
| |
| // Used by DriverTestRealm and fdio tests. |
| "fuchsia.process.Launcher", |
| |
| // Used by the fdio tests |
| "fuchsia.process.Resolver", |
| |
| // Used for Flatland CTF tests. |
| "fuchsia.scheduler.RoleManager", |
| |
| // Used for intl settings FCT tests. |
| "fuchsia.settings.Intl", |
| |
| // Used for privacy settings FCT tests. |
| "fuchsia.settings.Privacy", |
| |
| // Used for Vulkan CTF tests. |
| "fuchsia.sysmem.Allocator", |
| "fuchsia.sysmem2.Allocator", |
| "fuchsia.tracing.provider.Registry", |
| "fuchsia.vulkan.loader.Loader", |
| ], |
| from: "parent", |
| to: "#ctf-tests", |
| }, |
| { |
| storage: "fxfs_tests_data", |
| from: "self", |
| as: "data", |
| to: [ "#ctf-tests" ], |
| rights: [ "rw*" ], |
| }, |
| { |
| storage: "tmp", |
| from: "self", |
| to: [ "#ctf-tests" ], |
| }, |
| { |
| storage: "cache", |
| from: "self", |
| to: [ "#ctf-tests" ], |
| }, |
| { |
| protocol: "fuchsia.inspect.InspectSink", |
| from: "parent", |
| to: [ "#ctf-tests" ], |
| }, |
| ], |
| } |