blob: 793332af56a928577dd44750d2c5f56a4df6b248 [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.
import("//build/test.gni")
import("//src/sys/build/fuchsia_unittest_package.gni")
group("test") {
testonly = true
deps = [ ":libfs-pty-test" ]
}
test("libfs-pty-test") {
output_name = "libfs-pty-test-test"
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
if (is_fuchsia) {
fdio_config = [ "//build/config/fuchsia:fdio_config" ]
if (configs + fdio_config - fdio_config != configs) {
configs -= fdio_config
}
}
sources = [ "service-test.cc" ]
deps = [
"//sdk/fidl/fuchsia.hardware.pty:fuchsia.hardware.pty_llcpp",
"//zircon/public/lib/async-cpp",
"//zircon/public/lib/fit",
"//zircon/public/lib/sync",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fs",
"//zircon/system/ulib/fs-pty",
]
}
fuchsia_unittest_package("libfs-pty-test-pkg") {
package_name = "libfs-pty-test-test"
deps = [ ":libfs-pty-test" ]
}
group("tests") {
testonly = true
deps = [ ":libfs-pty-test-pkg" ]
}