blob: b0859474d7f140ae0cf306f6b2c5b51c97d27cb1 [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",
Tim Windelschmidt156248b2025-01-10 00:27:45 +010025 "@io_bazel_rules_go//go/runfiles",
Tim Windelschmidt7a1b27d2024-02-22 23:54:58 +010026 "@org_golang_x_crypto//ssh",
Jan Schärec61a472025-03-24 18:54:00 +000027 "@org_golang_x_crypto//ssh/agent",
Tim Windelschmidt7a1b27d2024-02-22 23:54:58 +010028 "@org_golang_x_sys//unix",
29 ],
30)