| 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", |
| 18 | "//third_party/edk2:OVMF_CODE.fd", |
| 19 | "//third_party/edk2:OVMF_VARS.fd", |
| Tim Windelschmidt | 18e9a3f | 2024-04-08 21:51:03 +0200 | [diff] [blame] | 20 | ], |
| 21 | importpath = "source.monogon.dev/metropolis/installer/test", |
| 22 | visibility = ["//visibility:private"], |
| 23 | x_defs = { |
| 24 | "xOvmfVarsPath": "$(rlocationpath //third_party/edk2:OVMF_VARS.fd )", |
| 25 | "xOvmfCodePath": "$(rlocationpath //third_party/edk2:OVMF_CODE.fd )", |
| Tim Windelschmidt | 18e9a3f | 2024-04-08 21:51:03 +0200 | [diff] [blame] | 26 | "xSucceedKernelPath": "$(rlocationpath :kernel_succeeded )", |
| Tim Windelschmidt | 83da422 | 2024-12-16 02:49:50 +0100 | [diff] [blame] | 27 | "xPanicKernelPath": "$(rlocationpath :kernel_panic )", |
| 28 | "xErrorKernelPath": "$(rlocationpath :kernel_error )", |
| Tim Windelschmidt | 18e9a3f | 2024-04-08 21:51:03 +0200 | [diff] [blame] | 29 | }, |
| 30 | deps = [ |
| 31 | "//osbase/cmd", |
| Tim Windelschmidt | 156248b | 2025-01-10 00:27:45 +0100 | [diff] [blame] | 32 | "@io_bazel_rules_go//go/runfiles", |
| Tim Windelschmidt | 18e9a3f | 2024-04-08 21:51:03 +0200 | [diff] [blame] | 33 | ], |
| 34 | ) |