blob: a3a36b31f0f84d218c1a6dde42661e01577aa7d2 [file] [edit]
# 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/go/go_library.gni")
import("//build/go/go_test.gni")
group("tests") {
testonly = true
deps = []
# kernel_panic_tests uses //tools/emulator, which only works on
# linux.
if (host_os == "linux") {
deps += [ ":kernel_panic_tests($host_toolchain)" ]
}
}
if (is_linux) {
go_library("lib") {
testonly = true
deps = [ "//tools/emulator/emulatortest" ]
sources = [ "kernel_panic_test.go" ]
}
go_test("kernel_panic_tests") {
embed = [ ":lib" ]
non_go_deps =
[ "//build/images/fuchsia:default_product_bundle_for_emulator.go" ]
}
}