blob: bfa7baaba32f2bee8fa2a9b8f7e2b25d4879a978 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_test")
go_test(
name = "e2e_test",
srcs = ["main_test.go"],
data = [
# We use the layer instead of the binary to not add a transition target
"//cloud/agent/takeover",
"//third_party/edk2:OVMF_CODE.fd",
"//third_party/edk2:OVMF_VARS.fd",
"@debian_11_cloudimage//file",
],
x_defs = {
"xCloudImagePath": "$(rlocationpath @debian_11_cloudimage//file )",
"xOvmfVarsPath": "$(rlocationpath //third_party/edk2:OVMF_VARS.fd )",
"xOvmfCodePath": "$(rlocationpath //third_party/edk2:OVMF_CODE.fd )",
"xTakeoverPath": "$(rlocationpath //cloud/agent/takeover )",
},
deps = [
"//cloud/agent/api",
"//osbase/fat32",
"//osbase/freeport",
"@com_github_pkg_sftp//:sftp",
"@io_bazel_rules_go//go/runfiles",
"@org_golang_google_protobuf//proto",
"@org_golang_x_crypto//ssh",
],
)