blob: c859c2bcdcb80c8c4a25b5c6cd6ba3d7b7255a68 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_test")
go_test(
name = "e2e_test",
srcs = ["main_test.go"],
data = [
"//cloud/agent/takeover:initramfs",
"//metropolis/installer/test/testos:testos_bundle",
"//third_party/edk2:OVMF_CODE.fd",
"//third_party/edk2:OVMF_VARS.fd",
"//third_party/linux",
],
x_defs = {
"xBundleFilePath": "$(rlocationpath //metropolis/installer/test/testos:testos_bundle )",
"xOvmfVarsPath": "$(rlocationpath //third_party/edk2:OVMF_VARS.fd )",
"xOvmfCodePath": "$(rlocationpath //third_party/edk2:OVMF_CODE.fd )",
"xKernelPath": "$(rlocationpath //third_party/linux )",
"xInitramfsOrigPath": "$(rlocationpath //cloud/agent/takeover:initramfs )",
},
deps = [
"//cloud/agent/api",
"//cloud/bmaas/server/api",
"//metropolis/proto/api",
"//osbase/pki",
"@com_github_cavaliergopher_cpio//:cpio",
"@com_github_klauspost_compress//zstd",
"@io_bazel_rules_go//go/runfiles",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_grpc//credentials",
"@org_golang_google_protobuf//proto",
"@org_golang_x_sys//unix",
],
)