| load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | 
 | load("//metropolis/node/build:efi.bzl", "efi_unified_kernel_image") | 
 |  | 
 | go_test( | 
 |     name = "installer", | 
 |     size = "medium", | 
 |     data = [ | 
 |         ":kernel", | 
 |         "//metropolis/installer/test/testos:testos_bundle", | 
 |         "//third_party/edk2:firmware", | 
 |         "@qemu//:qemu-x86_64-softmmu", | 
 |     ], | 
 |     embed = [":test"], | 
 |     rundir = ".", | 
 | ) | 
 |  | 
 | go_library( | 
 |     name = "test", | 
 |     srcs = ["main.go"], | 
 |     importpath = "source.monogon.dev/metropolis/installer/test", | 
 |     visibility = ["//visibility:private"], | 
 |     deps = [ | 
 |         "//metropolis/cli/metroctl/core", | 
 |         "//metropolis/cli/pkg/datafile", | 
 |         "//metropolis/node/build/mkimage/osimage", | 
 |         "//metropolis/pkg/cmd", | 
 |         "//metropolis/proto/api", | 
 |         "@com_github_diskfs_go_diskfs//:go-diskfs", | 
 |         "@com_github_diskfs_go_diskfs//disk", | 
 |         "@com_github_diskfs_go_diskfs//partition/gpt", | 
 |     ], | 
 | ) | 
 |  | 
 | efi_unified_kernel_image( | 
 |     name = "kernel", | 
 |     cmdline = "loglevel=0 console=ttyS0", | 
 |     initrd = ["//metropolis/installer:initramfs"], | 
 |     kernel = "//third_party/linux", | 
 |     visibility = ["//visibility:private"], | 
 | ) |