| # 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. | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":virtual_device_test($host_toolchain)" ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| if (is_host) { | |
| go_library("virtual_device") { | |
| sources = [ | |
| "aemu.go", | |
| "common.go", | |
| "doc.go", | |
| "qemu.go", | |
| ] | |
| visibility = [ | |
| ":*", | |
| "//src/devices/block/drivers/ufs/test/e2e:*", | |
| "//src/tests/kernel_crashlog:*", | |
| "//tools/emulator:*", | |
| ] | |
| deps = [ | |
| ":proto", | |
| "//third_party/golibs:github.com/google/go-cmp/cmp", | |
| "//tools/lib/productbundle", | |
| "//tools/qemu", | |
| ] | |
| } | |
| } | |
| if (is_host) { | |
| go_test("virtual_device_test") { | |
| sources = [ | |
| "common_test.go", | |
| "qemu_test.go", | |
| ] | |
| embed = [ ":virtual_device" ] | |
| visibility = [ | |
| ":*", | |
| "//tools:*", | |
| ] | |
| } | |
| } | |
| if (is_host) { | |
| go_library("proto") { | |
| sources = [ "proto/virtual_device.pb.go" ] | |
| visibility = [ | |
| ":*", | |
| "//src/connectivity/network/testing/conformance/emulator:*", | |
| "//src/devices/block/drivers/ufs/test/e2e:*", | |
| "//src/tests/*", | |
| "//third_party/network-conformance/orchestrator:*", | |
| "//tools/emulator/*", | |
| ] | |
| deps = [ "//third_party/golibs:google.golang.org/protobuf" ] | |
| non_go_deps = [ "proto:lib" ] | |
| } | |
| } |