diff options
author | Craig Chi <craigchi@google.com> | 2020-08-10 18:15:32 -0700 |
---|---|---|
committer | Craig Chi <craigchi@google.com> | 2020-08-10 18:15:32 -0700 |
commit | 51e64d2fc590b0271d4e0cbbc75882cf81ada182 (patch) | |
tree | 1e99952f3b06cb290a414816c21d9a4e698bb1e9 /test/fuse/linux/BUILD | |
parent | b404b5c255214a37d7f787f9fe24bb8e22509eb4 (diff) |
Implement FUSE_GETATTR
FUSE_GETATTR is called when a stat(2), fstat(2), or lstat(2) is issued
from VFS2 layer to a FUSE filesystem.
Fixes #3175
Diffstat (limited to 'test/fuse/linux/BUILD')
-rw-r--r-- | test/fuse/linux/BUILD | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/test/fuse/linux/BUILD b/test/fuse/linux/BUILD index 49dc96c20..4871bb531 100644 --- a/test/fuse/linux/BUILD +++ b/test/fuse/linux/BUILD @@ -1,20 +1,31 @@ -load("//tools:defs.bzl", "cc_library", "gtest") +load("//tools:defs.bzl", "cc_binary", "cc_library", "gtest") package( default_visibility = ["//:sandbox"], licenses = ["notice"], ) +cc_binary( + name = "stat_test", + testonly = 1, + srcs = ["stat_test.cc"], + deps = [ + gtest, + ":fuse_base", + "//test/util:test_main", + "//test/util:test_util", + ], +) + cc_library( name = "fuse_base", testonly = 1, - srcs = [ - "fuse_base.cc", - "fuse_base.h", - ], + srcs = ["fuse_base.cc"], + hdrs = ["fuse_base.h"], deps = [ gtest, "//test/util:posix_error", + "//test/util:temp_path", "//test/util:test_util", "@com_google_absl//absl/strings:str_format", ], |