aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/sharefs/test/test.py
diff options
context:
space:
mode:
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")