blob: 887148e28948576dba0ce692cafababdd63a9edb [file] [log] [blame]
// 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.
{
// This component runs unit tests for the starnix runner. This is very similar to the normal
// rust test runner, but with a few additional capabilities that the starnix runner needs.
include: [
"//src/sys/test_runners/lib.shard.cml",
"syslog/client.shard.cml",
],
program: {
runner: "elf",
binary: "bin/rust_test_runner",
job_policy_create_raw_processes: "true",
use_next_vdso: "true",
},
capabilities: [
{
runner: "starnix_unit_test_runner",
path: "/svc/fuchsia.component.runner.ComponentRunner",
},
],
use: [
{
storage: "data",
path: "/data",
},
{
protocol: [
"fuchsia.kernel.VmexResource",
"fuchsia.process.Launcher",
],
},
],
expose: [
{
runner: "starnix_unit_test_runner",
from: "self",
},
],
}