blob: 3ce4bde48da11e9fabdee9287fa6353773cf7b61 [file]
// Copyright 2024 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: [
"//src/sys/testing/meta/bootstrap-test-memfs.shard.cml",
"//src/sys/testing/meta/runners/bootstrap-test-runners.shard.cml",
"inspect/client.shard.cml",
"sys/component/realm_builder.shard.cml",
"syslog/client.shard.cml",
"trace/client.shard.cml",
],
program: {
runner: "elf",
binary: "bin/test_manager",
args: [ "test_manager_for_bootstrap.cm" ],
lifecycle: { stop_event: "notify" },
},
children: [
{
name: "debug_data",
url: "#meta/debug_data_processor.cm",
},
{
name: "rust_test_runner",
url: "#meta/rust-test-runner.cm",
},
],
collections: [
{
name: "tests",
environment: "#test-env",
durability: "transient",
},
{
name: "system-tests",
environment: "#test-env",
durability: "transient",
},
],
capabilities: [
{ protocol: "fuchsia.test.manager.TestCaseEnumerator" },
{ protocol: "fuchsia.test.manager.SuiteRunner" },
],
use: [
{
protocol: "fuchsia.component.Realm",
from: "framework",
},
// TODO(https://fxbug.dev/42167477): Clean this up
{ protocol: "fuchsia.component.resolution.Resolver" },
{
protocol: "fuchsia.test.debug.DebugDataProcessor",
from: "#debug_data",
},
{
storage: "tmp",
rights: [ "rw*" ],
path: "/tmp",
},
],
offer: [
{
// Tests are permitted to use /dev/null and /dev/zero.
directory: "dev-builtin",
from: "parent",
to: [ "#tests" ],
},
{
protocol: [ "fuchsia.vulkan.loader.Loader" ],
from: "parent",
to: [ "#system-tests" ],
},
{
service: [
"fuchsia.gpu.magma.PerformanceCounterService",
"fuchsia.gpu.magma.PowerService",
"fuchsia.gpu.magma.Service",
"fuchsia.gpu.magma.TrustedService",
],
from: "parent",
to: [ "#system-tests" ],
},
{
protocol: [
// Tests can write to debug logs
"fuchsia.boot.WriteOnlyLog",
"fuchsia.process.Launcher",
],
from: "parent",
to: [ "#tests" ],
},
{
event_stream: [
"capability_requested",
"debug_started",
"destroyed",
"discovered",
"started",
"stopped",
],
from: "parent",
to: "#tests",
scope: "#tests",
},
{
storage: "tests_data",
from: "self",
as: "data",
to: [ "#tests" ],
rights: [ "rw*" ],
},
{
storage: "tmp",
from: "self",
to: [ "#tests" ],
},
{
storage: "cache",
from: "self",
to: [ "#tests" ],
},
{
dictionary: "diagnostics",
from: "parent",
to: "#system-tests",
},
{
protocol: "fuchsia.process.Launcher",
from: "parent",
to: "#rust_test_runner",
},
{
protocol: "fuchsia.test.runner.LibraryLoaderCacheBuilder",
from: "#lib_loader_cache",
to: "#rust_test_runner",
},
{
storage: "memfs_data",
from: "self",
as: "data",
to: "#rust_test_runner",
},
],
expose: [
{
protocol: "fuchsia.test.manager.TestCaseEnumerator",
from: "self",
},
{
protocol: "fuchsia.test.manager.SuiteRunner",
from: "self",
},
],
environments: [
{
name: "test-env",
extends: "realm",
runners: [
{
runner: "elf_test_runner",
from: "#elf_test_runner",
},
{
runner: "gtest_runner",
from: "#gtest_runner",
},
{
runner: "rust_test_runner",
from: "#rust_test_runner",
},
{
runner: "realm_builder",
from: "#realm_builder_server",
},
{
runner: "zxtest_runner",
from: "#zxtest_runner",
},
],
resolvers: [
{
resolver: "realm_builder_resolver",
from: "#realm_builder_server",
scheme: "realm-builder",
},
],
// TODO(https://fxbug.dev/87330): We need more time to collect logs
// on coverage bots. Remove this one we have single archivist for
// all tests.
__stop_timeout_ms: 30000,
},
],
}