| # Copyright 2023 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. |
| |
| import("//build/components.gni") |
| import("//build/test.gni") |
| |
| group("tests") { |
| testonly = true |
| deps = [] |
| |
| # TODO: Enable this on ASAN once it supports shared processes. |
| if (!is_asan) { |
| deps += [ ":restricted-mode-shared-test" ] |
| } |
| } |
| |
| if (!is_asan) { |
| test("bin") { |
| output_name = "restricted-mode-shared-test" |
| sources = [ "restricted-mode-shared.cc" ] |
| |
| deps = [ |
| "restricted-blob", |
| "//src//zircon/tests/restricted-mode-shared/helpers", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_component("restricted-mode-shared") { |
| manifest = "meta/restricted-mode-shared-test.cml" |
| deps = [ ":bin" ] |
| test_type = "system" |
| } |
| |
| fuchsia_test_package("restricted-mode-shared-test") { |
| test_components = [ ":restricted-mode-shared" ] |
| } |
| } |