diff --git a/test/unittests/BUILD.gn b/test/unittests/BUILD.gn index c4c16a17a4..2250a5f1ba 100644 --- a/test/unittests/BUILD.gn +++ b/test/unittests/BUILD.gn @@ -7,11 +7,16 @@ import("../../gni/v8.gni") if (is_fuchsia) { import("//build/config/fuchsia/rules.gni") - cr_fuchsia_package("v8_unittests_pkg") { + fuchsia_component("v8_unittests_component") { testonly = true - binary = ":unittests" - manifest = "../../gni/v8.cmx" - package_name_override = "v8_unittests" + data_deps = [ ":unittests" ] + manifest = "v8_unittests.cmx" + } + + fuchsia_package("v8_unittests_pkg") { + testonly = true + package_name = "v8_unittests" + deps = [ ":v8_unittests_component" ] } fuchsia_test_runner("v8_unittests_fuchsia") { diff --git a/test/unittests/v8_unittests.cmx b/test/unittests/v8_unittests.cmx new file mode 100644 index 0000000000..3ab039d715 --- /dev/null +++ b/test/unittests/v8_unittests.cmx @@ -0,0 +1,24 @@ +{ + "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" + ] + } +}