| # Copyright 2022 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_test.gni") |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":integration-test-pkg" ] |
| } |
| |
| rustc_test("bin") { |
| source_root = "main.rs" |
| name = "fuzz_test_runner_integration_test" |
| edition = "2021" |
| visibility = [ ":*" ] |
| deps = [ |
| "//src/lib/diagnostics/data/rust", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//src/sys/fuzzing/fidl:fuchsia.fuzzer_rust", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:serde_json", |
| ] |
| sources = [ "main.rs" ] |
| } |
| |
| fuchsia_test_component("integration-test") { |
| manifest = "meta/fuzz_test_runner_integration_test.cml" |
| deps = [ ":bin" ] |
| test_type = "test_arch" |
| } |
| |
| fuchsia_test_package("integration-test-pkg") { |
| package_name = "fuzz-test-runner-tests" |
| test_components = [ ":integration-test" ] |
| deps = [ |
| "//src/sys/fuzzing/common/testing:fuzzer", |
| "//src/sys/fuzzing/manager", |
| "//src/sys/fuzzing/registry", |
| ] |
| subpackages = [ "//src/sys/test_manager:pkg" ] |
| test_specs = { |
| # Run sequentially. |
| parallel = 1 |
| } |
| } |