blob: bfa7baaba32f2bee8fa2a9b8f7e2b25d4879a978 [file] [log] [blame]
Lorenz Brun2d284b52023-03-08 17:05:12 +01001load("@io_bazel_rules_go//go:def.bzl", "go_test")
2
3go_test(
4 name = "e2e_test",
5 srcs = ["main_test.go"],
6 data = [
Tim Windelschmidt681d5152025-01-08 00:19:33 +01007 # We use the layer instead of the binary to not add a transition target
Tim Windelschmidt79ffbbe2024-02-22 19:15:51 +01008 "//cloud/agent/takeover",
Tim Windelschmidt82e6af72024-07-23 00:05:42 +00009 "//third_party/edk2:OVMF_CODE.fd",
10 "//third_party/edk2:OVMF_VARS.fd",
Lorenz Brun2d284b52023-03-08 17:05:12 +010011 "@debian_11_cloudimage//file",
12 ],
Tim Windelschmidt82e6af72024-07-23 00:05:42 +000013 x_defs = {
14 "xCloudImagePath": "$(rlocationpath @debian_11_cloudimage//file )",
15 "xOvmfVarsPath": "$(rlocationpath //third_party/edk2:OVMF_VARS.fd )",
16 "xOvmfCodePath": "$(rlocationpath //third_party/edk2:OVMF_CODE.fd )",
Jan Schär551a7372025-03-12 19:13:26 +010017 "xTakeoverPath": "$(rlocationpath //cloud/agent/takeover )",
Tim Windelschmidt82e6af72024-07-23 00:05:42 +000018 },
Lorenz Brun2d284b52023-03-08 17:05:12 +010019 deps = [
20 "//cloud/agent/api",
Tim Windelschmidt9f21f532024-05-07 15:14:20 +020021 "//osbase/fat32",
22 "//osbase/freeport",
Lorenz Brun2d284b52023-03-08 17:05:12 +010023 "@com_github_pkg_sftp//:sftp",
Tim Windelschmidt156248b2025-01-10 00:27:45 +010024 "@io_bazel_rules_go//go/runfiles",
Lorenz Brun2d284b52023-03-08 17:05:12 +010025 "@org_golang_google_protobuf//proto",
26 "@org_golang_x_crypto//ssh",
27 ],
28)