blob: 65cee008f6442a37a12dc97ac87f8b100520ca06 [file] [log] [blame]
# 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/dart/test.gni")
import("//build/testing/environments.gni")
# This directory contains Dart wrappers for running performance tests
# that are defined elsewhere in the Fuchsia tree.
#
# The test wrappers in this directory are split into multiple test
# executables (dart_test targets here) because the Fuchsia Infra tools
# for retrying tests and tracking flakes operate on the granularity of
# test executables.
test_list = [
"garnet_input_latency_benchmarks_test",
"ledger_perf_test",
"microbenchmarks_test",
"rust_inspect_benchmarks_test",
"scenic_benchmarks_test",
"tspec_example_test",
]
foreach(target_name, test_list) {
dart_test(target_name) {
sources = [ "$target_name.dart" ]
deps = [
"//sdk/testing/sl4f/client",
"//third_party/dart-pkg/pub/test",
]
non_dart_deps = [ ":runtime_deps" ]
environments = [
# Runs on "main" builders (try and ci) in NUC environments.
nuc_env,
]
}
}
copy("runtime_deps") {
_data_dir = "$target_gen_dir/runtime_deps"
sources = [ "$root_out_dir/catapult_converter" ]
outputs = [ "$_data_dir/{{source_file_part}}" ]
metadata = {
test_runtime_deps = [ "$_data_dir/catapult_converter" ]
}
deps = [ "//garnet/bin/catapult_converter:converter_bin" ]
}
# Packages required either:
# 1) by the Dart test wrappers in this directory, or
# 2) by the older test runner in src/tests/benchmarks/ which is
# used by the peridot-perf and fuchsia-perfcompare builders. This
# test runner will eventually be replaced by the Dart test
# wrappers (TODO(fxb/23091)), but sharing the same dependency
# declarations will ease this transition.
group("package_deps") {
testonly = true
public_deps = [
"//garnet/bin/ui/tests/performance:scenic_benchmarks",
"//garnet/bin/zircon_benchmarks:zircon_benchmarks_perftestmode",
"//garnet/examples/benchmark",
"//garnet/tests/benchmarks/input_latency:garnet_input_latency_benchmarks",
"//src/ledger:bin",
"//src/ledger/bin/tests/benchmark",
"//src/lib/inspect/rust/fuchsia-inspect:benchmarks",
# These are used by garnet_input_latency_benchmarks.
"//src/ui/bin/activity",
"//src/ui/examples:simplest_app",
"//src/ui/examples:yuv_to_image_pipe",
"//src/ui/tools:present_view",
"//third_party/sbase:date",
"//third_party/sbase:sleep",
# These are used by scenic_benchmarks.
"//garnet/bin/ui/benchmarks/image_grid_cpp",
"//src/ui/examples:standalone_app",
"//src/ui/examples:tile_view",
"//src/ui/tools:present_view",
"//src/ui/tools:set_renderer_params",
# These are used by the test runner in src/tests/benchmarks/,
# used by the peridot-perf and fuchsia-perfcompare builders.
"//garnet/bin/catapult_converter",
"//src/tests/benchmarks:fuchsia_benchmarks",
"//third_party/sbase:mkdir",
"//third_party/sbase:rm",
"//third_party/sbase:touch",
]
}
group("test") {
testonly = true
deps = []
foreach(target_name, test_list) {
deps += [ ":$target_name($host_toolchain)" ]
}
}