blob: 22f884bffd75e2483e705c57ff7a52f666707588 [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/components.gni")
import("//sdk/ctf/build/ctf.gni")
ctf_executable("hwinfo-test-bin") {
output_name = "hwinfo-test"
testonly = true
sources = [ "hwinfo_test.cc" ]
deps = [
"//sdk/fidl/fuchsia.hwinfo:fuchsia.hwinfo_hlcpp",
"//sdk/lib/sys/cpp",
"//sdk/testing/fidl:fidl_test_hlcpp",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/zxtest",
]
}
ctf_fuchsia_component("default") {
manifest = "meta/default.cml"
deps = [ ":hwinfo-test-bin" ]
testonly = true
}
ctf_fuchsia_package("fuchsia-hwinfo-tests") {
package_name = "fuchsia-hwinfo-tests"
testonly = true
deps = [ ":default" ]
}
fuchsia_component("test-root") {
manifest = "meta/test-root.cml"
}
fuchsia_test_package("fuchsia-hwinfo-tests-package") {
test_components = [ ":test-root" ]
subpackages = [ ":fuchsia-hwinfo-tests" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}
group("tests") {
testonly = true
deps = [
":fuchsia-hwinfo-tests-package",
":fuchsia-hwinfo-tests_archive",
]
}