| Tim Windelschmidt | e294916 | 2025-02-18 04:55:13 +0100 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_test") |
| 2 | load(":bringup.bzl", "bringup_test") |
| 3 | |
| 4 | bringup_test(variant = "succeeded") |
| 5 | |
| 6 | bringup_test(variant = "error") |
| 7 | |
| 8 | bringup_test(variant = "panic") |
| Tim Windelschmidt | 18e9a3f | 2024-04-08 21:51:03 +0200 | [diff] [blame] | 9 | |
| 10 | go_test( |
| 11 | name = "test_test", |
| 12 | size = "medium", |
| 13 | srcs = ["run_test.go"], |
| 14 | data = [ |
| Tim Windelschmidt | 83da422 | 2024-12-16 02:49:50 +0100 | [diff] [blame] | 15 | ":kernel_error", |
| 16 | ":kernel_panic", |
| Tim Windelschmidt | 18e9a3f | 2024-04-08 21:51:03 +0200 | [diff] [blame] | 17 | ":kernel_succeeded", |
| Tim Windelschmidt | 8f1efe9 | 2025-04-01 01:28:43 +0200 | [diff] [blame] | 18 | "//build/toolchain/toolchain-bundle:qemu-kvm", |
| Tim Windelschmidt | 12240f9 | 2025-04-28 14:59:33 +0200 | [diff] [blame] | 19 | "//third_party/edk2:CODE.fd", |
| 20 | "//third_party/edk2:VARS.fd", |
| Tim Windelschmidt | 18e9a3f | 2024-04-08 21:51:03 +0200 | [diff] [blame] | 21 | ], |
| 22 | importpath = "source.monogon.dev/metropolis/installer/test", |
| 23 | visibility = ["//visibility:private"], |
| 24 | x_defs = { |
| Tim Windelschmidt | 12240f9 | 2025-04-28 14:59:33 +0200 | [diff] [blame] | 25 | "xOvmfVarsPath": "$(rlocationpath //third_party/edk2:VARS.fd )", |
| 26 | "xOvmfCodePath": "$(rlocationpath //third_party/edk2:CODE.fd )", |
| Tim Windelschmidt | 18e9a3f | 2024-04-08 21:51:03 +0200 | [diff] [blame] | 27 | "xSucceedKernelPath": "$(rlocationpath :kernel_succeeded )", |
| Tim Windelschmidt | 83da422 | 2024-12-16 02:49:50 +0100 | [diff] [blame] | 28 | "xPanicKernelPath": "$(rlocationpath :kernel_panic )", |
| 29 | "xErrorKernelPath": "$(rlocationpath :kernel_error )", |
| Tim Windelschmidt | 8f1efe9 | 2025-04-01 01:28:43 +0200 | [diff] [blame] | 30 | "xQEMUPath": "$(rlocationpath //build/toolchain/toolchain-bundle:qemu-kvm )", |
| Tim Windelschmidt | 18e9a3f | 2024-04-08 21:51:03 +0200 | [diff] [blame] | 31 | }, |
| 32 | deps = [ |
| Jan Schär | 341cd42 | 2025-09-04 10:33:21 +0200 | [diff] [blame^] | 33 | "//osbase/test/cmd", |
| Tim Windelschmidt | 156248b | 2025-01-10 00:27:45 +0100 | [diff] [blame] | 34 | "@io_bazel_rules_go//go/runfiles", |
| Tim Windelschmidt | 18e9a3f | 2024-04-08 21:51:03 +0200 | [diff] [blame] | 35 | ], |
| 36 | ) |