| # 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/package.gni") |
| import("//build/rust/rustc_binary.gni") |
| import("//build/test.gni") |
| import("//build/test/test_package.gni") |
| |
| rustc_binary("bin") { |
| testonly = true |
| name = "rust_test_adapter" |
| with_unit_tests = true |
| edition = "2018" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.test:fuchsia.test-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/syslog/rust:syslog", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//src/sys/test_adapters:lib", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:lazy_static", |
| "//third_party/rust_crates:regex", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:thiserror", |
| ] |
| } |
| |
| test_package("rust_test_adapter_tests") { |
| deps = [ |
| ":bin", |
| ":bin_test", |
| "test_data", |
| ] |
| |
| binaries = [ |
| { |
| name = "rust_test_adapter" |
| }, |
| { |
| name = "simple_rust_tests" |
| }, |
| { |
| name = "no_rust_tests" |
| }, |
| { |
| name = "huge_rust_tests" |
| }, |
| { |
| name = "test_results" |
| }, |
| ] |
| |
| tests = [ |
| { |
| name = "rust_test_adapter_bin_test" |
| }, |
| ] |
| } |
| |
| group("rust") { |
| testonly = true |
| public_deps = [ ":bin" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ ":rust_test_adapter_tests" ] |
| } |