| # Copyright 2021 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/config.gni") |
| import("//build/rust/rustc_library.gni") |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ ":pty_tests" ] |
| } |
| |
| rustc_library("pty") { |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.pty:fuchsia.hardware.pty-rustc", |
| "//src/lib/cstr", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/trace/rust:trace", |
| "//src/lib/trace/rust:trace-provider", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:libc", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ |
| "src/lib.rs", |
| "src/pty.rs", |
| ] |
| } |
| |
| fuchsia_test_component("pty_tests_component") { |
| component_name = "pty_tests" |
| manifest = "meta/pty_tests.cmx" |
| deps = [ |
| ":pty_test", |
| "//src/lib/zircon/rust:exit_with_code_util", |
| "//zircon/third_party/uapp/dash", |
| ] |
| } |
| |
| fuchsia_test_package("pty_tests") { |
| test_components = [ ":pty_tests_component" ] |
| } |