| 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 = [ |
| Tim Windelschmidt | 8f1efe9 | 2025-04-01 01:28:43 +0200 | [diff] [blame] | 7 | "//build/toolchain/toolchain-bundle:qemu-kvm", |
| Jan Schär | ec61a47 | 2025-03-24 18:54:00 +0000 | [diff] [blame] | 8 | "//metropolis/cli/metroctl:metroctl_lite", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 9 | "//metropolis/cli/takeover", |
| Jan Schär | 5fdca56 | 2025-04-14 11:33:29 +0000 | [diff] [blame] | 10 | "//metropolis/installer/test/testos:testos_image", |
| Tim Windelschmidt | 12240f9 | 2025-04-28 14:59:33 +0200 | [diff] [blame] | 11 | "//third_party/edk2:CODE.fd", |
| 12 | "//third_party/edk2:VARS.fd", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 13 | "@debian_11_cloudimage//file", |
| 14 | ], |
| 15 | x_defs = { |
| Jan Schär | 5fdca56 | 2025-04-14 11:33:29 +0000 | [diff] [blame] | 16 | "xImagePath": "$(rlocationpath //metropolis/installer/test/testos:testos_image )", |
| Tim Windelschmidt | 12240f9 | 2025-04-28 14:59:33 +0200 | [diff] [blame] | 17 | "xOvmfVarsPath": "$(rlocationpath //third_party/edk2:VARS.fd )", |
| 18 | "xOvmfCodePath": "$(rlocationpath //third_party/edk2:CODE.fd )", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 19 | "xCloudImagePath": "$(rlocationpath @debian_11_cloudimage//file )", |
| Jan Schär | 551a737 | 2025-03-12 19:13:26 +0100 | [diff] [blame] | 20 | "xTakeoverPath": "$(rlocationpath //metropolis/cli/takeover )", |
| Jan Schär | ec61a47 | 2025-03-24 18:54:00 +0000 | [diff] [blame] | 21 | "xMetroctlPath": "$(rlocationpath //metropolis/cli/metroctl:metroctl_lite )", |
| Tim Windelschmidt | 8f1efe9 | 2025-04-01 01:28:43 +0200 | [diff] [blame] | 22 | "xQEMUPath": "$(rlocationpath //build/toolchain/toolchain-bundle:qemu-kvm )", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 23 | }, |
| 24 | deps = [ |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 25 | "//osbase/fat32", |
| 26 | "//osbase/freeport", |
| Jan Schär | c1b6df4 | 2025-03-20 08:52:18 +0000 | [diff] [blame] | 27 | "//osbase/structfs", |
| Tim Windelschmidt | 156248b | 2025-01-10 00:27:45 +0100 | [diff] [blame] | 28 | "@io_bazel_rules_go//go/runfiles", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 29 | "@org_golang_x_crypto//ssh", |
| Jan Schär | ec61a47 | 2025-03-24 18:54:00 +0000 | [diff] [blame] | 30 | "@org_golang_x_crypto//ssh/agent", |
| Tim Windelschmidt | 7a1b27d | 2024-02-22 23:54:58 +0100 | [diff] [blame] | 31 | "@org_golang_x_sys//unix", |
| 32 | ], |
| 33 | ) |