summaryrefslogtreecommitdiffhomepage
path: root/test/fuse/BUILD
diff options
context:
space:
mode:
authorBoyuan He & Ridwan Sharif <heboyuan@google.com>2020-08-26 15:26:46 -0400
committerAndrei Vagin <avagin@gmail.com>2020-09-11 13:35:25 -0700
commit9cc683af1e5c003ccc4f5a72e6b5b207e8426e1a (patch)
tree60a6a891af2dbe40cef0d77a5fe2fc520470d9e7 /test/fuse/BUILD
parent3bd85840c8f0364083c88d65c2bc1f968069b04e (diff)
fuse: add benchmarking support for FUSE
This change adds the following: - Add support for containerizing syscall tests for FUSE - Mount tmpfs in the container so we can run benchmarks against it - Run the server in a background process - benchmarks for fuse syscall Co-authored-by: Ridwan Sharif <ridwanmsharif@google.com>
Diffstat (limited to 'test/fuse/BUILD')
-rw-r--r--test/fuse/BUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/fuse/BUILD b/test/fuse/BUILD
index a1b29aa33..02498b3a1 100644
--- a/test/fuse/BUILD
+++ b/test/fuse/BUILD
@@ -51,3 +51,49 @@ syscall_test(
fuse = "True",
test = "//test/fuse/linux:readdir_test",
)
+
+
+syscall_test(
+ size = "large",
+ add_overlay = True,
+ debug = False,
+ setup_command = "'./server-bin mountpoint'",
+ test = "//test/fuse/benchmark:stat_benchmark",
+ use_image = "basic/fuse",
+)
+
+syscall_test(
+ size = "large",
+ add_overlay = True,
+ debug = False,
+ setup_command = "'./server-bin mountpoint'",
+ test = "//test/fuse/benchmark:open_benchmark",
+ use_image = "basic/fuse",
+)
+
+syscall_test(
+ size = "large",
+ add_overlay = True,
+ debug = False,
+ setup_command = "'./server-bin mountpoint'",
+ test = "//test/fuse/benchmark:read_benchmark",
+ use_image = "basic/fuse",
+)
+
+syscall_test(
+ size = "large",
+ add_overlay = True,
+ debug = False,
+ setup_command = "'./server-bin mountpoint'",
+ test = "//test/fuse/benchmark:symlink_benchmark",
+ use_image = "basic/fuse",
+)
+
+syscall_test(
+ size = "large",
+ add_overlay = True,
+ debug = False,
+ setup_command = "'./server-bin mountpoint'",
+ test = "//test/fuse/benchmark:mkdir_benchmark",
+ use_image = "basic/fuse",
+)