| # Copyright 2023 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/go/go_library.gni") |
| import("//build/go/go_test.gni") |
| |
| # Helper host interaction fixture that will: |
| # |
| # (1) Launches an emulator with the provided images. |
| # (2) Waits for netstack to come up. |
| # (3) Establishes a SSH Session to run the provided test. |
| # (4) Collects test artifacts. |
| # (5) Generates an indexed profile (profdata) from the available llvm-profile |
| # sink (expected profraw) and generates a json report, to be validated with |
| # the provided expectations. |
| go_library("lib") { |
| testonly = true |
| |
| deps = [ |
| "//third_party/golibs:github.com/google/go-cmp", |
| "//tools/botanist:botanist_lib", |
| "//tools/botanist:targets", |
| "//tools/debug/covargs:llvm_api", |
| "//tools/emulator", |
| "//tools/emulator/emulatortest", |
| "//tools/lib/ffxutil", |
| "//tools/testing/runtests", |
| "//tools/testing/testrunner:lib", |
| ] |
| |
| sources = [ "coverage_verifier_test.go" ] |
| } |
| |
| host_test_data("coverage_tools") { |
| sources = [ |
| "$clang_prefix/llvm-cov", |
| "$clang_prefix/llvm-cxxfilt", |
| "$clang_prefix/llvm-profdata", |
| ] |
| } |
| |
| host_test_data("fvm") { |
| sources = [ "$host_out_dir/fvm" ] |
| deps = [ "//src/storage/bin/fvm" ] |
| } |
| |
| host_test_data("ssh_key") { |
| sources = [ |
| "//.ssh/pkey", |
| "//.ssh/pkey.pub", |
| ] |
| } |