From 7bfbd5981025282007f09225e22e895523d7a7bf Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 25 Dec 2025 04:05:54 +0900 Subject: cmd/sharefs: implement shared filesystem This is for passing files between applications, similar to android /sdcard. Signed-off-by: Ophestra --- cmd/sharefs/test/test.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cmd/sharefs/test/test.py (limited to 'cmd/sharefs/test/test.py') 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") -- cgit v1.3.1