| # 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_c", |
| "//sdk/fidl/fuchsia.kernel:fuchsia.kernel_c", |
| "//sdk/lib/fdio", |
| "//zircon/system/ulib/fbl", |
| "//zircon/system/ulib/fzl", |
| "//zircon/system/ulib/test-exceptions", |
| "//zircon/system/ulib/zx", |
| "//zircon/system/ulib/zxtest", |
| ] |
| |
| # TODO(fxbug.dev/95833): This target uses the deprecated C bindings. |
| # Consider switching to the C++ bindings. See linked bug for details. |
| configs += [ "//build/c:fidl-deprecated-c-bindings" ] |
| } |
| |
| bootfs_test("zx-bootfs-test") { |
| name = "zx-test" |
| deps = [ ":zx" ] |
| } |
| |
| fuchsia_unittest_package("zx-test-package") { |
| deps = [ ":zx" ] |
| } |