blob: 1cec0e72044aca0566b5025cea92488ab6d2f18a [file] [log] [blame]
// 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.
{
collections: [
{
name: "starnix-tests",
environment: "#test-env",
durability: "transient",
},
],
offer: [
{
// Tests are permitted to use /dev/null and /dev/zero.
directory: "dev-builtin",
from: "parent",
to: [ "#starnix-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: [ "#starnix-tests" ],
},
{
event_stream: [
"capability_requested",
"debug_started",
"destroyed",
"discovered",
"started",
"stopped",
],
from: "parent",
to: "#starnix-tests",
scope: "#starnix-tests",
},
{
protocol: [
"fuchsia.buildinfo.Provider",
"fuchsia.kernel.CpuResource",
"fuchsia.kernel.Stats",
"fuchsia.kernel.VmexResource",
"fuchsia.sysinfo.SysInfo",
"fuchsia.sysmem.Allocator",
"fuchsia.sysmem2.Allocator",
"fuchsia.tracing.controller.Controller",
"fuchsia.vulkan.loader.Loader",
],
from: "parent",
to: "#starnix-tests",
},
{
directory: "dev-gpu",
from: "parent",
to: [ "#starnix-tests" ],
rights: [ "r*" ],
},
{
// TODO(https://fxbug.dev/304290346): In an ideal world, we would
// mock bluetooth hardware in tests.
directory: "dev-class",
from: "parent",
as: "dev-bt-hci",
to: [ "#starnix-tests" ],
subdir: "bt-hci",
},
{
storage: "fxfs_tests_data",
from: "self",
as: "data",
to: [ "#starnix-tests" ],
rights: [ "rw*" ],
},
{
storage: "cache",
from: "self",
to: [ "#starnix-tests" ],
},
{
storage: "tmp",
from: "self",
to: [ "#starnix-tests" ],
},
{
protocol: "fuchsia.inspect.InspectSink",
from: "parent",
to: [ "#starnix-tests" ],
},
],
}