blob: cda55d06db21756ea8d15e18ada6c2a3003a0c83 [file] [log] [blame]
// Copyright 2021 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.
{
include: [
"inspect/client.shard.cml",
"syslog/client.shard.cml",
],
program: {
runner: "elf",
binary: "bin/fake_resolver",
},
capabilities: [
{ protocol: "fuchsia.driver.test.DriverLists" },
{
protocol: "fuchsia.component.resolution.Resolver-base",
path: "/svc/fuchsia.component.resolution.Resolver",
},
{
protocol: "fuchsia.component.resolution.Resolver-boot",
path: "/svc/fuchsia.component.resolution.Resolver",
},
{
protocol: "fuchsia.component.resolution.Resolver-full",
path: "/svc/fuchsia.component.resolution.Resolver",
},
{
resolver: "boot-resolver",
path: "/svc/fuchsia.component.resolution.Resolver",
},
{
resolver: "pkg-resolver",
path: "/svc/fuchsia.component.resolution.Resolver",
},
{
resolver: "test-pkg-resolver",
path: "/svc/fuchsia.component.resolution.Resolver",
},
],
use: [
// Use the test manager's hermetic resolver to find subpackages and service resolver
// requests in the test realm.
{
protocol: "fuchsia.component.resolution.Resolver-hermetic",
availability: "optional",
},
{
protocol: "fuchsia.pkg.PackageResolver-hermetic",
availability: "optional",
},
// Uses this to get access to the boot and base directories the test wants to use.
{ protocol: "fuchsia.driver.test.Internal" },
],
expose: [
{
resolver: "boot-resolver",
from: "self",
},
{
resolver: "pkg-resolver",
from: "self",
},
{
resolver: "test-pkg-resolver",
from: "self",
},
{
protocol: "fuchsia.driver.test.DriverLists",
from: "self",
},
{
protocol: "fuchsia.component.resolution.Resolver-base",
from: "self",
},
{
protocol: "fuchsia.component.resolution.Resolver-boot",
from: "self",
},
{
protocol: "fuchsia.component.resolution.Resolver-full",
from: "self",
},
],
}