blob: 0c20f91f6671fe5be9439d04c6d2a0d74baff164 [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/test.gni")
test("device-name-provider-test") {
sources = [ "args-test.cc" ]
deps = [
"//sdk/fidl/fuchsia.boot:fuchsia.boot_cpp",
"//src/bringup/bin/device-name-provider:args",
"//src/storage/lib/vfs/cpp",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/mock-boot-arguments",
"//zircon/system/ulib/zxtest",
]
}
fuchsia_unittest_component("device-name-provider-test-component") {
component_name = "device-name-provider-test"
deps = [ ":device-name-provider-test" ]
}
test("integration-test") {
sources = [ "integration-test.cc" ]
deps = [
"//sdk/fidl/fuchsia.device:fuchsia.device_cpp",
"//sdk/lib/component/incoming/cpp",
"//src/lib/fxl/test:gtest_main",
"//src/lib/testing/predicates",
]
}
fuchsia_component("integration-test-component") {
testonly = true
manifest = "../meta/integration-test.cml"
deps = [ ":integration-test" ]
}
fuchsia_component("integration-test-realm") {
testonly = true
manifest = "../meta/integration-test-realm.cml"
}
fuchsia_test_package("tests") {
package_name = "device-name-provider-tests"
deps = [
":integration-test-component",
"//src/bringup/bin/device-name-provider",
"//src/bringup/bin/device-name-provider:component",
"//src/devices/block/drivers/core",
"//src/devices/block/drivers/gpt",
"//src/devices/block/drivers/ramdisk",
"//src/devices/board/drivers/integration-test",
"//src/devices/bus/drivers/platform",
]
test_components = [
":device-name-provider-test-component",
":integration-test-realm",
]
}