blob: 86c4d3c161fdef1d94e514d37d3cc1e4c595e3fd [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.
// Add test_manager to core
{
children: [
{
name: "test_manager",
url: "fuchsia-pkg://fuchsia.com/test_manager#meta/test_manager.cm",
environment: "#core-env",
},
],
offer: [
// Needed by test_manager and/or some test runners
{
directory: "dev-builtin",
from: "parent",
to: "#test_manager",
},
{
protocol: [
"fuchsia.boot.ReadOnlyLog",
"fuchsia.boot.SvcStashProvider",
"fuchsia.boot.WriteOnlyLog",
"fuchsia.diagnostics.ArchiveAccessor",
"fuchsia.diagnostics.FeedbackArchiveAccessor",
"fuchsia.diagnostics.LegacyMetricsArchiveAccessor",
"fuchsia.inspect.InspectSink",
"fuchsia.kernel.HypervisorResource",
"fuchsia.kernel.MmioResource",
"fuchsia.kernel.Stats",
"fuchsia.kernel.VmexResource",
"fuchsia.logger.Log",
"fuchsia.logger.LogSink",
"fuchsia.sysinfo.SysInfo",
],
from: "parent",
to: "#test_manager",
},
{
event_stream: [
"capability_requested",
"debug_started",
"destroyed",
"discovered",
"started",
"stopped",
],
from: "parent",
to: "#test_manager",
scope: "#test_manager",
},
// From optional core components
{
protocol: [
"fuchsia.media.Audio",
"fuchsia.media.AudioDeviceEnumerator",
"fuchsia.media.ProfileProvider",
],
from: "#audio_core",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: "fuchsia.factory.WeaveFactoryStoreProvider",
from: "#factory_store_providers",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: [
"fuchsia.feedback.ComponentDataRegister",
"fuchsia.feedback.CrashReporter",
"fuchsia.feedback.CrashReportingProductRegister",
],
from: "#feedback",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: "fuchsia.web.ContextProvider",
from: "#context_provider",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: [ "fuchsia.media.drm.Widevine" ],
from: "#widevine_cdm",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: "fuchsia.component.resolution.Resolver",
from: "#full-resolver",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: "fuchsia.intl.PropertyProvider",
from: "#intl",
to: "#test_manager",
source_availability: "unknown",
},
{
storage: "data",
from: "self",
to: "#test_manager",
},
{
protocol: [ "fuchsia.tracing.controller.Controller" ],
from: "#trace_manager",
to: "#test_manager",
source_availability: "unknown",
},
// Test realms may offer subdirectories of config-data to test
// components. See:
// https://fuchsia.dev/fuchsia-src/development/components/data#product-specific_configuration_with_config_data
{
directory: "config-data",
from: "parent",
to: "#test_manager",
},
{
protocol: "fuchsia.fonts.Provider",
from: "#font_provider",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: "fuchsia.exception.Handler",
from: "#exceptions",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: [
"fuchsia.hwinfo.Board",
"fuchsia.hwinfo.Device",
"fuchsia.hwinfo.Product",
],
from: "#hwinfo",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: "fuchsia.memorypressure.Provider",
from: "#memory_monitor",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: [ "fuchsia.settings.Display" ],
from: "#setui_service",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: [
"fuchsia.sysmem.Allocator",
"fuchsia.sysmem2.Allocator",
],
from: "parent",
to: "#test_manager",
source_availability: "unknown",
},
{
// TODO(https://fxbug.dev/42058885): After removing "weak" from the block
// below, merge them together
protocol: [
"fuchsia.accessibility.semantics.SemanticsManager",
"fuchsia.input.virtualkeyboard.ControllerCreator",
"fuchsia.ui.input3.Keyboard",
"fuchsia.ui.scenic.Scenic",
],
from: "#ui",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: [
"fuchsia.ui.composition.Allocator",
"fuchsia.ui.composition.Flatland",
],
from: "#ui",
to: "#test_manager",
// TODO(https://fxbug.dev/42058885): break the cycle, then merge the 2 blocks
dependency: "weak",
source_availability: "unknown",
},
{
protocol: [ "fuchsia.element.GraphicalPresenter" ],
from: "#ui",
to: "#test_manager",
availability: "optional",
source_availability: "unknown",
},
{
protocol: "fuchsia.vulkan.loader.Loader",
from: "#vulkan_loader",
to: "#test_manager",
source_availability: "unknown",
},
{
protocol: "fuchsia.mediacodec.CodecFactory",
from: "#codec_factory",
to: "#test_manager",
source_availability: "unknown",
},
// Needed by some non-hermetic tests
{
protocol: [
"fuchsia.boot.RootResource",
"fuchsia.device.NameProvider",
"fuchsia.kernel.CpuResource",
"fuchsia.kernel.DebugResource",
"fuchsia.kernel.EnergyInfoResource",
"fuchsia.kernel.FramebufferResource",
"fuchsia.kernel.InfoResource",
"fuchsia.kernel.IommuResource",
"fuchsia.kernel.IoportResource",
"fuchsia.kernel.IrqResource",
"fuchsia.kernel.MexecResource",
"fuchsia.kernel.MsiResource",
"fuchsia.kernel.PowerResource",
"fuchsia.kernel.ProfileResource",
"fuchsia.kernel.RootJob",
"fuchsia.kernel.RootJobForInspect",
"fuchsia.kernel.SmcResource",
"fuchsia.kernel.Stats",
"fuchsia.process.Launcher",
"fuchsia.scheduler.deprecated.ProfileProvider",
"fuchsia.scheduler.RoleManager",
],
from: "parent",
to: "#test_manager",
},
{
directory: "boot",
from: "parent",
to: "#test_manager",
},
{
protocol: "fuchsia.buildinfo.Provider",
from: "#build-info",
to: "#test_manager",
},
{
directory: "dev-class",
from: "parent",
as: "dev-display-coordinator",
to: "#test_manager",
subdir: "display-coordinator",
},
{
directory: "dev-class",
from: "parent",
as: "dev-mediacodec",
to: "#test_manager",
subdir: "media-codec",
},
{
directory: "dev-class",
from: "parent",
as: "dev-goldfish-address-space",
to: "#test_manager",
subdir: "goldfish-address-space",
},
{
directory: "dev-class",
from: "parent",
as: "dev-goldfish-control",
to: "#test_manager",
subdir: "goldfish-control",
},
{
directory: "dev-class",
from: "parent",
as: "dev-goldfish-pipe",
to: "#test_manager",
subdir: "goldfish-pipe",
},
{
directory: "dev-class",
from: "parent",
as: "dev-goldfish-sync",
to: "#test_manager",
subdir: "goldfish-sync",
},
{
directory: "dev-class",
from: "parent",
as: "dev-gpu",
to: "#test_manager",
subdir: "gpu",
},
{
directory: "dev-class",
from: "parent",
as: "dev-gpu-performance-counters",
to: "#test_manager",
subdir: "gpu-performance-counters",
},
{
directory: "dev-class",
from: "parent",
as: "dev-audio-input",
to: "#test_manager",
subdir: "audio-input",
},
{
directory: "dev-class",
from: "parent",
as: "dev-audio-output",
to: "#test_manager",
subdir: "audio-output",
},
{
directory: "dev-class",
from: "parent",
as: "dev-dai",
to: "#test_manager",
subdir: "dai",
},
{
directory: "dev-class",
from: "parent",
as: "dev-composite",
to: "#test_manager",
subdir: "audio-composite",
},
{
directory: "dev-class",
from: "parent",
as: "dev-input",
to: "#test_manager",
subdir: "input",
},
{
directory: "dev-class",
from: "parent",
as: "dev-input-report",
to: "#test_manager",
subdir: "input-report",
},
{
directory: "dev-class",
from: "parent",
as: "dev-tee",
to: "#test_manager",
subdir: "tee",
},
{
directory: "dev-class",
from: "parent",
as: "dev-securemem",
to: "#test_manager",
subdir: "securemem",
},
// Tests of the media system want to test against the real hardware
// TODO(https://fxbug.dev/42164198): Remove when specialized test realms are ready.
{
directory: "dev-class",
from: "parent",
as: "dev-mediacodec",
to: "#test_manager",
subdir: "media-codec",
},
{
directory: "dev-class",
from: "parent",
as: "dev-sysmem",
to: "#test_manager",
subdir: "sysmem",
},
{
directory: "root-ssl-certificates",
from: "parent",
to: "#test_manager",
},
// Tests of the media system change their behavior based on board
// TODO(https://fxbug.dev/42164198): Remove when specialized test realms are ready.
{
protocol: "fuchsia.sysinfo.SysInfo",
from: "parent",
to: "#test_manager",
},
// Needed for //src/cobalt/bin/meta/cobalt_testapp_for_prober_do_not_run_manually.cml
// and chromium realm.
// TODO(https://fxbug.dev/42163671): Remove once e2e is better supported.
{
protocol: [
"fuchsia.net.http.Loader",
"fuchsia.net.interfaces.State",
"fuchsia.net.name.Lookup",
],
from: "#network",
to: "#test_manager",
},
// Needed by Chromium and Dart + Flutter runners
{
protocol: "fuchsia.posix.socket.Provider",
from: "#network",
to: "#test_manager",
},
// Profiling tests need access to the ktrace data
{
protocol: [
"fuchsia.kernel.Counter",
"fuchsia.tracing.kernel.Controller",
"fuchsia.tracing.kernel.Reader",
],
from: "parent",
to: "#test_manager",
availability: "same_as_target",
},
{
directory: "dev-topological",
from: "parent",
as: "sys",
to: "#test_manager",
subdir: "sys",
},
// ICU timezone data
{
directory: [
// `tzdata-icu` offers /config/tzdata/icu.
// `tzdata-icu-44-le` offers /config/tzdata/icu/44/le only.
"tzdata-icu",
"tzdata-icu-44-le",
],
from: "#tzdata-provider",
to: "#test_manager",
},
{
storage: "tmp",
from: "self",
to: "#test_manager",
},
],
}