blob: 81ff44a85497cefdd28d5f292a3e5fc849703ec7 [file] [log] [blame]
Tim Windelschmidt7a1b27d2024-02-22 23:54:58 +01001load("@io_bazel_rules_go//go:def.bzl", "go_test")
2
3go_test(
4 name = "e2e_test",
5 srcs = ["main_test.go"],
6 data = [
7 "//metropolis/cli/takeover",
8 "//metropolis/installer/test/testos:testos_bundle",
9 "//third_party/edk2:OVMF_CODE.fd",
10 "//third_party/edk2:OVMF_VARS.fd",
11 "@debian_11_cloudimage//file",
12 ],
13 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 "xCloudImagePath": "$(rlocationpath @debian_11_cloudimage//file )",
18 # TODO(tim): Hardcoded because of https://github.com/monogon-dev/monogon/issues/316
19 "xTakeoverPath": "_main/metropolis/cli/takeover/takeover/takeover_bin",
20 },
21 deps = [
22 "//go/net/ssh",
23 "//metropolis/proto/api",
24 "//metropolis/test/launch",
25 "//osbase/fat32",
26 "//osbase/freeport",
27 "@io_bazel_rules_go//go/runfiles:go_default_library",
28 "@org_golang_google_protobuf//proto",
29 "@org_golang_x_crypto//ssh",
30 "@org_golang_x_sys//unix",
31 ],
32)