blob: afe2ce516738736d0f228b91760bd6a82b3df054 [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/components.gni")
import("//build/rust/rustc_test.gni")
rustc_test("tests_bin") {
edition = "2018"
source_root = "main.rs"
name = "rust_runner_integration_test"
deps = [
"//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager-rustc",
"//src/lib/fuchsia-async",
"//src/sys/test_manager:test_lib",
"//src/sys/test_runners:test_lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:pretty_assertions",
"//third_party/rust_crates:thiserror",
]
sources = [
"lib.rs",
"main.rs",
]
}
fuchsia_component("rust_runner_integration_test") {
testonly = true
manifest = "meta/rust_runner_integration_test.cml"
deps = [ ":tests_bin" ]
}
rustc_test("stress_tests_bin") {
edition = "2018"
source_root = "stress_main.rs"
name = "rust_runner_stress_test"
deps = [
"//sdk/fidl/fuchsia.test.manager:fuchsia.test.manager-rustc",
"//src/lib/fuchsia-async",
"//src/sys/test_manager:test_lib",
"//src/sys/test_runners:test_lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:pretty_assertions",
"//third_party/rust_crates:thiserror",
]
sources = [
"lib.rs",
"stress_main.rs",
]
}
fuchsia_component("rust_runner_stress_test") {
testonly = true
manifest = "meta/rust_runner_stress_test.cml"
deps = [ ":stress_tests_bin" ]
}
fuchsia_test_package("rust-runner-integration-test") {
test_components = [ ":rust_runner_integration_test" ]
if (!is_coverage) {
# https://fxbug.dev/77236: This stress test times out on coverage bot.
test_components += [ ":rust_runner_stress_test" ]
}
}
group("tests") {
testonly = true
deps = [
":rust-runner-integration-test",
"../test_data",
]
}