| # 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. |
| |
| ########################################## |
| # Though under //zircon, this build file # |
| # is meant to be used in the Fuchsia GN # |
| # build. # |
| # See fxb/36139. # |
| ########################################## |
| |
| assert(!defined(zx) || zx != "/", |
| "This file can only be used in the Fuchsia GN build.") |
| |
| import("//build/test.gni") |
| import("//build/test/test_package.gni") |
| |
| group("test") { |
| testonly = true |
| deps = [ ":debugdata" ] |
| } |
| |
| test("debugdata") { |
| if (is_fuchsia) { |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| } |
| sources = [ "debugdata.cc" ] |
| deps = [ |
| "//zircon/public/lib/async-loop-cpp", |
| "//zircon/public/lib/async-loop-default", |
| "//zircon/public/lib/fidl-async-cpp", |
| "//zircon/public/lib/fs", |
| "//zircon/public/lib/zx", |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/debugdata", |
| ] |
| } |
| |
| unittest_package("debugdata-package") { |
| package_name = "debugdata" |
| deps = [ ":debugdata" ] |
| |
| tests = [ |
| { |
| name = "debugdata" |
| dest = "debugdata-test" |
| }, |
| ] |
| } |