test Gearman API
authorDobrica Pavlinusic <dpavlin@rsync1>
Tue, 29 Nov 2011 22:58:37 +0000 (23:58 +0100)
committerDobrica Pavlinusic <dpavlin@rsync1>
Tue, 29 Nov 2011 22:58:37 +0000 (23:58 +0100)
test-gearman.sh [new file with mode: 0755]

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