blob: 27891fca129e7443f3c75ae92699a2db8db685f2 [file] [log] [blame]
# 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/fidl/fidl.gni")
import("//build/rust/rustc_binary.gni")
import("//build/test/test_package.gni")
rustc_binary("bin") {
visibility = [ ":*" ]
name = "fidl_microbenchmarks"
edition = "2018"
with_unit_tests = true
deps = [
"//third_party/rust_crates:csv",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:structopt",
]
}
package("fidl-microbenchmarks") {
testonly = true
deps = [ ":bin" ]
binaries = [
{
name = "fidl_microbenchmarks"
shell = true
},
]
}
test_package("fidl-microbenchmarks-runner-test") {
deps = [ ":bin_test" ]
v2_tests = [
{
name = "fidl_microbenchmarks_bin_test"
environments = basic_envs
},
]
}
group("runner") {
testonly = true
deps = [ ":fidl-microbenchmarks" ]
}
group("tests") {
testonly = true
deps = [ ":fidl-microbenchmarks-runner-test" ]
}