| # 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/fidl/fidl.gni") |
| import("//build/test/test_package.gni") |
| |
| group("benchmarks") { |
| testonly = true |
| |
| deps = [ |
| ":modular_benchmarks", |
| |
| # modular_test_harness is a dep for any test that uses test_harness_fixture |
| # (all of the tests below). Add it here so that an fx set --with |
| # //src/modular/benchmarks includes it. |
| "//peridot/packages/testing:modular_test_harness", |
| ] |
| } |
| |
| executable("story_benchmark") { |
| testonly = true |
| |
| output_name = "story_benchmark" |
| |
| sources = [ |
| "story_benchmark.cc", |
| ] |
| |
| deps = [ |
| ":tracing_waiter", |
| "//garnet/public/lib/fsl", |
| "//garnet/public/lib/fxl", |
| "//sdk/fidl/fuchsia.modular.testing", |
| "//sdk/fidl/fuchsia.sys", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/sys/cpp/testing:integration", |
| "//src/lib/fxl", |
| "//src/modular/lib/modular_test_harness/cpp:test_harness_fixture", |
| "//src/modular/lib/testing:session_shell_impl", |
| "//third_party/googletest:gtest_main", |
| ] |
| } |
| |
| package("modular_benchmarks") { |
| testonly = true |
| |
| deps = [ |
| ":story_benchmark", |
| ] |
| |
| meta = [ |
| { |
| dest = "story_benchmark.cmx" |
| path = rebase_path("meta/story_benchmark.cmx") |
| }, |
| ] |
| |
| binaries = [ |
| { |
| name = "story_benchmark" |
| }, |
| ] |
| |
| resources = [ |
| { |
| path = rebase_path("story_benchmark.tspec") |
| dest = "story_benchmark.tspec" |
| }, |
| ] |
| } |
| |
| source_set("tracing_waiter") { |
| sources = [ |
| "tracing_waiter.cc", |
| "tracing_waiter.h", |
| ] |
| |
| public_deps = [ |
| "//zircon/public/lib/async", |
| "//zircon/public/lib/trace", |
| "//zircon/public/lib/trace-provider-with-fdio", |
| ] |
| |
| deps = [ |
| "//garnet/public/lib/fsl", |
| "//src/lib/fxl", |
| ] |
| } |