| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_test") |
| 2 | |
| 3 | go_test( |
| 4 | name = "e2e_test", |
| 5 | srcs = ["main_test.go"], |
| 6 | data = [ |
| Jan Schär | ec61a47 | 2025-03-24 18:54:00 +0000 | [diff] [blame] | 7 | "//metropolis/cli/metroctl:metroctl_lite", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 8 | "//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är | 551a737 | 2025-03-12 19:13:26 +0100 | [diff] [blame] | 19 | "xTakeoverPath": "$(rlocationpath //metropolis/cli/takeover )", |
| Jan Schär | ec61a47 | 2025-03-24 18:54:00 +0000 | [diff] [blame] | 20 | "xMetroctlPath": "$(rlocationpath //metropolis/cli/metroctl:metroctl_lite )", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 21 | }, |
| 22 | deps = [ |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 23 | "//osbase/fat32", |
| 24 | "//osbase/freeport", |
| Tim Windelschmidt | 156248b | 2025-01-10 00:27:45 +0100 | [diff] [blame] | 25 | "@io_bazel_rules_go//go/runfiles", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 26 | "@org_golang_x_crypto//ssh", |
| Jan Schär | ec61a47 | 2025-03-24 18:54:00 +0000 | [diff] [blame] | 27 | "@org_golang_x_crypto//ssh/agent", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 28 | "@org_golang_x_sys//unix", |
| 29 | ], |
| 30 | ) |