blob: 25032ed57eda9590fde3ebda4215cf84e03ae3ec [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 )",
Jan Schär551a7372025-03-12 19:13:26 +010018 "xTakeoverPath": "$(rlocationpath //metropolis/cli/takeover )",
Tim Windelschmidt7a1b27d2024-02-22 23:54:58 +010019 },
20 deps = [
21 "//go/net/ssh",
22 "//metropolis/proto/api",
23 "//metropolis/test/launch",
24 "//osbase/fat32",
25 "//osbase/freeport",
Tim Windelschmidt156248b2025-01-10 00:27:45 +010026 "@io_bazel_rules_go//go/runfiles",
Tim Windelschmidt7a1b27d2024-02-22 23:54:58 +010027 "@org_golang_google_protobuf//proto",
28 "@org_golang_x_crypto//ssh",
29 "@org_golang_x_sys//unix",
30 ],
31)