blob: ae4810b6ea6179a7292d3cdd5b1ee2daa824a331 [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 = [
Jan Schärec61a472025-03-24 18:54:00 +00007 "//metropolis/cli/metroctl:metroctl_lite",
Tim Windelschmidt7a1b27d2024-02-22 23:54:58 +01008 "//metropolis/cli/takeover",
9 "//metropolis/installer/test/testos:testos_bundle",
10 "//third_party/edk2:OVMF_CODE.fd",
11 "//third_party/edk2:OVMF_VARS.fd",
12 "@debian_11_cloudimage//file",
13 ],
14 x_defs = {
15 "xBundleFilePath": "$(rlocationpath //metropolis/installer/test/testos:testos_bundle )",
16 "xOvmfVarsPath": "$(rlocationpath //third_party/edk2:OVMF_VARS.fd )",
17 "xOvmfCodePath": "$(rlocationpath //third_party/edk2:OVMF_CODE.fd )",
18 "xCloudImagePath": "$(rlocationpath @debian_11_cloudimage//file )",
Jan Schär551a7372025-03-12 19:13:26 +010019 "xTakeoverPath": "$(rlocationpath //metropolis/cli/takeover )",
Jan Schärec61a472025-03-24 18:54:00 +000020 "xMetroctlPath": "$(rlocationpath //metropolis/cli/metroctl:metroctl_lite )",
Tim Windelschmidt7a1b27d2024-02-22 23:54:58 +010021 },
22 deps = [
Tim Windelschmidt7a1b27d2024-02-22 23:54:58 +010023 "//osbase/fat32",
24 "//osbase/freeport",
Jan Schärc1b6df42025-03-20 08:52:18 +000025 "//osbase/structfs",
Tim Windelschmidt156248b2025-01-10 00:27:45 +010026 "@io_bazel_rules_go//go/runfiles",
Tim Windelschmidt7a1b27d2024-02-22 23:54:58 +010027 "@org_golang_x_crypto//ssh",
Jan Schärec61a472025-03-24 18:54:00 +000028 "@org_golang_x_crypto//ssh/agent",
Tim Windelschmidt7a1b27d2024-02-22 23:54:58 +010029 "@org_golang_x_sys//unix",
30 ],
31)