blob: 1a0056948862bfa0b322595655c14c6069affa60 [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 Windelschmidt12240f92025-04-28 14:59:33 +02009 "//third_party/edk2:CODE.fd",
10 "//third_party/edk2:VARS.fd",
Lorenz Brun2d284b52023-03-08 17:05:12 +010011 "@debian_11_cloudimage//file",
Tim Windelschmidt8f1efe92025-04-01 01:28:43 +020012 "//build/toolchain/toolchain-bundle:qemu-kvm",
Lorenz Brun2d284b52023-03-08 17:05:12 +010013 ],
Tim Windelschmidt82e6af72024-07-23 00:05:42 +000014 x_defs = {
15 "xCloudImagePath": "$(rlocationpath @debian_11_cloudimage//file )",
Tim Windelschmidt12240f92025-04-28 14:59:33 +020016 "xOvmfVarsPath": "$(rlocationpath //third_party/edk2:VARS.fd )",
17 "xOvmfCodePath": "$(rlocationpath //third_party/edk2:CODE.fd )",
Jan Schär551a7372025-03-12 19:13:26 +010018 "xTakeoverPath": "$(rlocationpath //cloud/agent/takeover )",
Tim Windelschmidt8f1efe92025-04-01 01:28:43 +020019 "xQEMUPath": "$(rlocationpath //build/toolchain/toolchain-bundle:qemu-kvm )",
Tim Windelschmidt82e6af72024-07-23 00:05:42 +000020 },
Lorenz Brun2d284b52023-03-08 17:05:12 +010021 deps = [
22 "//cloud/agent/api",
Tim Windelschmidt9f21f532024-05-07 15:14:20 +020023 "//osbase/fat32",
Jan Schärc1b6df42025-03-20 08:52:18 +000024 "//osbase/structfs",
Jan Schär341cd422025-09-04 10:33:21 +020025 "//osbase/test/freeport",
Lorenz Brun2d284b52023-03-08 17:05:12 +010026 "@com_github_pkg_sftp//:sftp",
Tim Windelschmidt156248b2025-01-10 00:27:45 +010027 "@io_bazel_rules_go//go/runfiles",
Lorenz Brun2d284b52023-03-08 17:05:12 +010028 "@org_golang_google_protobuf//proto",
29 "@org_golang_x_crypto//ssh",
30 ],
31)