blob: e6cf594b6f75b081a77db578812f60784889ba6b [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 Windelschmidt8f1efe92025-04-01 01:28:43 +02007 "//build/toolchain/toolchain-bundle:qemu-kvm",
Tim Windelschmidt79ffbbe2024-02-22 19:15:51 +01008 "//cloud/agent/takeover:initramfs",
Jan Schär4cc3d4d2025-04-14 11:46:47 +00009 "//metropolis/installer/test/testos:testos_image",
Tim Windelschmidt12240f92025-04-28 14:59:33 +020010 "//third_party/edk2:CODE.fd",
11 "//third_party/edk2:VARS.fd",
Lorenz Brunaadeb792023-03-27 15:53:56 +020012 "//third_party/linux",
13 ],
Tim Windelschmidt82e6af72024-07-23 00:05:42 +000014 x_defs = {
Jan Schär4cc3d4d2025-04-14 11:46:47 +000015 "xImagePath": "$(rlocationpath //metropolis/installer/test/testos:testos_image )",
Tim Windelschmidt12240f92025-04-28 14:59:33 +020016 "xOvmfVarsPath": "$(rlocationpath //third_party/edk2:VARS.fd )",
17 "xOvmfCodePath": "$(rlocationpath //third_party/edk2:CODE.fd )",
Tim Windelschmidt82e6af72024-07-23 00:05:42 +000018 "xKernelPath": "$(rlocationpath //third_party/linux )",
19 "xInitramfsOrigPath": "$(rlocationpath //cloud/agent/takeover:initramfs )",
Tim Windelschmidt8f1efe92025-04-01 01:28:43 +020020 "xQEMUPath": "$(rlocationpath //build/toolchain/toolchain-bundle:qemu-kvm )",
Tim Windelschmidt82e6af72024-07-23 00:05:42 +000021 },
Lorenz Brunaadeb792023-03-27 15:53:56 +020022 deps = [
23 "//cloud/agent/api",
Lorenz Brunaadeb792023-03-27 15:53:56 +020024 "//metropolis/proto/api",
Jan Schär4cc3d4d2025-04-14 11:46:47 +000025 "//osbase/oci",
26 "//osbase/oci/registry",
Tim Windelschmidt9f21f532024-05-07 15:14:20 +020027 "//osbase/pki",
Lorenz Brunaadeb792023-03-27 15:53:56 +020028 "@com_github_cavaliergopher_cpio//:cpio",
Lorenz Brun62f1d362023-11-14 16:18:24 +010029 "@com_github_klauspost_compress//zstd",
Tim Windelschmidt156248b2025-01-10 00:27:45 +010030 "@io_bazel_rules_go//go/runfiles",
Tim Windelschmidt3325b4b2024-07-15 19:19:49 +020031 "@org_golang_google_grpc//:grpc",
Lorenz Brunaadeb792023-03-27 15:53:56 +020032 "@org_golang_google_grpc//credentials",
33 "@org_golang_google_protobuf//proto",
34 "@org_golang_x_sys//unix",
35 ],
36)