crashpad/test/fuchsia_crashpad_tests.cml
Alex Pankhurst 6c6c2ae563 [fuchsia] migrate test to CFv2
Fuchsia is undergoing a change to how programs are run and the Crashpad
tests must be migrated to the new system.

Bug: fuchsia:102371

TESTED=`fx test crashpad-test` (540 passing, 1 skipped)

Change-Id: I4daf7d160045b28b876a5f1aa93b0bd596461e0d
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3817783
Commit-Queue: Alex Pankhurst <pankhurst@google.com>
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
2022-08-08 19:03:20 +00:00

84 lines
2.0 KiB
Plaintext

// 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.
{
include: [
"//src/sys/test_runners/elf/ambient_exec.shard.cml",
"syslog/client.shard.cml",
],
program: {
binary: "bin/crashpad_tests",
// For ProcessSnapshotFuchsiaTest.AddressSpaceMapping.
job_policy_ambient_mark_vmo_exec: "true",
},
children: [
{
name: "dns_resolver",
url: "#meta/dns_resolver.cm",
},
{
name: "netstack",
url: "#meta/netstack.cm",
},
{
name: "crashpad_test",
url: "#meta/crashpad_test.cm",
},
],
use: [
{
protocol: [ "fuchsia.net.name.Lookup" ],
from: "#dns_resolver",
},
{
protocol: [ "fuchsia.posix.socket.Provider" ],
from: "#netstack",
},
{
protocol: [ "fuchsia.process.Launcher" ],
},
{
storage: "tmp",
path: "/tmp",
},
],
offer: [
{
protocol: "fuchsia.logger.LogSink",
from: "parent",
to: [
"#crashpad_test",
"#dns_resolver",
"#netstack",
]
},
{
protocol: "fuchsia.net.name.Lookup",
from: "#dns_resolver",
to: "#crashpad_test",
},
{
protocol: "fuchsia.net.routes.State",
from: "#netstack",
to: "#dns_resolver",
},
{
protocol: "fuchsia.posix.socket.Provider",
from: "#netstack",
to: "#crashpad_test",
},
{
storage: "cache",
from: "parent",
to: [ "#netstack" ],
},
{
storage: "tmp",
from: "parent",
to: "#crashpad_test",
rights: [ "rw*" ],
},
],
}