aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/sharefs/test/test.py
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-25 04:05:54 +0900
committerOphestra <cat@gensokyo.uk>2025-12-25 05:13:02 +0900
commit7bfbd5981025282007f09225e22e895523d7a7bf (patch)
tree14e4ea7475ab63c8fa22845d287a307fb029c110 /cmd/sharefs/test/test.py
parentea815a59e85a5acad8e22e98a16cdc6de1323824 (diff)
cmd/sharefs: implement shared filesystem
This is for passing files between applications, similar to android /sdcard. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/sharefs/test/test.py')
-rw-r--r--cmd/sharefs/test/test.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmd/sharefs/test/test.py b/cmd/sharefs/test/test.py
new file mode 100644
index 00000000..58062e02
--- /dev/null
+++ b/cmd/sharefs/test/test.py
@@ -0,0 +1,14 @@
+start_all()
+machine.wait_for_unit("multi-user.target")
+
+# Benchmark sharefs:
+machine.succeed("fs_mark -v -d /sdcard/fs_mark -l /tmp/fs_log.txt")
+machine.copy_from_vm("/tmp/fs_log.txt", "")
+
+# Check permissions:
+machine.succeed("ls /var/lib/hakurei/sdcard/fs_mark")
+machine.succeed("sudo -u alice rm -rf /sdcard/fs_mark")
+machine.fail("ls /var/lib/hakurei/sdcard/fs_mark")
+
+# Run hakurei tests on sharefs:
+machine.succeed("sudo -u alice sharefs-workload-hakurei-tests")