blob: 4d434460fc72813cfb1f1074a9d6c053b8693b48 [file] [edit]
// 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",
"directory_ready",
"discovered",
"started",
"stopped",
],
from: "parent",
to: "#starnix-tests",
scope: "#starnix-tests",
},
{
protocol: [
"fuchsia.kernel.Stats",
"fuchsia.kernel.VmexResource",
"fuchsia.sysinfo.SysInfo",
"fuchsia.sysmem.Allocator",
"fuchsia.sysmem2.Allocator",
"fuchsia.vulkan.loader.Loader",
],
from: "parent",
to: "#starnix-tests",
},
{
directory: "dev-gpu",
from: "parent",
to: [ "#starnix-tests" ],
rights: [ "r*" ],
},
{
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" ],
},
],
}