blob: 2294fcb03550861ebfc73f5af231877797d2fff7 [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/config/fuchsia/rules.gni")
import("//build/test.gni")
import("//src/sys/build/fuchsia_unittest_package.gni")
executable("astro-thermistor-test-bin") {
configs += [ "//build/config:all_source" ]
testonly = true
sources = [
"../thermistor-channel.cc",
"../thermistor.cc",
"test.cc",
]
deps = [
"../:astro-thermistor-bind",
"//sdk/fidl/fuchsia.hardware.adc:fuchsia.hardware.adc_llcpp",
"//sdk/fidl/fuchsia.hardware.temperature:fuchsia.hardware.temperature_llcpp",
"//src/devices/bus/lib/device-protocol-pdev",
"//src/devices/lib/amlogic",
"//src/devices/lib/mmio",
"//src/devices/lib/thermal",
"//src/devices/testing/fake_ddk",
"//src/devices/testing/mock-mmio-reg",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/public/lib/fbl",
"//zircon/public/lib/sync",
"//zircon/public/lib/zircon-internal",
"//zircon/public/lib/zx",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/fzl",
# TODO(fxb/38132): Migrate to the new bind rules and delete the below
"//src/lib/ddk:ddk-deprecated-binding-headers",
]
}
fuchsia_unittest_package("test-package") {
package_name = "astro-thermistor-test"
executable_path = "bin/astro-thermistor-test-bin"
deps = [ ":astro-thermistor-test-bin" ]
test_specs = {
environments = basic_envs
}
}