blob: 91f09cedfea3cf0b1d89f5157834ecc54aaf2834 [file] [log] [blame]
Lorenz Brunaadeb792023-03-27 15:53:56 +02001load("@io_bazel_rules_go//go:def.bzl", "go_test")
2
3go_test(
4 name = "e2e_test",
5 srcs = ["main_test.go"],
6 data = [
Tim Windelschmidt79ffbbe2024-02-22 19:15:51 +01007 "//cloud/agent/takeover:initramfs",
Jan Schär4cc3d4d2025-04-14 11:46:47 +00008 "//metropolis/installer/test/testos:testos_image",
Tim Windelschmidt82e6af72024-07-23 00:05:42 +00009 "//third_party/edk2:OVMF_CODE.fd",
10 "//third_party/edk2:OVMF_VARS.fd",
Lorenz Brunaadeb792023-03-27 15:53:56 +020011 "//third_party/linux",
12 ],
Tim Windelschmidt82e6af72024-07-23 00:05:42 +000013 x_defs = {
Jan Schär4cc3d4d2025-04-14 11:46:47 +000014 "xImagePath": "$(rlocationpath //metropolis/installer/test/testos:testos_image )",
Tim Windelschmidt82e6af72024-07-23 00:05:42 +000015 "xOvmfVarsPath": "$(rlocationpath //third_party/edk2:OVMF_VARS.fd )",
16 "xOvmfCodePath": "$(rlocationpath //third_party/edk2:OVMF_CODE.fd )",
17 "xKernelPath": "$(rlocationpath //third_party/linux )",
18 "xInitramfsOrigPath": "$(rlocationpath //cloud/agent/takeover:initramfs )",
19 },
Lorenz Brunaadeb792023-03-27 15:53:56 +020020 deps = [
21 "//cloud/agent/api",
Lorenz Brunaadeb792023-03-27 15:53:56 +020022 "//metropolis/proto/api",
Jan Schär4cc3d4d2025-04-14 11:46:47 +000023 "//osbase/oci",
24 "//osbase/oci/registry",
Tim Windelschmidt9f21f532024-05-07 15:14:20 +020025 "//osbase/pki",
Lorenz Brunaadeb792023-03-27 15:53:56 +020026 "@com_github_cavaliergopher_cpio//:cpio",
Lorenz Brun62f1d362023-11-14 16:18:24 +010027 "@com_github_klauspost_compress//zstd",
Tim Windelschmidt156248b2025-01-10 00:27:45 +010028 "@io_bazel_rules_go//go/runfiles",
Tim Windelschmidt3325b4b2024-07-15 19:19:49 +020029 "@org_golang_google_grpc//:grpc",
Lorenz Brunaadeb792023-03-27 15:53:56 +020030 "@org_golang_google_grpc//credentials",
31 "@org_golang_google_protobuf//proto",
32 "@org_golang_x_sys//unix",
33 ],
34)