test Gearman API
[cloudstore.git] / test-gearman.sh
diff --git a/test-gearman.sh b/test-gearman.sh
new file mode 100755 (executable)
index 0000000..01eee6e
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh -xe
+
+#echo 'dpavlin@gmail.com password 100M' | gearman -f create_user -n
+
+sudo -u u2001 sh -cx "ps ax > ~u2001/foo.txt"
+
+echo '~u2001/foo.txt#~u2002/dir with space/file with space' | gearman -f send_file -n
+
+echo '~u2002/dir with space/file with space' | gearman -f delete -n
+
+echo u2001 | gearman -f zfs_userquota -n
+echo u2001 | gearman -f zfs_userused -n
+echo u2001 | gearman -f zfs_userspace -n