summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/ext/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/fs/ext/BUILD')
-rw-r--r--pkg/sentry/fs/ext/BUILD18
1 files changed, 17 insertions, 1 deletions
diff --git a/pkg/sentry/fs/ext/BUILD b/pkg/sentry/fs/ext/BUILD
index b386f31c8..3ba278e08 100644
--- a/pkg/sentry/fs/ext/BUILD
+++ b/pkg/sentry/fs/ext/BUILD
@@ -1,18 +1,34 @@
package(licenses = ["notice"])
-load("//tools/go_stateify:defs.bzl", "go_library")
+load("//tools/go_stateify:defs.bzl", "go_library", "go_test")
go_library(
name = "ext",
srcs = [
+ "dentry.go",
"ext.go",
+ "inode.go",
"utils.go",
],
importpath = "gvisor.dev/gvisor/pkg/sentry/fs/ext",
visibility = ["//pkg/sentry:internal"],
deps = [
"//pkg/abi/linux",
+ "//pkg/binary",
"//pkg/sentry/fs/ext/disklayout",
"//pkg/syserror",
],
)
+
+go_test(
+ name = "ext_test",
+ size = "small",
+ srcs = ["extent_test.go"],
+ embed = [":ext"],
+ deps = [
+ "//pkg/binary",
+ "//pkg/sentry/fs/ext/disklayout",
+ "@com_github_google_go-cmp//cmp:go_default_library",
+ "@com_github_google_go-cmp//cmp/cmpopts:go_default_library",
+ ],
+)