summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/ext/BUILD
diff options
context:
space:
mode:
authorAyush Ranjan <ayushranjan@google.com>2019-07-24 16:02:07 -0700
committergVisor bot <gvisor-bot@google.com>2019-07-24 16:03:30 -0700
commit2ed832ff86ee29970d0a3991297de818bda67b9c (patch)
tree09908e3db91dabe713b1e871ec94e2f45fbcc42f /pkg/sentry/fs/ext/BUILD
parent40e682759fd68bf94d324cef584c5e9288acb049 (diff)
ext: testing environment setup with VFS2 support.
PiperOrigin-RevId: 259835948
Diffstat (limited to 'pkg/sentry/fs/ext/BUILD')
-rw-r--r--pkg/sentry/fs/ext/BUILD20
1 files changed, 19 insertions, 1 deletions
diff --git a/pkg/sentry/fs/ext/BUILD b/pkg/sentry/fs/ext/BUILD
index 3ba278e08..7028b3f78 100644
--- a/pkg/sentry/fs/ext/BUILD
+++ b/pkg/sentry/fs/ext/BUILD
@@ -15,7 +15,10 @@ go_library(
deps = [
"//pkg/abi/linux",
"//pkg/binary",
+ "//pkg/sentry/context",
"//pkg/sentry/fs/ext/disklayout",
+ "//pkg/sentry/kernel/auth",
+ "//pkg/sentry/vfs",
"//pkg/syserror",
],
)
@@ -23,11 +26,26 @@ go_library(
go_test(
name = "ext_test",
size = "small",
- srcs = ["extent_test.go"],
+ srcs = [
+ "ext_test.go",
+ "extent_test.go",
+ ],
+ data = [
+ "//pkg/sentry/fs/ext:assets/bigfile.txt",
+ "//pkg/sentry/fs/ext:assets/file.txt",
+ "//pkg/sentry/fs/ext:assets/tiny.ext2",
+ "//pkg/sentry/fs/ext:assets/tiny.ext3",
+ "//pkg/sentry/fs/ext:assets/tiny.ext4",
+ ],
embed = [":ext"],
deps = [
+ "//pkg/abi/linux",
"//pkg/binary",
+ "//pkg/sentry/context",
+ "//pkg/sentry/context/contexttest",
"//pkg/sentry/fs/ext/disklayout",
+ "//pkg/sentry/vfs",
+ "//runsc/test/testutil",
"@com_github_google_go-cmp//cmp:go_default_library",
"@com_github_google_go-cmp//cmp/cmpopts:go_default_library",
],