| # 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/rust/rustc_test.gni") |
| import("//src/sys/build/fuchsia_test_package.gni") |
| import("//src/sys/build/fuchsia_unittest_component.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" ] |
| } |
| |
| fuchsia_unittest_component("network-manager-integration-test") { |
| deps = [ ":network_manager_integration_test" ] |
| manifest = "meta/network_manager_integration_test.cmx" |
| } |
| |
| fuchsia_test_package("network-manager-integration-tests") { |
| test_components = [ ":network-manager-integration-test" ] |
| |
| deps = [ |
| "//src/connectivity/management/network-manager", |
| "//src/connectivity/management/network-manager-cli", |
| |
| # netemul-sandbox is used to create hermetic environments. |
| "//src/connectivity/network/testing/netemul/runner:netemul-sandbox-component", |
| ] |
| |
| # TODO(fxbug.dev/52124): fix this test and re-enable it. |
| test_specs = { |
| environments = [] |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ ":network-manager-integration-tests" ] |
| } |