| # Copyright 2020 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("test") { |
| output_name = "getifaddrs-test" |
| if (is_linux || is_fuchsia) { |
| sources = [ "getifaddrs_test.cc" ] |
| } |
| deps = [ |
| "//src/lib/fxl/test:gtest_main", |
| "//third_party/googletest:gmock", |
| ] |
| } |
| |
| fuchsia_test_component("test-driver") { |
| manifest = "meta/test-driver.cml" |
| deps = [ ":test" ] |
| } |
| |
| fuchsia_test_component("getifaddrs-test") { |
| manifest = "meta/getifaddrs-test.cml" |
| deps = [ |
| ":test-driver", |
| "//src/connectivity/network/testing/netemul/configurable-netstack", |
| ] |
| } |
| |
| fuchsia_test_package("getifaddrs-tests") { |
| test_components = [ ":getifaddrs-test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ |
| ":getifaddrs-test($host_toolchain)", |
| ":getifaddrs-tests", |
| ] |
| } |