blob: 1d61f75d6043313228f642a042e5c74053131847 [file] [log] [blame]
# 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 = [ ":region-alloc" ]
}
test("region-alloc") {
output_name = "region-alloc-test"
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [
"region-alloc-c-api.c",
"region-alloc.cc",
]
deps = [
"//sdk/lib/fdio",
"//zircon/public/lib/fbl",
"//zircon/public/lib/region-alloc",
"//zircon/public/lib/zxtest",
]
}
unittest_package("region-alloc-package") {
package_name = "region-alloc"
deps = [ ":region-alloc" ]
tests = [
{
name = "region-alloc-test"
},
]
}