blob: d62196a684a5ac16cc82fe929a8594ae8dde7169 [file] [log] [blame]
Lorenz Brunbd2ce6d2022-07-22 00:00:13 +00001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2load("//metropolis/test/ktest:ktest.bzl", "ktest")
3
4go_library(
5 name = "fat32",
6 srcs = [
7 "dos83.go",
8 "fat32.go",
9 "structs.go",
10 "utils.go",
11 ],
12 importpath = "source.monogon.dev/metropolis/pkg/fat32",
13 visibility = ["//visibility:public"],
14)
15
16go_test(
17 name = "fat32_test",
18 srcs = [
19 "fsck_test.go",
20 "linux_test.go",
21 "structs_test.go",
22 ],
23 data = ["@com_github_dosfstools_dosfstools//:fsck"],
24 embed = [":fat32"],
25 deps = [
26 "//metropolis/cli/pkg/datafile",
27 "@com_github_stretchr_testify//assert",
28 "@com_github_stretchr_testify//require",
29 "@org_golang_x_mod//semver",
30 "@org_golang_x_sys//unix",
31 ],
32)
33
34ktest(
35 cmdline = "ramdisk_size=266240",
36 tester = ":fat32_test",
37)