| # 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") |
| |
| fuchsia_unittest_package("fzl-zxtest-unittest-package") { |
| executable_path = "test/fzl-zxtest-test" |
| deps = [ ":fzl-zxtest" ] |
| } |
| |
| fuchsia_unittest_package("fzl-unittest-package") { |
| executable_path = "test/fzl-test" |
| deps = [ ":fzl" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":fzl-unittest-package", |
| ":fzl-zxtest-unittest-package", |
| ] |
| } |
| |
| test("fzl-zxtest") { |
| output_name = "fzl-zxtest-test" |
| sources = [ |
| "pinned-vmo-tests.cc", |
| "vmo-pool-tests.cc", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.io:fuchsia.io_c", |
| "//sdk/lib/fdio", |
| "//src/devices/testing/fake-bti", |
| "//zircon/public/lib/async", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/fbl", |
| "//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/fzl", |
| "//zircon/system/ulib/memfs", |
| ] |
| } |
| |
| test("fzl") { |
| output_name = "fzl-test" |
| sources = [ |
| "fzl-test.cc", |
| "memory_probe_tests.cc", |
| "owned-vmo-mapper-tests.cc", |
| "resizeable-vmo-mapper-tests.cc", |
| "vmo-probe.cc", |
| "vmo-vmar-tests.cc", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.io:fuchsia.io_c", |
| "//sdk/lib/fdio", |
| "//zircon/public/lib/async", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/sync", |
| "//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/fzl", |
| "//zircon/system/ulib/memfs", |
| ] |
| } |