| Lorenz Brun | bd2ce6d | 2022-07-22 00:00:13 +0000 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 2 | load("//osbase/test/ktest:ktest.bzl", "ktest") |
| Lorenz Brun | bd2ce6d | 2022-07-22 00:00:13 +0000 | [diff] [blame] | 3 | |
| 4 | go_library( |
| 5 | name = "fat32", |
| 6 | srcs = [ |
| 7 | "dos83.go", |
| 8 | "fat32.go", |
| 9 | "structs.go", |
| 10 | "utils.go", |
| 11 | ], |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 12 | importpath = "source.monogon.dev/osbase/fat32", |
| Lorenz Brun | bd2ce6d | 2022-07-22 00:00:13 +0000 | [diff] [blame] | 13 | visibility = ["//visibility:public"], |
| 14 | ) |
| 15 | |
| 16 | go_test( |
| 17 | name = "fat32_test", |
| 18 | srcs = [ |
| 19 | "fsck_test.go", |
| 20 | "linux_test.go", |
| 21 | "structs_test.go", |
| 22 | ], |
| Tim Windelschmidt | 82e6af7 | 2024-07-23 00:05:42 +0000 | [diff] [blame] | 23 | data = [ |
| 24 | "@com_github_dosfstools_dosfstools//:fsck", |
| 25 | ], |
| Lorenz Brun | bd2ce6d | 2022-07-22 00:00:13 +0000 | [diff] [blame] | 26 | embed = [":fat32"], |
| Tim Windelschmidt | 82e6af7 | 2024-07-23 00:05:42 +0000 | [diff] [blame] | 27 | x_defs = { |
| 28 | "xFsckPath": "$(rlocationpath @com_github_dosfstools_dosfstools//:fsck )", |
| 29 | }, |
| Lorenz Brun | bd2ce6d | 2022-07-22 00:00:13 +0000 | [diff] [blame] | 30 | deps = [ |
| Lorenz Brun | bd2ce6d | 2022-07-22 00:00:13 +0000 | [diff] [blame] | 31 | "@com_github_stretchr_testify//assert", |
| 32 | "@com_github_stretchr_testify//require", |
| Tim Windelschmidt | 156248b | 2025-01-10 00:27:45 +0100 | [diff] [blame^] | 33 | "@io_bazel_rules_go//go/runfiles", |
| Lorenz Brun | bd2ce6d | 2022-07-22 00:00:13 +0000 | [diff] [blame] | 34 | "@org_golang_x_sys//unix", |
| 35 | ], |
| 36 | ) |
| 37 | |
| 38 | ktest( |
| 39 | cmdline = "ramdisk_size=266240", |
| 40 | tester = ":fat32_test", |
| 41 | ) |