[benchmarks] Add "fuchsia_benchmarks" package as an alias for peridot_benchmarks
After this, I will change infra/config to refer to
"fuchsia_benchmarks" instead of "peridot_benchmarks". Then I can
remove the original "peridot_benchmarks" package.
Issue: PT-175
Test: run peridot-x64-perf-dawson_canyon bot on this CL via "led" with
config edited to refer to "fuchsia_benchmarks" instead of
"peridot_benchmarks"
Change-Id: I125baea4c427d8a24722eeaeba18ed6c165f3667
diff --git a/peridot/packages/benchmarks/BUILD.gn b/peridot/packages/benchmarks/BUILD.gn
index 02c571a..42088de 100644
--- a/peridot/packages/benchmarks/BUILD.gn
+++ b/peridot/packages/benchmarks/BUILD.gn
@@ -27,6 +27,7 @@
public_deps = [
"//garnet/packages/benchmarks:buildbot",
"//peridot/packages/benchmarks:ledger",
+ "//peridot/tests/benchmarks:fuchsia_benchmarks",
"//peridot/tests/benchmarks:peridot_benchmarks",
]
}
diff --git a/peridot/tests/benchmarks/BUILD.gn b/peridot/tests/benchmarks/BUILD.gn
index 7fb3c01..a73e3dc 100644
--- a/peridot/tests/benchmarks/BUILD.gn
+++ b/peridot/tests/benchmarks/BUILD.gn
@@ -75,6 +75,20 @@
]
}
+executable("fuchsia_benchmarks_bin") {
+ output_name = "fuchsia_benchmarks"
+
+ sources = [
+ "benchmarks.cc",
+ ]
+
+ deps = [
+ "//garnet/testing/benchmarking:benchmarking",
+ ]
+}
+
+# TODO(PT-175): Remove peridot_benchmarks once the bots have switched
+# over to using fuchsia_benchmarks instead.
package("peridot_benchmarks") {
testonly = true
@@ -93,3 +107,22 @@
":peridot_benchmarks_bin",
]
}
+
+package("fuchsia_benchmarks") {
+ testonly = true
+
+ binaries = [
+ {
+ name = rebase_path("benchmarks.sh")
+ dest = "benchmarks.sh"
+ },
+ {
+ shell = true
+ name = "fuchsia_benchmarks"
+ },
+ ]
+
+ deps = [
+ ":fuchsia_benchmarks_bin",
+ ]
+}