blob: 39535c7d96907dede6f6c532734c1b860f48d324 [file] [log] [blame] [edit]
# 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 = [ ":range" ]
}
test("range") {
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [
"interval-tree-test.cc",
"range.cc",
]
deps = [
"//sdk/lib/fdio",
"//zircon/public/lib/fbl",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/range",
]
}
fuchsia_unittest_package("range-test-pkg") {
package_name = "range"
executable_path = "test/range"
deps = [ ":range" ]
}
group("tests") {
testonly = true
deps = [ ":range-test-pkg" ]
}