| # 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") |
| |
| group("test") { |
| testonly = true |
| deps = [ ":region-alloc" ] |
| } |
| |
| test("region-alloc") { |
| output_name = "region-alloc-test" |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ "region-alloc.cc" ] |
| deps = [ |
| "//sdk/lib/fdio", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/region-alloc", |
| ] |
| } |
| |
| fuchsia_unittest_package("region-alloc-test-pkg") { |
| package_name = "region-alloc-test" |
| executable_path = "test/region-alloc-test" |
| deps = [ ":region-alloc" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":region-alloc-test-pkg" ] |
| } |