[fuchsia][v8_unittests] migrate v8_unittests.cmx to .cml

Replace `v8_unittests.cmx` with `v8_unittests.cml`, thus migrating the
tests to CFv2.

Bug: chromium:1256503
Change-Id: Iab90b406973585a513bce5a1a0884860c7c88e90
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3826050
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Wez <wez@chromium.org>
Commit-Queue: Derek Gonyeo <dgonyeo@google.com>
Cr-Commit-Position: refs/heads/main@{#82692}
This commit is contained in:
Derek Gonyeo 2022-08-09 16:40:37 +02:00 committed by V8 LUCI CQ
parent 6a6f5de1a7
commit 8c8f65984a
3 changed files with 44 additions and 27 deletions

View File

@ -10,7 +10,7 @@ if (is_fuchsia) {
fuchsia_component("v8_unittests_component") {
testonly = true
data_deps = [ ":unittests" ]
manifest = "v8_unittests.cmx"
manifest = "v8_unittests.cml"
}
fuchsia_package("v8_unittests_pkg") {
@ -21,7 +21,6 @@ if (is_fuchsia) {
fuchsia_test_runner("v8_unittests_fuchsia") {
testonly = true
use_cfv2 = false
package = ":v8_unittests_pkg"
package_name = "v8_unittests"
}
@ -229,12 +228,12 @@ v8_source_set("unittests_sources") {
"../common/assembler-tester.h",
"../common/c-signature.h",
"../common/call-tester.h",
"../common/node-observer-tester.h",
"../common/scope-test-helper.h",
"../common/unicode-helpers.cc",
"../common/unicode-helpers.h",
"../common/value-helper.cc",
"../common/value-helper.h",
"../common/node-observer-tester.h",
"api/access-check-unittest.cc",
"api/accessor-unittest.cc",
"api/api-icu-unittest.cc",

View File

@ -0,0 +1,42 @@
// Copyright 2022 The Chromium 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: [
"syslog/client.shard.cml",
],
program: {
binary: "unittests",
runner: "elf_test_ambient_exec_runner",
},
capabilities: [
{ protocol: "fuchsia.test.Suite", },
],
expose: [
{
protocol: "fuchsia.test.Suite",
from: "self",
},
],
facets: {
"fuchsia.test": {
type: "chromium",
},
},
use: [
{
protocol: [
"fuchsia.kernel.VmexResource",
"fuchsia.process.Launcher",
],
},
{
storage: "data",
path: "/data",
},
{
storage: "tmp",
path: "/tmp",
},
],
}

View File

@ -1,24 +0,0 @@
{
"program": {
"binary": "unittests"
},
"facets": {
"fuchsia.test": {
"system-services": [
"fuchsia.kernel.VmexResource"
]
}
},
"sandbox": {
"features": [
"deprecated-ambient-replace-as-executable",
"isolated-persistent-storage",
"isolated-temp"
],
"services": [
"fuchsia.kernel.VmexResource",
"fuchsia.logger.LogSink",
"fuchsia.process.Launcher"
]
}
}