blob: 5c05229b2447580ec2869c7837ab9750d7a41178 [file] [log] [blame]
# Copyright 2021 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/rust/rustc_test.gni")
import("//src/power/power-manager/thermal_config/thermal_config.gni")
rustc_test("thermal-template-output-test") {
edition = "2021"
deps = [
"//src/power/power-manager/thermal_config/parser",
"//third_party/rust_crates:anyhow",
]
sources = [ "src/lib.rs" ]
}
thermal_config("config") {
testonly = true
config_file = "../test_configs/valid_test_config.json5"
output = "test_config.json"
}
fuchsia_unittest_package("thermal-template-output-test-pkg") {
manifest = "meta/thermal-template-output-test.cml"
deps = [
":config",
":thermal-template-output-test",
]
}
group("tests") {
testonly = true
deps = [ ":thermal-template-output-test-pkg" ]
}