| # 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_test.gni") |
| import("//build/test.gni") |
| import("//build/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| |
| rustc_test("network_manager_integration_test") { |
| edition = "2018" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.ethernet:fuchsia.hardware.ethernet-rustc", |
| "//sdk/fidl/fuchsia.net:fuchsia.net-rustc", |
| "//sdk/fidl/fuchsia.netstack:fuchsia.netstack-rustc", |
| "//sdk/fidl/fuchsia.overnet:fuchsia.overnet-rustc", |
| "//sdk/fidl/fuchsia.overnet.protocol:fuchsia.overnet.protocol-rustc", |
| "//sdk/fidl/fuchsia.router.config:fuchsia.router.config-rustc", |
| "//src/connectivity/management/network-manager-cli:lib", |
| "//src/connectivity/network/testing/netemul/lib/fidl:environment-rustc", |
| "//src/connectivity/network/testing/netemul/lib/fidl:network-rustc", |
| "//src/connectivity/network/testing/netemul/lib/fidl:sandbox-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", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:eui48", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:regex", |
| "//third_party/rust_crates:structopt", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ "src/lib.rs" ] |
| } |
| |
| test_package("network-manager-integration-tests") { |
| deps = [ ":network_manager_integration_test" ] |
| |
| tests = [ |
| { |
| name = "network_manager_integration_test" |
| environments = [ emu_env ] |
| |
| # TODO(fxbug.dev/52124): fix this test and re-enable it. |
| disabled = true |
| }, |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":network-manager-integration-tests", |
| |
| # Dependencies for running the integration tests. |
| "//src/connectivity/management/network-manager", |
| "//src/connectivity/management/network-manager-cli", |
| "//src/connectivity/network/testing/netemul", |
| ] |
| } |