blob: 39dd031aa07504756824a3220a7e9a8b07a949d3 [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",
Lorenz Brunaadeb792023-03-27 15:53:56 +02008 "//metropolis/installer/test/testos:testos_bundle",
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 = {
14 "xBundleFilePath": "$(rlocationpath //metropolis/installer/test/testos:testos_bundle )",
15 "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",
22 "//cloud/bmaas/server/api",
Lorenz Brunaadeb792023-03-27 15:53:56 +020023 "//metropolis/proto/api",
Tim Windelschmidt9f21f532024-05-07 15:14:20 +020024 "//osbase/pki",
Lorenz Brunaadeb792023-03-27 15:53:56 +020025 "@com_github_cavaliergopher_cpio//:cpio",
Lorenz Brun62f1d362023-11-14 16:18:24 +010026 "@com_github_klauspost_compress//zstd",
Tim Windelschmidt2a1d1b22024-02-06 07:07:42 +010027 "@io_bazel_rules_go//go/runfiles:go_default_library",
Tim Windelschmidt3325b4b2024-07-15 19:19:49 +020028 "@org_golang_google_grpc//:grpc",
Lorenz Brunaadeb792023-03-27 15:53:56 +020029 "@org_golang_google_grpc//credentials",
30 "@org_golang_google_protobuf//proto",
31 "@org_golang_x_sys//unix",
32 ],
33)