| 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 = [ |
| 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är | 551a737 | 2025-03-12 19:13:26 +0100 | [diff] [blame] | 18 | "xTakeoverPath": "$(rlocationpath //metropolis/cli/takeover )", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 19 | }, |
| 20 | deps = [ |
| 21 | "//go/net/ssh", |
| 22 | "//metropolis/proto/api", |
| 23 | "//metropolis/test/launch", |
| 24 | "//osbase/fat32", |
| 25 | "//osbase/freeport", |
| Tim Windelschmidt | 156248b | 2025-01-10 00:27:45 +0100 | [diff] [blame] | 26 | "@io_bazel_rules_go//go/runfiles", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 27 | "@org_golang_google_protobuf//proto", |
| 28 | "@org_golang_x_crypto//ssh", |
| 29 | "@org_golang_x_sys//unix", |
| 30 | ], |
| 31 | ) |