blob: e89ff165c5e655ded2a149968855ff6cb3ccc996 [file] [log] [blame]
# Copyright 2020 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.
import("//build/components.gni")
import("//build/test.gni")
group("test") {
testonly = true
deps = [ ":fdio-caller" ]
}
test("fdio-caller") {
output_name = "fdio-caller-test"
if (is_fuchsia) {
fdio_config = [ "//build/config/fuchsia:fdio_config" ]
if (configs + fdio_config - fdio_config != configs) {
configs -= fdio_config
}
}
sources = [ "fdio.cc" ]
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_cpp",
"//sdk/lib/fdio",
"//src/lib/files",
"//src/sys/test_runners:tmp_storage",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/fdio-caller",
"//zircon/system/ulib/zxtest",
]
}
fuchsia_unittest_package("fdio-caller-test-pkg") {
package_name = "fdio-caller-test"
deps = [ ":fdio-caller" ]
}
group("tests") {
testonly = true
deps = [ ":fdio-caller-test-pkg" ]
}