| # 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/test.gni") |
| |
| test("bin") { |
| output_name = "external_network_client" |
| sources = [ "main.cc" ] |
| |
| deps = [ |
| "//src/lib/fxl/test:gtest_main", |
| "//zircon/system/ulib/fbl", |
| ] |
| } |
| |
| fuchsia_unittest_component("client") { |
| manifest = "meta/client.cml" |
| deps = [ ":bin" ] |
| } |
| |
| fuchsia_test_component("device-name-provider") { |
| manifest = "meta/device-name-provider.cml" |
| deps = [ "//src/bringup/bin/device-name-provider" ] |
| } |
| |
| fuchsia_test_component("test") { |
| manifest = "meta/test.cml" |
| deps = [ |
| ":client", |
| ":device-name-provider", |
| "//src/connectivity/network/testing/netemul/configurable-netstack", |
| ] |
| } |
| |
| fuchsia_test_package("netstack-external-network-tests") { |
| test_components = [ ":test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ ":netstack-external-network-tests" ] |
| |
| if (host_os == "linux") { |
| public_deps += [ ":client($host_toolchain)" ] |
| } |
| } |