| # 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/components.gni") |
| import("//build/rust/rustc_binary.gni") |
| |
| rustc_binary("bin") { |
| testonly = true |
| name = "inspect_test_runner" |
| with_unit_tests = true |
| edition = "2021" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.component.runner:fuchsia.component.runner-rustc", |
| "//sdk/fidl/fuchsia.data:fuchsia.data-rustc", |
| "//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics-rustc", |
| "//sdk/fidl/fuchsia.io:fuchsia.io-rustc", |
| "//sdk/fidl/fuchsia.process:fuchsia.process-rustc", |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc", |
| "//sdk/fidl/fuchsia.test:fuchsia.test-rustc", |
| "//sdk/fidl/fuchsia.test:rust_measure_tape_for_case", |
| "//src/diagnostics/lib/triage", |
| "//src/lib/diagnostics/reader/rust", |
| "//src/lib/diagnostics/selectors", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-runtime", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//src/sys/lib/runner", |
| "//src/sys/test_runners:lib", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:maplit", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:thiserror", |
| "//third_party/rust_crates:tracing", |
| "//third_party/rust_crates:uuid", |
| ] |
| |
| test_deps = [ |
| "//src/sys/test_runners:test_lib", |
| "//third_party/rust_crates:assert_matches", |
| "//third_party/rust_crates:itertools", |
| "//third_party/rust_crates:pretty_assertions", |
| ] |
| |
| sources = [ |
| "src/error.rs", |
| "src/eval.rs", |
| "src/main.rs", |
| "src/spec.rs", |
| "src/test_server.rs", |
| ] |
| } |
| |
| fuchsia_component("inspect_test_runner") { |
| testonly = true |
| manifest = "meta/inspect-test-runner.cml" |
| component_name = "inspect-test-runner" |
| deps = [ ":bin" ] |
| } |
| |
| fuchsia_package("inspect-test-runner") { |
| testonly = true |
| deps = [ ":inspect_test_runner" ] |
| } |
| |
| group("inspect") { |
| testonly = true |
| deps = [ ":inspect-test-runner" ] |
| } |
| |
| fuchsia_unittest_component("test-component") { |
| deps = [ ":bin_test" ] |
| } |
| |
| fuchsia_test_package("inspect-test-runner-test") { |
| test_components = [ ":test-component" ] |
| deps = [] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":inspect-test-runner-test", |
| "tests", |
| ] |
| } |