blob: d9aec3d9ed7a8fc4ad5655d19604cec9ede8835c [file] [log] [blame]
Lorenz Brunbd2ce6d2022-07-22 00:00:13 +00001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
Tim Windelschmidt9f21f532024-05-07 15:14:20 +02002load("//osbase/test/ktest:ktest.bzl", "ktest")
Lorenz Brunbd2ce6d2022-07-22 00:00:13 +00003
4go_library(
5 name = "fat32",
6 srcs = [
7 "dos83.go",
8 "fat32.go",
9 "structs.go",
10 "utils.go",
11 ],
Tim Windelschmidt9f21f532024-05-07 15:14:20 +020012 importpath = "source.monogon.dev/osbase/fat32",
Lorenz Brunbd2ce6d2022-07-22 00:00:13 +000013 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 = [
Lorenz Brunbd2ce6d2022-07-22 00:00:13 +000026 "@com_github_stretchr_testify//assert",
27 "@com_github_stretchr_testify//require",
Tim Windelschmidt2a1d1b22024-02-06 07:07:42 +010028 "@io_bazel_rules_go//go/runfiles:go_default_library",
Lorenz Brunbd2ce6d2022-07-22 00:00:13 +000029 "@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)