blob: 0293e25a7fc08d91de4ccf8e8badde0d380b2aec [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("//osbase/test/ktest:ktest.bzl", "k_test")
go_library(
name = "fsquota",
srcs = ["fsquota.go"],
importpath = "source.monogon.dev/osbase/fsquota",
visibility = ["//visibility:public"],
deps = [
"//osbase/fsquota/fsxattrs",
"//osbase/fsquota/quotactl",
"@org_golang_x_sys//unix",
],
)
go_test(
name = "fsquota_test",
srcs = ["fsquota_test.go"],
embed = [":fsquota"],
deps = [
"@com_github_stretchr_testify//require",
"@org_golang_x_sys//unix",
],
)
k_test(
name = "ktest",
cmdline = "ramdisk_size=51200",
files_cc = {
"/mkfs.xfs": "@xfsprogs//:mkfs",
},
tester = ":fsquota_test",
)