| # Copyright 2019 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/fuchsia_unittest_package.gni") |
| import("//build/test.gni") |
| import("//build/testing/bootfs_test.gni") |
| |
| group("test") { |
| testonly = true |
| deps = [ ":zx" ] |
| } |
| |
| test("zx") { |
| output_name = "zx-test" |
| sources = [ |
| "object-test.cc", |
| "traits.cc", |
| "util.cc", |
| "util.h", |
| "zx-test.cc", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.boot:fuchsia.boot_cpp", |
| "//sdk/fidl/fuchsia.kernel:fuchsia.kernel_cpp", |
| "//sdk/lib/component/incoming/cpp", |
| "//sdk/lib/fdio", |
| "//zircon/system/ulib/fbl", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/test-exceptions", |
| "//zircon/system/ulib/zx", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| bootfs_test("zx-bootfs-test") { |
| name = "zx-test" |
| deps = [ ":zx" ] |
| } |
| |
| fuchsia_unittest_package("zx-test-package") { |
| deps = [ ":zx" ] |
| } |