blob: 66803bbe4d1d4f8d0b5ddfd2933f4ec4123cb6a9 [file] [log] [blame]
Tim Windelschmidte2949162025-02-18 04:55:13 +01001load("@io_bazel_rules_go//go:def.bzl", "go_test")
2load(":bringup.bzl", "bringup_test")
3
4bringup_test(variant = "succeeded")
5
6bringup_test(variant = "error")
7
8bringup_test(variant = "panic")
Tim Windelschmidt18e9a3f2024-04-08 21:51:03 +02009
10go_test(
11 name = "test_test",
12 size = "medium",
13 srcs = ["run_test.go"],
14 data = [
Tim Windelschmidt83da4222024-12-16 02:49:50 +010015 ":kernel_error",
16 ":kernel_panic",
Tim Windelschmidt18e9a3f2024-04-08 21:51:03 +020017 ":kernel_succeeded",
18 "//third_party/edk2:OVMF_CODE.fd",
19 "//third_party/edk2:OVMF_VARS.fd",
Tim Windelschmidt18e9a3f2024-04-08 21:51:03 +020020 ],
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 Windelschmidt18e9a3f2024-04-08 21:51:03 +020026 "xSucceedKernelPath": "$(rlocationpath :kernel_succeeded )",
Tim Windelschmidt83da4222024-12-16 02:49:50 +010027 "xPanicKernelPath": "$(rlocationpath :kernel_panic )",
28 "xErrorKernelPath": "$(rlocationpath :kernel_error )",
Tim Windelschmidt18e9a3f2024-04-08 21:51:03 +020029 },
30 deps = [
31 "//osbase/cmd",
Tim Windelschmidt156248b2025-01-10 00:27:45 +010032 "@io_bazel_rules_go//go/runfiles",
Tim Windelschmidt18e9a3f2024-04-08 21:51:03 +020033 ],
34)