blob: 498503ae51fac8e8c1caa8f3ac5c3c5302440a6f [file] [log] [blame]
{
program: {
// TODO(fxbug.dev/80338): Switch to gtest_runner after the filters in
// `gtest_filters.yaml` are supported by `--test-filter` and
// deprecated-ambient-replace-as-executable is available.
// Equivalent to the "deprecated-ambient-replace-as-executable" sandbox
// feature in cfv1.
runner: "elf_test_ambient_exec_runner",
binary: "bin/app",
// Part of //sdk/lib/diagnostics/syslog/elf_stdio.shard.cml.
forward_stderr_to: "log",
forward_stdout_to: "log",
},
capabilities: [
{ protocol: "fuchsia.test.Suite" },
],
expose: [
{
protocol: "fuchsia.test.Suite",
from: "self",
},
],
use: [
{
protocol: [
"fuchsia.logger.LogSink",
"fuchsia.process.Launcher",
"fuchsia.tracing.provider.Registry",
"fuchsia.vulkan.loader.Loader",
],
},
{
storage: "cache",
path: "/cache",
},
{
storage: "tmp",
path: "/tmp",
},
// The following lines are equivalent to the "vulkan" sandbox feature in
// cfv1.
// TODO(fxbug.dev/79792): Remove after vulkan cml shard is available in
// the fuchsia sdk.
{
directory: "dev-gpu",
rights: [ "rw*" ],
path: "/dev/class/gpu",
},
{
directory: "dev-goldfish-address-space",
rights: [ "rw*" ],
path: "/dev/class/goldfish-address-space",
},
{
directory: "dev-goldfish-control",
rights: [ "rw*" ],
path: "/dev/class/goldfish-control",
},
{
directory: "dev-goldfish-pipe",
rights: [ "rw*" ],
path: "/dev/class/goldfish-pipe",
},
{
directory: "dev-goldfish-sync",
rights: [ "rw*" ],
path: "/dev/class/goldfish-sync",
},
],
}