blob: 9ae0a25887c350febb52e4c6f682475df1ea005c [file] [log] [blame]
# Copyright 2019 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")
import("//build/testing/host_test_data.gni")
go_library("elflib") {
}
_testdata_path = "$target_gen_dir/testdata"
go_test("tools_debug_elflib_tests") {
gopackages = [ "go.fuchsia.dev/fuchsia/tools/debug/elflib" ]
args = [
"--test_data_dir",
rebase_path(_testdata_path, root_build_dir),
]
deps = [ ":elflib" ]
non_go_deps = [ ":testdata" ]
}
host_test_data("testdata") {
sources = [ "testdata" ]
outputs = [ _testdata_path ]
}