| # 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/fuchsia_unittest_package.gni") |
| import("//build/test.gni") |
| |
| group("benchmarks") { |
| testonly = true |
| deps = [ |
| ":socket-benchmarks", |
| ":socket-benchmarks-with-fake-netstack", |
| ":socket-benchmarks-with-fast-udp", |
| ] |
| } |
| |
| test("socket_benchmarks") { |
| sources = [ "socket_benchmarks.cc" ] |
| |
| deps = [ |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/fxl", |
| "//zircon/system/ulib/fbl", |
| "//zircon/system/ulib/perftest", |
| ] |
| } |
| |
| fuchsia_unittest_package("socket-benchmarks") { |
| manifest = "meta/socket-benchmarks.cml" |
| deps = [ |
| ":socket_benchmarks", |
| "//src/connectivity/network/netstack:component", |
| ] |
| } |
| |
| fuchsia_unittest_package("socket-benchmarks-with-fast-udp") { |
| manifest = "meta/socket-benchmarks-with-fast-udp.cml" |
| deps = [ |
| ":socket_benchmarks", |
| "//src/connectivity/network/netstack:component-with-fast-udp", |
| ] |
| } |
| |
| fuchsia_unittest_package("socket-benchmarks-with-fake-netstack") { |
| manifest = "meta/socket-benchmarks-with-fake-netstack.cml" |
| deps = [ |
| ":socket_benchmarks", |
| "fake-netstack", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":socket-benchmarks", |
| ":socket-benchmarks-with-fake-netstack", |
| ":socket-benchmarks-with-fast-udp", |
| ] |
| if (host_os == "linux") { |
| deps += [ ":socket_benchmarks($host_toolchain)" ] |
| } |
| } |