| # 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 fxbug.dev/36139. # |
| ########################################## |
| |
| assert(!defined(zx) || zx != "/", |
| "This file can only be used in the Fuchsia GN build.") |
| |
| import("//build/test.gni") |
| import("//src/sys/build/fuchsia_unittest_package.gni") |
| |
| test("logger") { |
| output_name = "logger-test" |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ "test.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.logger:fuchsia.logger_c", |
| "//sdk/lib/fdio", |
| "//zircon/public/lib/async", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/fidl", |
| "//zircon/public/lib/zx", |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/async-default", |
| "//zircon/system/ulib/async-loop", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/logger", |
| "//zircon/system/ulib/syslog", |
| "//zircon/system/ulib/syslog:helpers", |
| ] |
| } |
| |
| fuchsia_unittest_package("logger-test-pkg") { |
| package_name = "logger-test" |
| executable_path = "test/logger-test" |
| deps = [ ":logger" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":logger-test-pkg" ] |
| } |